Skip to main content
Glama

ouroboros_query_projection

Build a read-only projection of a session or execution from persisted events, enabling replay and analysis of agent workflow history.

Instructions

Build a read-only Run/Stage/Step projection from persisted Ouroboros events for a session or execution aggregate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOptional safety cap for related events. If the run has more events than this cap, the tool fails instead of returning a partial projection.
seed_idNoOptional seed ID override. If omitted, the handler derives one from events and falls back to the queried ID.
session_idNoOptional orchestrator session ID to project.
execution_idNoOptional execution aggregate ID. When session_id is also provided, this narrows related session-event lookup.
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses 'read-only' up front, which is a key behavioral trait. However, it lacks additional context such as failure modes, result format, or prerequisites beyond what the parameter schema already provides. The read-only designation is valuable but not exhaustive.

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?

The description is a single, concise sentence that front-loads the core action and scope. Every word contributes meaning, with no redundancy or filler.

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

Completeness3/5

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

The tool is relatively simple with no output schema or annotations, and the description covers the primary purpose. However, it does not describe the shape of the projection, potential failure conditions, or how it relates to the sibling query tool, leaving some gaps for an agent to discover.

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 description coverage is 100%, so the baseline is 3. The description itself adds no parameter information; all semantics come from the schema's detailed descriptions of limit, seed_id, session_id, and execution_id. The schema does the heavy lifting, so no credit is lost or gained beyond baseline.

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 description clearly states the verb 'Build' and the specific resource 'read-only Run/Stage/Step projection' from persisted events for a session or execution aggregate. This distinguishes it from sibling tools like ouroboros_query_events, which likely returns raw events rather than a structured projection.

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?

The description implies usage context ('for a session or execution aggregate') but does not explicitly state when to use this tool over alternatives or when not to use it. No exclusions or alternative tool mentions are provided, leaving the agent to infer when a projection is needed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Q00/ouroboros'

If you have feedback or need assistance with the MCP directory API, please join our Discord server