Modern Treasury · Capability
Modern Treasury — AccountDetail
Modern Treasury — AccountDetail. 4 operations. Lead operation: list account_details. Self-contained Naftiko capability covering one Modern Treasury business surface.
What You Can Do
GET
Listaccountdetails
— list account_details
/v1/api/{accounts-type}/{account-id}/account-details
POST
Createaccountdetail
— create account_detail
/v1/api/{accounts-type}/{account-id}/account-details
GET
Getaccountdetail
— get account_detail
/v1/api/{accounts-type}/{account-id}/account-details/{id}
DELETE
Deleteaccountdetail
— delete account_detail
/v1/api/{accounts-type}/{account-id}/account-details/{id}
MCP Tools
list-account-details
list account_details
read-only
idempotent
create-account-detail
create account_detail
get-account-detail
get account_detail
read-only
idempotent
delete-account-detail
delete account_detail
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Modern Treasury — AccountDetail
description: 'Modern Treasury — AccountDetail. 4 operations. Lead operation: list account_details. Self-contained Naftiko
capability covering one Modern Treasury business surface.'
tags:
- Modern Treasury
- AccountDetail
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
MODERN_TREASURY_API_KEY: MODERN_TREASURY_API_KEY
capability:
consumes:
- type: http
namespace: modern-treasury-accountdetail
baseUri: http://localhost:3000
description: Modern Treasury — AccountDetail business capability. Self-contained, no shared references.
resources:
- name: api-accounts_type-account_id-account_details
path: /api/{accounts_type}/{account_id}/account_details
operations:
- name: listaccountdetails
method: GET
description: list account_details
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: accounts_type
in: path
type: string
required: true
- name: account_id
in: path
type: string
description: The ID of the account.
required: true
- name: after_cursor
in: query
type: string
- name: per_page
in: query
type: integer
- name: createaccountdetail
method: POST
description: create account_detail
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Idempotency-Key
in: header
type: string
description: This key should be something unique, preferably something like an UUID.
- name: accounts_type
in: path
type: string
required: true
- name: account_id
in: path
type: string
description: The ID of the account.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: api-accounts_type-account_id-account_details-id
path: /api/{accounts_type}/{account_id}/account_details/{id}
operations:
- name: getaccountdetail
method: GET
description: get account_detail
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: accounts_type
in: path
type: string
required: true
- name: account_id
in: path
type: string
description: The ID of the account.
required: true
- name: id
in: path
type: string
description: The ID of the account detail.
required: true
- name: deleteaccountdetail
method: DELETE
description: delete account_detail
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: accounts_type
in: path
type: string
required: true
- name: account_id
in: path
type: string
description: The ID of the account.
required: true
- name: id
in: path
type: string
description: The ID of the account detail.
required: true
authentication:
type: basic
username: '{{env.MODERN_TREASURY_USER}}'
password: '{{env.MODERN_TREASURY_PASS}}'
exposes:
- type: rest
namespace: modern-treasury-accountdetail-rest
port: 8080
description: REST adapter for Modern Treasury — AccountDetail. One Spectral-compliant resource per consumed operation,
prefixed with /v1.
resources:
- path: /v1/api/{accounts-type}/{account-id}/account-details
name: api-accounts-type-account-id-account-details
description: REST surface for api-accounts_type-account_id-account_details.
operations:
- method: GET
name: listaccountdetails
description: list account_details
call: modern-treasury-accountdetail.listaccountdetails
with:
accounts_type: rest.accounts_type
account_id: rest.account_id
after_cursor: rest.after_cursor
per_page: rest.per_page
outputParameters:
- type: object
mapping: $.
- method: POST
name: createaccountdetail
description: create account_detail
call: modern-treasury-accountdetail.createaccountdetail
with:
Idempotency-Key: rest.Idempotency-Key
accounts_type: rest.accounts_type
account_id: rest.account_id
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/api/{accounts-type}/{account-id}/account-details/{id}
name: api-accounts-type-account-id-account-details-id
description: REST surface for api-accounts_type-account_id-account_details-id.
operations:
- method: GET
name: getaccountdetail
description: get account_detail
call: modern-treasury-accountdetail.getaccountdetail
with:
accounts_type: rest.accounts_type
account_id: rest.account_id
id: rest.id
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: deleteaccountdetail
description: delete account_detail
call: modern-treasury-accountdetail.deleteaccountdetail
with:
accounts_type: rest.accounts_type
account_id: rest.account_id
id: rest.id
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: modern-treasury-accountdetail-mcp
port: 9090
transport: http
description: MCP adapter for Modern Treasury — AccountDetail. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: list-account-details
description: list account_details
hints:
readOnly: true
destructive: false
idempotent: true
call: modern-treasury-accountdetail.listaccountdetails
with:
accounts_type: tools.accounts_type
account_id: tools.account_id
after_cursor: tools.after_cursor
per_page: tools.per_page
outputParameters:
- type: object
mapping: $.
- name: create-account-detail
description: create account_detail
hints:
readOnly: false
destructive: false
idempotent: false
call: modern-treasury-accountdetail.createaccountdetail
with:
Idempotency-Key: tools.Idempotency-Key
accounts_type: tools.accounts_type
account_id: tools.account_id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: get-account-detail
description: get account_detail
hints:
readOnly: true
destructive: false
idempotent: true
call: modern-treasury-accountdetail.getaccountdetail
with:
accounts_type: tools.accounts_type
account_id: tools.account_id
id: tools.id
outputParameters:
- type: object
mapping: $.
- name: delete-account-detail
description: delete account_detail
hints:
readOnly: false
destructive: true
idempotent: true
call: modern-treasury-accountdetail.deleteaccountdetail
with:
accounts_type: tools.accounts_type
account_id: tools.account_id
id: tools.id
outputParameters:
- type: object
mapping: $.