Skip to main content
Glama

mcp_engram_quick_trace

Captures structured trace blocks at each decision fork, chaining them via prev_in_trace for auditable history. Logs decision, why, spatial context, and goal context.

Instructions

Low-friction trace capture → structured trace:* block with prev_in_trace chain. Use at every fork; chain prev from trace_chain.head. Post-edit: run reflection loop or mcp_engram_safe_edit_and_verify. FEW-SHOT EXAMPLES: (1) Edit fork: {"decision":"Implement edit_fidelity module","why":"Composite tools need testable helpers","spatial_context":"crates/engram-server/src/edit_fidelity.rs:1","goal_context":"goal:agent_tool_fidelity_v1"} (2) Post-edit delta: {"decision":"Hardened MCP descriptions with few-shots","why":"Agents need copy-pasteable JSON","prev":"trace:1780000000_prior-step"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
whyYesThe real justification for the path taken
denyNoAlternatives/risks being rejected (A/D/R; optional)
prevNoPrevious trace concept name if chaining (optional)
affirmNoCore positive claim, intent, or state being advanced (A/D/R triad; optional)
contextNoRitual, spatial file, conv:arc, or any relevant context (free text, optional)
decisionYesOne clear sentence describing the fork or decision
reconcileNoSynthesis / coherence step (A/D/R 'fruit' carrier; optional)
alternativesNoWhat else was seriously considered (optional)
goal_contextNoGoal ID this trace serves (optional but strongly recommended when goals are active)
would_falsifyNoWhat would make you reverse this later (optional)
process_contextNoOptional process:engram.* key — emits realized_by edge for process_metrics (WS-3)
spatial_contextNoCode locus as file.rs:line (e.g. store.rs:4023). Absolute paths normalized to file.rs:line. File-only accepted with soft warning; ENGRAM_REQUIRE_LINE_CONTEXT=1 hard-rejects missing :line. Auto-wires edited_at to matching AST blocks.
Behavior4/5

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

With no annotations, the description carries full behavioral burden. It discloses that the tool creates a structured trace:* block with a prev_in_trace chain, implying it is a write operation that modifies state. It also suggests follow-up actions. However, it does not explicitly state side effects, permissions, or whether it is destructive, which could be clarified. Still, the core behavior is transparent enough for an agent.

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?

The description is front-loaded with the core purpose and usage, followed by few-shot examples. While somewhat lengthy due to examples, every sentence serves a purpose (guidance, illustration). It could be slightly more compact, but the structure effectively communicates when and how to use the tool.

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

Completeness4/5

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

Given the complexity (12 parameters, no output schema), the description adequately covers purpose, usage, parameter interaction, and follow-up workflow. It explains the output format (structured trace:* block with prev_in_trace chain) without an explicit output schema. The inclusion of few-shot examples further completes the context for proper invocation.

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?

Input schema covers all 12 parameters with descriptions (100% coverage). The description adds operational context beyond the schema, such as the chaining usage for 'prev' ('chain prev from trace_chain.head') and practical meaning of 'spatial_context' and 'goal_context' via examples. This extra context helps an agent select and fill parameters correctly, justifying a score above baseline 3.

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 explicitly states 'Low-friction trace capture' and specifies usage 'at every fork' with chaining from 'trace_chain.head'. It clearly distinguishes from siblings by focusing on quick capture and chaining, and the verb 'trace' combined with 'structured trace:* block' precisely conveys the action and output.

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?

The description gives explicit when-to-use instructions ('Use at every fork'), how to chain ('chain prev from trace_chain.head'), and post-edit steps ('run reflection loop or mcp_engram_safe_edit_and_verify'). Few-shot examples illustrate concrete scenarios (e.g., edit fork, post-edit delta), providing clear guidance on when and how to use the tool.

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/staticroostermedia-arch/engram'

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