Grapes Knowledge Base · Capability

Grapes Knowledge Base API — Agents

Grapes Knowledge Base API — Agents. 2 operations. Lead operation: List agents. Self-contained Naftiko capability covering one Grapes Knowledge Base business surface.

Run with Naftiko Grapes Knowledge BaseAgents

What You Can Do

GET
Get — List agents
/v1/agents
POST
Post — Create agent
/v1/agents

MCP Tools

list-agents

List agents

read-only idempotent
create-agent

Create agent

Capability Spec

grapes-knowledge-base-agents.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grapes Knowledge Base API — Agents
  description: 'Grapes Knowledge Base API — Agents. 2 operations. Lead operation: List agents. Self-contained Naftiko capability
    covering one Grapes Knowledge Base business surface.'
  tags:
  - Grapes Knowledge Base
  - Agents
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAPES_KNOWLEDGE_BASE_API_KEY: GRAPES_KNOWLEDGE_BASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: grapes-knowledge-base-agents
    baseUri: https://api.data-grapes.com
    description: Grapes Knowledge Base API — Agents business capability. Self-contained, no shared references.
    resources:
    - name: agents
      path: /agents
      operations:
      - name: get
        method: GET
        description: List agents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Create agent
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GRAPES_KNOWLEDGE_BASE_API_KEY}}'
  exposes:
  - type: rest
    namespace: grapes-knowledge-base-agents-rest
    port: 8080
    description: REST adapter for Grapes Knowledge Base API — Agents. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/agents
      name: agents
      description: REST surface for agents.
      operations:
      - method: GET
        name: get
        description: List agents
        call: grapes-knowledge-base-agents.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create agent
        call: grapes-knowledge-base-agents.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grapes-knowledge-base-agents-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grapes Knowledge Base API — Agents. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-agents
      description: List agents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grapes-knowledge-base-agents.get
      outputParameters:
      - type: object
        mapping: $.
    - name: create-agent
      description: Create agent
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grapes-knowledge-base-agents.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.