Agave · Capability

Agave Unified Construction API — Invoices

Agave Unified Construction API — Invoices. 2 operations. Lead operation: Agave List Invoices. Self-contained Naftiko capability covering one Agave business surface.

Run with Naftiko AgaveInvoices

What You Can Do

GET
Listinvoices — Agave List Invoices
/v1/invoices
POST
Createinvoice — Agave Create Invoice
/v1/invoices

MCP Tools

agave-list-invoices

Agave List Invoices

read-only idempotent
agave-create-invoice

Agave Create Invoice

Capability Spec

unified-invoices.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Agave Unified Construction API — Invoices
  description: 'Agave Unified Construction API — Invoices. 2 operations. Lead operation: Agave List Invoices. Self-contained
    Naftiko capability covering one Agave business surface.'
  tags:
  - Agave
  - Invoices
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AGAVE_API_KEY: AGAVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: unified-invoices
    baseUri: https://api.agaveapi.com/v1
    description: Agave Unified Construction API — Invoices business capability. Self-contained, no shared references.
    resources:
    - name: invoices
      path: /invoices
      operations:
      - name: listinvoices
        method: GET
        description: Agave List Invoices
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: source_system_id
          in: header
          type: string
          description: The linked account source system identifier.
          required: true
        - name: project_id
          in: query
          type: string
          description: Filter by project ID.
      - name: createinvoice
        method: POST
        description: Agave Create Invoice
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: source_system_id
          in: header
          type: string
          description: The linked account source system identifier.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: API-Key
      value: '{{env.AGAVE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: unified-invoices-rest
    port: 8080
    description: REST adapter for Agave Unified Construction API — Invoices. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/invoices
      name: invoices
      description: REST surface for invoices.
      operations:
      - method: GET
        name: listinvoices
        description: Agave List Invoices
        call: unified-invoices.listinvoices
        with:
          source_system_id: rest.source_system_id
          project_id: rest.project_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createinvoice
        description: Agave Create Invoice
        call: unified-invoices.createinvoice
        with:
          source_system_id: rest.source_system_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: unified-invoices-mcp
    port: 9090
    transport: http
    description: MCP adapter for Agave Unified Construction API — Invoices. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: agave-list-invoices
      description: Agave List Invoices
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: unified-invoices.listinvoices
      with:
        source_system_id: tools.source_system_id
        project_id: tools.project_id
      outputParameters:
      - type: object
        mapping: $.
    - name: agave-create-invoice
      description: Agave Create Invoice
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: unified-invoices.createinvoice
      with:
        source_system_id: tools.source_system_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.