Skip to main content
Glama

list_agent_decisions

Read-onlyIdempotent

List decision events for one agent (by public key) in the API key's org, newest first by default. When to use: to review what an agent already logged, pick an event_hash for get_proof, or page through history before linking an outcome. When NOT to use: to list outcomes (use list_agent_outcomes); to fetch one event's trust/anchor proof (use get_proof); to write a new decision or outcome (use log_decision / log_outcome); this is org-scoped via X-API-Key (not a public explorer listing) and does not accept agent_name: pass the agent's public_key from a prior log_decision response or register_agent. Requires X-API-Key. Read-only. Unknown public keys return an empty decisions list (total 0), not an error. Returns {decisions, total, next_cursor, has_next}. Pass next_cursor as cursor for the next older page.

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": {
      "agent_public_key": "<agent_public_key>"
    },
    "name": "list_agent_decisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size (default 12, hard max 12). Results are ordered by event_seq descending (newest first).
cursorNoOptional event_seq cursor from a prior next_cursor. When set, returns decisions with event_seq older than this value.
agent_public_keyYesBase64 Ed25519 public key of the agent whose decisions to list. Must belong to an agent already registered in this API key's org.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing auth requirements (X-API-Key, org-scoped, not a public explorer), the non-obvious empty-result behavior for unknown keys (total 0, not an error), the return shape {decisions, total, next_cursor, has_next}, and the cursor-pagination contract. These are behaviors the readOnly/idempotent hints cannot convey.

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?

Front-loads purpose, then use/anti-use, then auth, then return shape and pagination — a logical, skimmable order with no filler sentences. It is a dense single block and repeats the newest-first ordering already in the limit parameter description, a minor redundancy for a tool of this complexity.

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 takes on the burden of describing the return object and how to advance pages, and it does so. Auth, scoping, error-free empty results, and cursor behavior cover everything needed to call this correctly with three simple parameters.

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 the baseline is 3; the description earns extra by telling the agent where agent_public_key comes from (a prior log_decision response or register_agent) and warning that agent_name is not accepted, which prevents a likely call error. Pagination and ordering semantics are largely restated from the schema, keeping it from a 5.

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 and resource ('List decision events for one agent'), plus scope ('in the API key's org') and default ordering ('newest first by default'). It also explicitly distinguishes itself from the sibling tools it is not (list_agent_outcomes, get_proof, log_decision/log_outcome).

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?

Provides an explicit 'When to use' section naming three concrete scenarios (reviewing logged events, picking an event_hash for get_proof, paging history before linking an outcome) and a 'When NOT to use' section that routes each alternative case to the correct sibling tool.

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.