Modern Treasury · Capability
Modern Treasury — RoutingDetail
Modern Treasury — RoutingDetail. 4 operations. Lead operation: list routing_details. Self-contained Naftiko capability covering one Modern Treasury business surface.
What You Can Do
GET
Listroutingdetails
— list routing_details
/v1/api/{accounts-type}/{account-id}/routing-details
POST
Createroutingdetail
— create routing_detail
/v1/api/{accounts-type}/{account-id}/routing-details
GET
Getroutingdetail
— get routing_detail
/v1/api/{accounts-type}/{account-id}/routing-details/{id}
DELETE
Deleteroutingdetail
— delete routing_detail
/v1/api/{accounts-type}/{account-id}/routing-details/{id}
MCP Tools
list-routing-details
list routing_details
read-only
idempotent
create-routing-detail
create routing_detail
get-routing-detail
get routing_detail
read-only
idempotent
delete-routing-detail
delete routing_detail
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Modern Treasury — RoutingDetail
description: 'Modern Treasury — RoutingDetail. 4 operations. Lead operation: list routing_details. Self-contained Naftiko
capability covering one Modern Treasury business surface.'
tags:
- Modern Treasury
- RoutingDetail
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-routingdetail
baseUri: http://localhost:3000
description: Modern Treasury — RoutingDetail business capability. Self-contained, no shared references.
resources:
- name: api-accounts_type-account_id-routing_details
path: /api/{accounts_type}/{account_id}/routing_details
operations:
- name: listroutingdetails
method: GET
description: list routing_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: createroutingdetail
method: POST
description: create routing_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-routing_details-id
path: /api/{accounts_type}/{account_id}/routing_details/{id}
operations:
- name: getroutingdetail
method: GET
description: get routing_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 routing detail.
required: true
- name: deleteroutingdetail
method: DELETE
description: delete routing_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 routing detail.
required: true
authentication:
type: basic
username: '{{env.MODERN_TREASURY_USER}}'
password: '{{env.MODERN_TREASURY_PASS}}'
exposes:
- type: rest
namespace: modern-treasury-routingdetail-rest
port: 8080
description: REST adapter for Modern Treasury — RoutingDetail. One Spectral-compliant resource per consumed operation,
prefixed with /v1.
resources:
- path: /v1/api/{accounts-type}/{account-id}/routing-details
name: api-accounts-type-account-id-routing-details
description: REST surface for api-accounts_type-account_id-routing_details.
operations:
- method: GET
name: listroutingdetails
description: list routing_details
call: modern-treasury-routingdetail.listroutingdetails
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: createroutingdetail
description: create routing_detail
call: modern-treasury-routingdetail.createroutingdetail
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}/routing-details/{id}
name: api-accounts-type-account-id-routing-details-id
description: REST surface for api-accounts_type-account_id-routing_details-id.
operations:
- method: GET
name: getroutingdetail
description: get routing_detail
call: modern-treasury-routingdetail.getroutingdetail
with:
accounts_type: rest.accounts_type
account_id: rest.account_id
id: rest.id
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: deleteroutingdetail
description: delete routing_detail
call: modern-treasury-routingdetail.deleteroutingdetail
with:
accounts_type: rest.accounts_type
account_id: rest.account_id
id: rest.id
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: modern-treasury-routingdetail-mcp
port: 9090
transport: http
description: MCP adapter for Modern Treasury — RoutingDetail. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: list-routing-details
description: list routing_details
hints:
readOnly: true
destructive: false
idempotent: true
call: modern-treasury-routingdetail.listroutingdetails
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-routing-detail
description: create routing_detail
hints:
readOnly: false
destructive: false
idempotent: false
call: modern-treasury-routingdetail.createroutingdetail
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-routing-detail
description: get routing_detail
hints:
readOnly: true
destructive: false
idempotent: true
call: modern-treasury-routingdetail.getroutingdetail
with:
accounts_type: tools.accounts_type
account_id: tools.account_id
id: tools.id
outputParameters:
- type: object
mapping: $.
- name: delete-routing-detail
description: delete routing_detail
hints:
readOnly: false
destructive: true
idempotent: true
call: modern-treasury-routingdetail.deleteroutingdetail
with:
accounts_type: tools.accounts_type
account_id: tools.account_id
id: tools.id
outputParameters:
- type: object
mapping: $.