Skip to main content
Glama

ctxSaveTrace

Record a problem and solution trace after resolving a task for future context retrieval.

Instructions

Record a problem+solution trace after resolving a task. Future sessions see it via ctxQueryTraces and the session-start digest. Keep problem + solution to one line each.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYesWhat the trace is about: issue ref (#42), PR ref (PR-42), commit SHA, or short free text.
problemYesOne-line summary of the problem. What was broken or unclear?
solutionYesOne-line summary of the fix. What was the root cause and what resolved it?
tagsNoUp to 10 short labels for search (`flaky-test`, `perf`, `security`, `migration`). Each ≤32 chars.
Behavior4/5

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

Annotations (readOnlyHint false, destructiveHint false) are consistent. Description adds behavioral constraints like keeping problem and solution to one line each, and explains persistence and visibility across sessions.

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?

Two concise sentences: first states purpose and effect, second adds usage constraint and future availability. No wasted words.

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?

For a simple write tool with 4 params and no output schema, description covers what, when, how (one line each), and where results are visible. Complete and sufficient.

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% with descriptions for all 4 parameters. Description reinforces constraints like one line for problem/solution and max 10 tags, adding clarity without redundancy.

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?

Description clearly states 'Record a problem+solution trace after resolving a task' with a specific verb and resource. It distinguishes from sibling ctxQueryTraces by focusing on recording rather than querying.

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?

Explicitly says when to use ('after resolving a task') and mentions future retrieval via ctxQueryTraces and session-start digest. Does not explicitly state when not to use, but context is clear enough.

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/Oolab-labs/patchwork-os'

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