Dapr · Capability

Dapr Metadata API — Metadata

Dapr Metadata API — Metadata. 2 operations. Lead operation: Dapr Get Metadata. Self-contained Naftiko capability covering one Dapr business surface.

Run with Naftiko DaprMetadata

What You Can Do

GET
Getmetadata — Dapr Get Metadata
/v1/v1-0/metadata
PUT
Setmetadata — Dapr Set Metadata
/v1/v1-0/metadata/{key}

MCP Tools

dapr-get-metadata

Dapr Get Metadata

read-only idempotent
dapr-set-metadata

Dapr Set Metadata

idempotent

Capability Spec

metadata-metadata.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Dapr Metadata API — Metadata
  description: 'Dapr Metadata API — Metadata. 2 operations. Lead operation: Dapr Get Metadata. Self-contained Naftiko capability
    covering one Dapr business surface.'
  tags:
  - Dapr
  - Metadata
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DAPR_API_KEY: DAPR_API_KEY
capability:
  consumes:
  - type: http
    namespace: metadata-metadata
    baseUri: http://localhost:3500
    description: Dapr Metadata API — Metadata business capability. Self-contained, no shared references.
    resources:
    - name: v1.0-metadata
      path: /v1.0/metadata
      operations:
      - name: getmetadata
        method: GET
        description: Dapr Get Metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1.0-metadata-key
      path: /v1.0/metadata/{key}
      operations:
      - name: setmetadata
        method: PUT
        description: Dapr Set Metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: key
          in: path
          type: string
          description: The metadata attribute key to set.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: metadata-metadata-rest
    port: 8080
    description: REST adapter for Dapr Metadata API — Metadata. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1-0/metadata
      name: v1-0-metadata
      description: REST surface for v1.0-metadata.
      operations:
      - method: GET
        name: getmetadata
        description: Dapr Get Metadata
        call: metadata-metadata.getmetadata
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1-0/metadata/{key}
      name: v1-0-metadata-key
      description: REST surface for v1.0-metadata-key.
      operations:
      - method: PUT
        name: setmetadata
        description: Dapr Set Metadata
        call: metadata-metadata.setmetadata
        with:
          key: rest.key
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: metadata-metadata-mcp
    port: 9090
    transport: http
    description: MCP adapter for Dapr Metadata API — Metadata. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: dapr-get-metadata
      description: Dapr Get Metadata
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: metadata-metadata.getmetadata
      outputParameters:
      - type: object
        mapping: $.
    - name: dapr-set-metadata
      description: Dapr Set Metadata
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: metadata-metadata.setmetadata
      with:
        key: tools.key
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.