Codat · Capability

Lending — Excel reports

Lending — Excel reports. 3 operations. Lead operation: Generate Excel report. Self-contained Naftiko capability covering one Codat business surface.

Run with Naftiko CodatExcel reports

What You Can Do

POST
Generateexcelreport — Generate Excel report
/v1/data/companies/{companyid}/assess/excel
GET
Getexcelreportgenerationstatus — Get Excel report status
/v1/data/companies/{companyid}/assess/excel
GET
Downloadexcelreport — Download Excel report
/v1/data/companies/{companyid}/assess/excel/download

MCP Tools

generate-excel-report

Generate Excel report

get-excel-report-status

Get Excel report status

read-only idempotent
download-excel-report

Download Excel report

read-only idempotent

Capability Spec

lending-excel-reports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lending — Excel reports
  description: 'Lending — Excel reports. 3 operations. Lead operation: Generate Excel report. Self-contained Naftiko capability
    covering one Codat business surface.'
  tags:
  - Codat
  - Excel reports
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CODAT_API_KEY: CODAT_API_KEY
capability:
  consumes:
  - type: http
    namespace: lending-excel-reports
    baseUri: https://api.codat.io
    description: Lending — Excel reports business capability. Self-contained, no shared references.
    resources:
    - name: data-companies-companyId-assess-excel
      path: /data/companies/{companyId}/assess/excel
      operations:
      - name: generateexcelreport
        method: POST
        description: Generate Excel report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getexcelreportgenerationstatus
        method: GET
        description: Get Excel report status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: data-companies-companyId-assess-excel-download
      path: /data/companies/{companyId}/assess/excel/download
      operations:
      - name: downloadexcelreport
        method: GET
        description: Download Excel report
        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-excel-reports-rest
    port: 8080
    description: REST adapter for Lending — Excel reports. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/data/companies/{companyid}/assess/excel
      name: data-companies-companyid-assess-excel
      description: REST surface for data-companies-companyId-assess-excel.
      operations:
      - method: POST
        name: generateexcelreport
        description: Generate Excel report
        call: lending-excel-reports.generateexcelreport
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getexcelreportgenerationstatus
        description: Get Excel report status
        call: lending-excel-reports.getexcelreportgenerationstatus
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/companies/{companyid}/assess/excel/download
      name: data-companies-companyid-assess-excel-download
      description: REST surface for data-companies-companyId-assess-excel-download.
      operations:
      - method: GET
        name: downloadexcelreport
        description: Download Excel report
        call: lending-excel-reports.downloadexcelreport
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lending-excel-reports-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lending — Excel reports. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: generate-excel-report
      description: Generate Excel report
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lending-excel-reports.generateexcelreport
      outputParameters:
      - type: object
        mapping: $.
    - name: get-excel-report-status
      description: Get Excel report status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lending-excel-reports.getexcelreportgenerationstatus
      outputParameters:
      - type: object
        mapping: $.
    - name: download-excel-report
      description: Download Excel report
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lending-excel-reports.downloadexcelreport
      outputParameters:
      - type: object
        mapping: $.