Marqeta · Capability

Marqeta DiVA API — Cards

Marqeta DiVA API — Cards. 2 operations. Lead operation: Retrieve detailed card information. Self-contained Naftiko capability covering one Marqeta business surface.

Run with Naftiko MarqetaCards

What You Can Do

GET
Getcardsdetail — Retrieve detailed card information
/v1/views/cards/detail
GET
Getcards — Retrieve card state and history data
/v1/views/cards/{time-agg}

MCP Tools

retrieve-detailed-card-information

Retrieve detailed card information

read-only idempotent
retrieve-card-state-and-history

Retrieve card state and history data

read-only idempotent

Capability Spec

diva-cards.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Marqeta DiVA API — Cards
  description: 'Marqeta DiVA API — Cards. 2 operations. Lead operation: Retrieve detailed card information. Self-contained
    Naftiko capability covering one Marqeta business surface.'
  tags:
  - Marqeta
  - Cards
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MARQETA_API_KEY: MARQETA_API_KEY
capability:
  consumes:
  - type: http
    namespace: diva-cards
    baseUri: https://diva-api.marqeta.com/data/v2
    description: Marqeta DiVA API — Cards business capability. Self-contained, no shared references.
    resources:
    - name: views-cards-detail
      path: /views/cards/detail
      operations:
      - name: getcardsdetail
        method: GET
        description: Retrieve detailed card information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: views-cards-time_agg
      path: /views/cards/{time_agg}
      operations:
      - name: getcards
        method: GET
        description: Retrieve card state and history data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.MARQETA_USER}}'
      password: '{{env.MARQETA_PASS}}'
  exposes:
  - type: rest
    namespace: diva-cards-rest
    port: 8080
    description: REST adapter for Marqeta DiVA API — Cards. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/views/cards/detail
      name: views-cards-detail
      description: REST surface for views-cards-detail.
      operations:
      - method: GET
        name: getcardsdetail
        description: Retrieve detailed card information
        call: diva-cards.getcardsdetail
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/views/cards/{time-agg}
      name: views-cards-time-agg
      description: REST surface for views-cards-time_agg.
      operations:
      - method: GET
        name: getcards
        description: Retrieve card state and history data
        call: diva-cards.getcards
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: diva-cards-mcp
    port: 9090
    transport: http
    description: MCP adapter for Marqeta DiVA API — Cards. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: retrieve-detailed-card-information
      description: Retrieve detailed card information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: diva-cards.getcardsdetail
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-card-state-and-history
      description: Retrieve card state and history data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: diva-cards.getcards
      outputParameters:
      - type: object
        mapping: $.