Microsoft Dynamics 365 · Capability

Microsoft Dynamics 365 Dataverse Web API — Accounts

Microsoft Dynamics 365 Dataverse Web API — Accounts. 5 operations. Lead operation: Microsoft Dynamics 365 List accounts. Self-contained Naftiko capability covering one Microsoft Dynamics 365 business surface.

Run with Naftiko Microsoft Dynamics 365Accounts

What You Can Do

GET
Listaccounts — Microsoft Dynamics 365 List accounts
/v1/accounts
POST
Createaccount — Microsoft Dynamics 365 Create an account
/v1/accounts
GET
Getaccount — Microsoft Dynamics 365 Retrieve an account
/v1/accounts-accountid
PATCH
Updateaccount — Microsoft Dynamics 365 Update an account
/v1/accounts-accountid
DELETE
Deleteaccount — Microsoft Dynamics 365 Delete an account
/v1/accounts-accountid

MCP Tools

microsoft-dynamics-365-list-accounts

Microsoft Dynamics 365 List accounts

read-only idempotent
microsoft-dynamics-365-create-account

Microsoft Dynamics 365 Create an account

microsoft-dynamics-365-retrieve-account

Microsoft Dynamics 365 Retrieve an account

read-only idempotent
microsoft-dynamics-365-update-account

Microsoft Dynamics 365 Update an account

idempotent
microsoft-dynamics-365-delete-account

Microsoft Dynamics 365 Delete an account

idempotent

Capability Spec

dataverse-web-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Dynamics 365 Dataverse Web API — Accounts
  description: 'Microsoft Dynamics 365 Dataverse Web API — Accounts. 5 operations. Lead operation: Microsoft Dynamics 365
    List accounts. Self-contained Naftiko capability covering one Microsoft Dynamics 365 business surface.'
  tags:
  - Microsoft Dynamics 365
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_DYNAMICS_365_API_KEY: MICROSOFT_DYNAMICS_365_API_KEY
capability:
  consumes:
  - type: http
    namespace: dataverse-web-accounts
    baseUri: https://{org}.api.crm.dynamics.com/api/data/v9.2
    description: Microsoft Dynamics 365 Dataverse Web API — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: accounts
      path: /accounts
      operations:
      - name: listaccounts
        method: GET
        description: Microsoft Dynamics 365 List accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createaccount
        method: POST
        description: Microsoft Dynamics 365 Create an account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts({accountid})
      path: /accounts({accountid})
      operations:
      - name: getaccount
        method: GET
        description: Microsoft Dynamics 365 Retrieve an account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateaccount
        method: PATCH
        description: Microsoft Dynamics 365 Update an account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteaccount
        method: DELETE
        description: Microsoft Dynamics 365 Delete an account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_DYNAMICS_365_API_KEY}}'
  exposes:
  - type: rest
    namespace: dataverse-web-accounts-rest
    port: 8080
    description: REST adapter for Microsoft Dynamics 365 Dataverse Web API — Accounts. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/accounts
      name: accounts
      description: REST surface for accounts.
      operations:
      - method: GET
        name: listaccounts
        description: Microsoft Dynamics 365 List accounts
        call: dataverse-web-accounts.listaccounts
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createaccount
        description: Microsoft Dynamics 365 Create an account
        call: dataverse-web-accounts.createaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts-accountid
      name: accounts-accountid
      description: REST surface for accounts({accountid}).
      operations:
      - method: GET
        name: getaccount
        description: Microsoft Dynamics 365 Retrieve an account
        call: dataverse-web-accounts.getaccount
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateaccount
        description: Microsoft Dynamics 365 Update an account
        call: dataverse-web-accounts.updateaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteaccount
        description: Microsoft Dynamics 365 Delete an account
        call: dataverse-web-accounts.deleteaccount
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: dataverse-web-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Dynamics 365 Dataverse Web API — Accounts. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: microsoft-dynamics-365-list-accounts
      description: Microsoft Dynamics 365 List accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: dataverse-web-accounts.listaccounts
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-365-create-account
      description: Microsoft Dynamics 365 Create an account
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: dataverse-web-accounts.createaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-365-retrieve-account
      description: Microsoft Dynamics 365 Retrieve an account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: dataverse-web-accounts.getaccount
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-365-update-account
      description: Microsoft Dynamics 365 Update an account
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: dataverse-web-accounts.updateaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-365-delete-account
      description: Microsoft Dynamics 365 Delete an account
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: dataverse-web-accounts.deleteaccount
      outputParameters:
      - type: object
        mapping: $.