Codat · Capability

Lending — Liabilities

Lending — Liabilities. 4 operations. Lead operation: Generate loan summaries report. Self-contained Naftiko capability covering one Codat business surface.

Run with Naftiko CodatLiabilities

What You Can Do

POST
Generateloansummary — Generate loan summaries report
/v1/companies/{companyid}/reports/liabilities/loans
GET
Getloansummary — Get loan summaries
/v1/companies/{companyid}/reports/liabilities/loans
POST
Generateloantransactions — Generate loan transactions report
/v1/companies/{companyid}/reports/liabilities/loans/transactions
GET
Listloantransactions — List loan transactions
/v1/companies/{companyid}/reports/liabilities/loans/transactions

MCP Tools

generate-loan-summaries-report

Generate loan summaries report

get-loan-summaries

Get loan summaries

read-only idempotent
generate-loan-transactions-report

Generate loan transactions report

list-loan-transactions

List loan transactions

read-only idempotent

Capability Spec

lending-liabilities.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lending — Liabilities
  description: 'Lending — Liabilities. 4 operations. Lead operation: Generate loan summaries report. Self-contained Naftiko
    capability covering one Codat business surface.'
  tags:
  - Codat
  - Liabilities
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CODAT_API_KEY: CODAT_API_KEY
capability:
  consumes:
  - type: http
    namespace: lending-liabilities
    baseUri: https://api.codat.io
    description: Lending — Liabilities business capability. Self-contained, no shared references.
    resources:
    - name: companies-companyId-reports-liabilities-loans
      path: /companies/{companyId}/reports/liabilities/loans
      operations:
      - name: generateloansummary
        method: POST
        description: Generate loan summaries report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getloansummary
        method: GET
        description: Get loan summaries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: companies-companyId-reports-liabilities-loans-transactions
      path: /companies/{companyId}/reports/liabilities/loans/transactions
      operations:
      - name: generateloantransactions
        method: POST
        description: Generate loan transactions report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: listloantransactions
        method: GET
        description: List loan transactions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.CODAT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: lending-liabilities-rest
    port: 8080
    description: REST adapter for Lending — Liabilities. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/companies/{companyid}/reports/liabilities/loans
      name: companies-companyid-reports-liabilities-loans
      description: REST surface for companies-companyId-reports-liabilities-loans.
      operations:
      - method: POST
        name: generateloansummary
        description: Generate loan summaries report
        call: lending-liabilities.generateloansummary
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getloansummary
        description: Get loan summaries
        call: lending-liabilities.getloansummary
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/companies/{companyid}/reports/liabilities/loans/transactions
      name: companies-companyid-reports-liabilities-loans-transactions
      description: REST surface for companies-companyId-reports-liabilities-loans-transactions.
      operations:
      - method: POST
        name: generateloantransactions
        description: Generate loan transactions report
        call: lending-liabilities.generateloantransactions
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listloantransactions
        description: List loan transactions
        call: lending-liabilities.listloantransactions
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lending-liabilities-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lending — Liabilities. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: generate-loan-summaries-report
      description: Generate loan summaries report
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lending-liabilities.generateloansummary
      outputParameters:
      - type: object
        mapping: $.
    - name: get-loan-summaries
      description: Get loan summaries
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lending-liabilities.getloansummary
      outputParameters:
      - type: object
        mapping: $.
    - name: generate-loan-transactions-report
      description: Generate loan transactions report
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lending-liabilities.generateloantransactions
      outputParameters:
      - type: object
        mapping: $.
    - name: list-loan-transactions
      description: List loan transactions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lending-liabilities.listloantransactions
      outputParameters:
      - type: object
        mapping: $.