Tango · Capability

Tango RaaS API — Accounts

Tango RaaS API — Accounts. 5 operations. Lead operation: List All Accounts. Self-contained Naftiko capability covering one Tango business surface.

Run with Naftiko TangoAccounts

What You Can Do

GET
Listaccounts — List All Accounts
/v1/accounts
GET
Listcustomeraccounts — List Customer Accounts
/v1/customers/{customeridentifier}/accounts
POST
Createaccount — Create Account
/v1/customers/{customeridentifier}/accounts
GET
Getaccount — Get Account
/v1/customers/{customeridentifier}/accounts/{accountidentifier}
PATCH
Updateaccount — Update Account
/v1/customers/{customeridentifier}/accounts/{accountidentifier}

MCP Tools

list-all-accounts

List All Accounts

read-only idempotent
list-customer-accounts

List Customer Accounts

read-only idempotent
create-account

Create Account

get-account

Get Account

read-only idempotent
update-account

Update Account

idempotent

Capability Spec

raas-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Tango RaaS API — Accounts
  description: 'Tango RaaS API — Accounts. 5 operations. Lead operation: List All Accounts. Self-contained Naftiko capability
    covering one Tango business surface.'
  tags:
  - Tango
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TANGO_API_KEY: TANGO_API_KEY
capability:
  consumes:
  - type: http
    namespace: raas-accounts
    baseUri: https://api.tangocard.com/raas/v2
    description: Tango RaaS API — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: accounts
      path: /accounts
      operations:
      - name: listaccounts
        method: GET
        description: List All Accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: customers-customerIdentifier-accounts
      path: /customers/{customerIdentifier}/accounts
      operations:
      - name: listcustomeraccounts
        method: GET
        description: List Customer Accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createaccount
        method: POST
        description: Create Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: customers-customerIdentifier-accounts-accountIdentifier
      path: /customers/{customerIdentifier}/accounts/{accountIdentifier}
      operations:
      - name: getaccount
        method: GET
        description: Get Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateaccount
        method: PATCH
        description: Update Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.TANGO_USER}}'
      password: '{{env.TANGO_PASS}}'
  exposes:
  - type: rest
    namespace: raas-accounts-rest
    port: 8080
    description: REST adapter for Tango RaaS 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: List All Accounts
        call: raas-accounts.listaccounts
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/customers/{customeridentifier}/accounts
      name: customers-customeridentifier-accounts
      description: REST surface for customers-customerIdentifier-accounts.
      operations:
      - method: GET
        name: listcustomeraccounts
        description: List Customer Accounts
        call: raas-accounts.listcustomeraccounts
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createaccount
        description: Create Account
        call: raas-accounts.createaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/customers/{customeridentifier}/accounts/{accountidentifier}
      name: customers-customeridentifier-accounts-accountidentifier
      description: REST surface for customers-customerIdentifier-accounts-accountIdentifier.
      operations:
      - method: GET
        name: getaccount
        description: Get Account
        call: raas-accounts.getaccount
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateaccount
        description: Update Account
        call: raas-accounts.updateaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: raas-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Tango RaaS API — Accounts. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-all-accounts
      description: List All Accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: raas-accounts.listaccounts
      outputParameters:
      - type: object
        mapping: $.
    - name: list-customer-accounts
      description: List Customer Accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: raas-accounts.listcustomeraccounts
      outputParameters:
      - type: object
        mapping: $.
    - name: create-account
      description: Create Account
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: raas-accounts.createaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-account
      description: Get Account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: raas-accounts.getaccount
      outputParameters:
      - type: object
        mapping: $.
    - name: update-account
      description: Update Account
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: raas-accounts.updateaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.