Modern Treasury · Capability

Modern Treasury — JournalReport

Modern Treasury — JournalReport. 3 operations. Lead operation: list journal_reports. Self-contained Naftiko capability covering one Modern Treasury business surface.

Run with Naftiko Modern TreasuryJournalReport

What You Can Do

GET
Listjournalreports — list journal_reports
/v1/api/journal-reports
GET
Getjournalreport — show journal_report
/v1/api/journal-reports/{id}
PATCH
Updatejournalreport — update journal_report
/v1/api/journal-reports/{id}

MCP Tools

list-journal-reports

list journal_reports

read-only idempotent
show-journal-report

show journal_report

read-only idempotent
update-journal-report

update journal_report

idempotent

Capability Spec

modern-treasury-journalreport.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Modern Treasury — JournalReport
  description: 'Modern Treasury — JournalReport. 3 operations. Lead operation: list journal_reports. Self-contained Naftiko
    capability covering one Modern Treasury business surface.'
  tags:
  - Modern Treasury
  - JournalReport
  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-journalreport
    baseUri: http://localhost:3000
    description: Modern Treasury — JournalReport business capability. Self-contained, no shared references.
    resources:
    - name: api-journal_reports
      path: /api/journal_reports
      operations:
      - name: listjournalreports
        method: GET
        description: list journal_reports
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: status
          in: query
          type: string
    - name: api-journal_reports-id
      path: /api/journal_reports/{id}
      operations:
      - name: getjournalreport
        method: GET
        description: show journal_report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatejournalreport
        method: PATCH
        description: update journal_report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: basic
      username: '{{env.MODERN_TREASURY_USER}}'
      password: '{{env.MODERN_TREASURY_PASS}}'
  exposes:
  - type: rest
    namespace: modern-treasury-journalreport-rest
    port: 8080
    description: REST adapter for Modern Treasury — JournalReport. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/journal-reports
      name: api-journal-reports
      description: REST surface for api-journal_reports.
      operations:
      - method: GET
        name: listjournalreports
        description: list journal_reports
        call: modern-treasury-journalreport.listjournalreports
        with:
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/journal-reports/{id}
      name: api-journal-reports-id
      description: REST surface for api-journal_reports-id.
      operations:
      - method: GET
        name: getjournalreport
        description: show journal_report
        call: modern-treasury-journalreport.getjournalreport
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatejournalreport
        description: update journal_report
        call: modern-treasury-journalreport.updatejournalreport
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: modern-treasury-journalreport-mcp
    port: 9090
    transport: http
    description: MCP adapter for Modern Treasury — JournalReport. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-journal-reports
      description: list journal_reports
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: modern-treasury-journalreport.listjournalreports
      with:
        status: tools.status
      outputParameters:
      - type: object
        mapping: $.
    - name: show-journal-report
      description: show journal_report
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: modern-treasury-journalreport.getjournalreport
      outputParameters:
      - type: object
        mapping: $.
    - name: update-journal-report
      description: update journal_report
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: modern-treasury-journalreport.updatejournalreport
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.