Skip to main content
Glama

Retrieve an execution receipt

get_execution
Read-onlyIdempotent

Fetch the TRACE Receipt for an execution_id: status, commitments, artifacts and evidence. The hosted gateway retains receipts only within a warm instance — the invoke response returns the full receipt inline, so keep it for durable verification.

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": {
      "execution_id": "<execution_id>"
    },
    "name": "get_execution"
  }
}

Input Schema

NameRequiredDescriptionDefault
execution_idYese.g. 'tr_exec_...' from invoke_capability

Output Schema

NameRequiredDescriptionDefault
receiptYesTRACE Receipt — https://tracert.site/schemas/receipt/v0.1

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"
      +    }
      +  },
      +  "required": [
      +    "receipt"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description goes further by disclosing a non-obvious retention constraint — receipts are ephemeral beyond a warm instance — which is exactly the kind of behavior an agent cannot infer from structured fields and which materially affects whether results can be trusted later.

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?

Two sentences, both front-loaded: capability first, then the operational caveat. No filler and no repetition of the annotations or schema.

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

Completeness5/5

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

A single-required-parameter read tool with an output schema and full annotation coverage needs little more; the description supplies the payload summary, the key source, and the retention caveat. Nothing an agent needs to call it correctly or interpret the result is missing.

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

Parameters3/5

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

Schema coverage is 100% and the single parameter already carries an example ('tr_exec_...') pointing back to invoke_capability. The description restates that the key is an execution_id but adds no format, sourcing, or validation detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb (fetch) and resource (TRACE Receipt keyed by execution_id) and enumerates the payload (status, commitments, artifacts, evidence), so the agent knows exactly what comes back. It is clearly distinguishable from invoke_capability, which is referenced as the place the receipt is produced.

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

Usage Guidelines4/5

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

The second sentence establishes the operative usage context: receipts live only within a warm instance, and the invoke response already returns the full receipt inline, so callers should retain it for durable verification. That effectively tells an agent when this tool is weak or redundant, though it stops short of an explicit 'prefer X over Y' instruction.

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.