Skip to main content
Glama

Recall User Context

recall_user_context
Destructive

Assemble task-aware user context from claims, profiles, memories, state keys, and sessions. Scope by project or cwd to get a compact, source-attributed JSON with included, dropped, and reason-code items.

Instructions

Assemble task-aware user context from safe claims, profile summary, repo memories, requested current-state keys, workstreams, and recent sessions. Its poisoning gate may quarantine an unsafe legacy or session summary. Requires a non-blank query. project sets the scope; otherwise cwd is normalized, and when both are omitted the current process working directory supplies the scope. Returns a compact source-attributed JSON object with included items, dropped items, reason codes, and budget metadata. Use search for exhaustive memory matches and current_state for one exact stable key; this tool selects a bounded context bundle instead. Invalid scope input, an unavailable process working directory, or database failures return a tool error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoCurrent working directory used to derive the project key.
hostNoHost profile, e.g. codex-cli or claude-code.
limitNoMaximum included recall items.
queryYesTask or topic query for user-context recall.
projectNoProject key/path filter. If omitted, cwd is normalized.
owner_keyNoExplicit user-context owner key.
state_keysNoStable current-state keys to resolve exactly.
owner_scopeNoExplicit user-context owner scope.
task_intentNoOptional task intent, e.g. review, implement, debug, plan.
budget_charsNoMaximum compact context characters.
current_filesNoCurrent file paths relevant to the task.
include_sensitiveNoInclude personal/sensitive/restricted claims for explicit audit.
include_suppressedNoInclude policy-suppressed claims and memories for explicit audit.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNo
emptyYes
queryYes
contextYes
droppedYes
projectYes
includedYes
diagnosticsYes
task_intentNo
usage_policyNo
Behavior5/5

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

Annotations include destructiveHint=true and readOnlyHint=false, and the description aligns by disclosing the poisoning gate may quarantine unsafe legacy/session summaries. It also reveals scope-resolution precedence (project > cwd > process working directory), output structure, and error conditions. This goes well beyond the annotations to explain behavior and side effects.

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 front-loaded with the primary purpose, followed by critical behavioral notes, scope rules, output summary, alternatives, and error conditions. Each sentence is packed with necessary information without redundancy. It is appropriately sized for a tool with 13 parameters and meaningful side effects.

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?

Given the complexity (13 params, output schema, annotations), the description covers the key aspects: what it assembles, the poisoning side effect, scope handling, output format, alternatives, and failure modes. It does not need to enumerate every parameter since the schema is thorough, and the output schema exists to define return values.

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 adds value by clarifying the interplay between project, cwd, and the current process working directory, and by emphasizing the non-blank requirement for query. It does not detail every parameter, but the schema already describes each one; the description meaningfully enhances scope-related parameters.

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 starts with 'Assemble task-aware user context from safe claims...' which provides a specific verb (assemble) and resource (user context) plus the source material. It distinguishes from siblings by naming search and current_state and explaining the different selection strategy. This is a clear, non-tautological statement of purpose.

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 explicitly says 'Use search for exhaustive memory matches and current_state for one exact stable key; this tool selects a bounded context bundle instead.' This names two alternatives and gives clear when-to-use guidance. It also notes the requirement for a non-blank query, which acts as a precondition.

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/majiayu000/remem'

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