Skip to main content
Glama

Read a Request execution

get_execution
Read-onlyIdempotent

Get one execution by id: the request, datasource, principal and subject, mode, terminal_state, timing, the error message if it failed, and — where the serving path refused the answer itself — the refusal_class saying what it would not accept, with that class spelled out in one line. For an approved Request that still exists, execution_id alone reads local evidence and any Request Service record with ordered platform_calls. To read the Request Service record, supply datasource_id for a deleted Request or a dev_run_operation without a local execution row. Runtime egress refusals are included only when supplied by the service. A failed service record, or a succeeded record with a nonempty error, carries the service's own failure_class — the one reason it chose from observed facts, never parsed out of its error text — spelled out in one line as failure_class_meaning; that class is null on a clean success, on an indeterminate write, on a run still in flight and on records finished before the field existed, so a null is not proof of success. Remote evidence failures are explicit as service_execution_error when local evidence remains available. write_applied is execution-only: at least one broker write succeeded before a later failure; it establishes neither all intended writes nor a completed write count. It is never a dev classification or a clean success. Applied-write failures and indeterminate service writes include service_execution_guidance: do not resend the write; investigate current state using service_execution.verify_with when the pinned manifest names a verification read or broker guidance. An ad-hoc run carries no request_id: it is bound to no approved request. Writes include the declared_cap when recorded. Indeterminate writes include attestations (each human outcome, attested_by and attested_at), and an attestation_url for an Administrator to read the full evidence or state the outcome. Human statements do not change terminal_state. Ekaya persists the fact of what was attempted, never the payload: this tool never returns result rows or call parameters. An execution an approval ran also carries confirmation: the pending action, who requested it, who approved it, the authority and when. confirmation does not include the call's parameters. confirmation.requested_by and approved_by are the evidence's actor ids; a Data Access Point requester is its bare id, while principal is agent:.

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_idYesExecution UUID from list_executions, dev_run_operation or execute_approved_request
datasource_idNoService datasource UUID; needed to read the Request Service record for a deleted Request or a dev_run_operation without a local execution row. For an approved Request that still exists, execution_id alone suffices. Must match any local execution row.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already establish readOnly/idempotent/non-destructive, yet the description adds substantial behavioral context beyond them: it never returns result rows or call parameters, a null failure_class is explicitly not proof of success, write_applied semantics are spelled out, and remote evidence failures surface as service_execution_error. This is exactly the kind of disclosure annotations cannot carry.

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

Conciseness3/5

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

The core purpose is front-loaded correctly, and most sentences carry real information about return fields. However, the body is a dense wall of em-dash-chained clauses covering failure_class, write_applied, attestations, confirmation, and actor-id formats, which is hard to scan and mixes several distinct topics without structure.

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?

With no output schema, the description must describe the return shape, and it does so exhaustively: field-by-field coverage, edge cases such as indeterminate writes and in-flight runs, and explicit notes on what is deliberately absent (payloads, parameters). An agent knows what it will and will not receive.

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%, so the baseline is 3. The description's statements about execution_id sufficiency and datasource_id necessity largely restate what the schema already says, adding little new meaning beyond the "must match any local execution row" constraint that is also in the schema.

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

Purpose4/5

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

Opens with a specific verb and resource: "Get one execution by id," then enumerates exactly what the record contains (request, datasource, principal, mode, terminal_state, timing, error, refusal_class). The scope is unambiguous. It does not, however, position itself against siblings like get_pending_action or list_executions beyond noting where execution_id comes from.

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

Usage Guidelines3/5

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

Gives concrete conditional guidance for the datasource_id parameter (supply it for a deleted Request or a dev_run_operation without a local row; execution_id alone suffices for an existing approved Request) and operational advice ("do not resend the write; investigate current state"). What it lacks is when to call this tool versus a sibling — no alternative is named or excluded.

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.

Resources