Skip to main content
Glama

List Request executions

list_executions
Read-onlyIdempotent

List executions of approved requests in this project, newest first: which request ran, against which datasource, under which principal and subject, in which mode (approved, mock, dev), and how it ended (terminal_state succeeded, failed, or indeterminate — an attempt whose outcome could not be determined). An execution the serving path refused the answer of also carries a refusal_class saying what it would not accept: today's one value is answer_shape, meaning the source answered and the answer did not have the shape the approval named — nothing is wrong with the source, and somebody has to look at the declaration. It is beside terminal_state rather than part of it, and absent on almost every row. Use it to diagnose a production failure: filter by request_id, datasource_id, mode, terminal_state, refusal_class, success, and a time window. An ad-hoc run — SQL run through the query or execute tool — is bound to no approved request and carries no request_id. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_executions"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoOnly this kind of run: approved, mock, or dev
limitNoMax executions to return (default: 50, max: 500)
sinceNoOnly executions at or after this RFC 3339 timestamp
untilNoOnly executions at or before this RFC 3339 timestamp
successNoOnly executions counted as a success (true) or not (false)
query_idNoOnly executions of this request (UUID)
datasource_idNoOnly executions against this datasource (UUID)
refusal_classNoOnly executions whose answer the serving path refused, of this class: answer_shape (the answer was not the shape the approval named)
terminal_stateNoOnly executions that ended this way: succeeded, failed, or indeterminate

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantive behavior no structured field carries: it never returns result rows or call parameters, persists only the fact of what was attempted, and explains that attestations never change terminal_state. It also defines indeterminate (an attempt whose outcome could not be determined) and clarifies refusal_class sits beside terminal_state rather than inside it and is absent on nearly every row.

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

Conciseness4/5

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

Purpose and ordering are front-loaded in the first clause, and virtually every sentence carries information that is unavailable elsewhere because there is no output schema. The weakness is structural: it is one continuous block mixing filtering guidance, terminal-state semantics, and deep field-level notes on confirmation actor id formats (bare id vs principal:agent:<id>), which is hard to scan even though little of it is disposable.

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 and nine parameters, the description carries the full burden and does so: it documents the returned fields, the meaning of each terminal_state and refusal_class value, the presence of declared_cap on writes, attestations and attestation_url, and the confirmation block with its actor-id conventions. An agent can both select and correctly interpret results without further context.

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 100%, so filtering mechanics are already documented; the description adds meaning on top by explaining what refusal_class=answer_shape actually means (the source answered, the shape did not match the approval, the source is not at fault, a human must inspect the declaration) and what terminal_state indeterminate signifies. It does not restate the limit/time-window syntax, which is appropriate since the schema covers it.

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?

Opens with a specific verb and resource plus scope and ordering: "List executions of approved requests in this project, newest first," then enumerates exactly what each row reports (request, datasource, principal, subject, mode, terminal_state). It also distinguishes this from the ad-hoc path by stating that a run made through the query or execute tool is bound to no approved request and carries no request_id.

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?

Gives an explicit use case ("Use it to diagnose a production failure") and lists the filters that support it, plus a clear exclusion that ad-hoc runs will not appear here. It stops short of naming a sibling as the alternative for non-approved runs, leaving the agent to infer that from the query/execute mention.

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