Skip to main content
Glama

Run a free capability (read-only)

invoke_capability
Read-onlyIdempotent

Runs one free, read-only capability call and returns a TRACE Receipt binding the request, terms, outcome and evidence (with a sha256 commitment over the canonical output you can independently reproduce). This hosted gateway only reads: capabilities that write external state are refused with a pointer to the local router. Send an idempotency_key (8-128 chars) so a retry returns the same receipt instead of running twice.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "capability_id": "<capability_id>",
      "input": "<input>"
    },
    "name": "invoke_capability"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesPayload conforming to the capability's input schema (see get_capability)
quote_idNoQuote to bind the execution to; optional for free capabilities
capability_idYes
idempotency_keyNoCaller-chosen key making the invocation safely retriable

Output Schema

NameRequiredDescriptionDefault
receiptYesTRACE Receipt — https://tracert.site/schemas/receipt/v0.1
replayedYestrue when an idempotency_key matched an earlier execution

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "receipt": {
      +      "additionalProperties": {},
      +      "description": "TRACE Receipt — https://tracert.site/schemas/receipt/v0.1",
      +      "properties": {
      +        "capability": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "manifest_hash": {
      +              "type": "string"
      +            },
      +            "version": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "version",
      +            "manifest_hash"
      +          ],
      +          "type": "object"
      +        },
      +        "execution_id": {
      +          "type": "string"
      +        },
      +        "operator": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "gateway_id": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "gateway_id"
      +          ],
      +          "type": "object"
      +        },
      +        "payment": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "mode": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "mode",
      +            "status"
      +          ],
      +          "type": "object"
      +        },
      +        "request": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "commitment": {
      +              "type": "string"
      +            },
      +            "received_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "received_at",
      +            "commitment"
      +          ],
      +          "type": "object"
      +        },
      +        "result": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "artifacts": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "type": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "type"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "commitment": {
      +              "description": "sha256 over the canonical output — reproduce it to verify",
      +              "type": "string"
      +            },
      +            "completed_at": {
      +              "type": "string"
      +            },
      +            "reasons": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "code": {
      +                    "type": "string"
      +                  },
      +                  "message": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "code",
      +                  "message"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "status": {
      +              "enum": [
      +                "rejected",
      +                "quoted",
      +                "authorized",
      +                "running",
      +                "succeeded",
      +                "failed",
      +                "unknown",
      +                "cancelled"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "status"
      +          ],
      +          "type": "object"
      +        },
      +        "schema": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "schema",
      +        "execution_id",
      +        "capability",
      +        "request",
      +        "result",
      +        "payment",
      +        "operator"
      +      ],
      +      "type": "object"
      +    },
      +    "replayed": {
      +      "description": "true when an idempotency_key matched an earlier execution",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "receipt",
      +    "replayed"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent and non-destructive, yet the description adds real substance beyond them: the receipt contents, a sha256 commitment over canonical output that the caller can independently reproduce, and the guarantee that a retry with the same idempotency_key returns the prior receipt rather than executing twice. It does not cover failure modes for non-write errors or rate/quotas, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each carrying distinct required information: what it does and returns, the read-only boundary with its escape hatch, and the retry contract. Front-loaded with the action and no filler or restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with a nested free-form input object and an output schema, the description covers scope, safety boundary, retry semantics and the receipt enough to call it correctly. The remaining gap is provenance for capability_id (e.g. obtained from search_capabilities or get_capability), which the agent must infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75% and the schema already documents input, quote_id and idempotency_key; the description adds behavioral meaning to idempotency_key (retry returns the same receipt, 8-128 chars) and points to get_capability for the input payload shape. capability_id remains unexplained in both description and schema, and quote_id's binding semantics are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Runs one free, read-only capability call') and states the concrete return artifact: a TRACE Receipt binding request, terms, outcome and evidence. It is clearly distinct from siblings like get_capability (which supplies the input schema) and get_execution (which retrieves a past run).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use (free, read-only capabilities) and when-not (capabilities that write external state are refused), plus the alternative route for the excluded case ('a pointer to the local router'). It also prescribes the retry pattern via idempotency_key, so the agent knows how to re-invoke safely.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.