Skip to main content
Glama

list_agent_outcomes

Read-onlyIdempotent

List outcome events for one agent (by public key) in the API key's org, newest first by default. When to use: to audit what results an agent recorded, find an outcome event_hash for get_proof, or page outcomes without already knowing hashes. When NOT to use: to list decisions (use list_agent_decisions); 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 / log_outcome response or register_agent. Requires X-API-Key. Read-only. Unknown public keys return an empty outcomes list (total 0), not an error. Returns {outcomes, total, next_cursor, has_next}. Each outcome includes decision_event_hash when linked. 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_outcomes"
  }
}

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 outcomes with event_seq older than this value.
agent_public_keyYesBase64 Ed25519 public key of the agent whose outcomes 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.6/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, but the description goes further: it discloses the auth requirement (X-API-Key, org-scoped), the graceful-failure behavior (unknown public keys yield an empty outcomes list with total 0 rather than an error), and the return shape with an optional decision_event_hash link. The one gap is that it never says what happens on a malformed or non-base64 key, which would be an error case.

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, and the labeled 'When to use' / 'When NOT to use' structure makes it scannable. It is dense, and the final return-shape sentence plus the decision_event_hash aside are close to schema restatement, but with no output schema they still earn their place.

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?

There is no output schema, and the description compensates fully by enumerating the return object ({outcomes, total, next_cursor, has_next}) and describing the pagination loop. Combined with auth, scoping, ordering, and the empty-result edge case, an agent has everything needed to call and interpret this tool correctly.

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 already 100%, so the baseline is 3; the description earns an extra point by telling the agent where agent_public_key comes from (a prior log_decision/log_outcome response or register_agent) and by emphasizing that agent_name is rejected. Cursor paging is explained as 'pass next_cursor as cursor for the next older page', which ties the return field to the input parameter in a way the schema alone does not.

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?

The opening sentence gives a specific verb and resource ('List outcome events for one agent'), plus scope (org via API key) and ordering (newest first by default). The 'When NOT to use' block names each sibling (list_agent_decisions, get_proof, log_decision/log_outcome) and the condition that selects it, so an agent can discriminate without opening any schema.

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?

Explicit three-way routing: audit an agent's recorded results, obtain an event_hash for get_proof, or page outcomes without knowing hashes. It also states what this is not (not a decision listing, not a proof fetcher, not a writer) and warns it is org-scoped rather than a public explorer. The prerequisite (X-API-Key) and the requirement to supply public_key rather than agent_name are called out directly.

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.