Skip to main content
Glama
Memory Bridge
by shuimo233

memory_context

Read-onlyIdempotent

Recall task constraints, communication preferences, decisions, and records via keyword search or resume mode; supply a task_id to include scoped context and check coverage before applying guidance.

Instructions

Recall applicable constraints, communication preferences, and records for this task.

Search mode accepts alternative keyword groups for the same question. Resume mode selects current task states and decisions independent of query words and variants. Supply the known task_id to include records scoped to that task. Apply communication_preferences quietly, including how the user wants routine choices handled. Reuse them until the task or preference changes. The current request and the host's action permissions take precedence. Check coverage before describing which constraints apply. The character budget counts complete records. For a rough software wish, memory_shape_request recalls context and guides the next step.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "memory_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNosearch
queryNo
task_idNo
max_charsNo
query_variantsNoAlternative keyword groups for the same question. Separate required terms with spaces. All terms in a group must match. Use likely alternate wording and preserve the user's intent.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, yet the description still adds non-obvious traits: preferences should be applied 'quietly' and reused until the task changes, the current request and host action permissions take precedence, and the character budget counts 'complete records'. 'Check coverage before describing which constraints apply' is useful but vague about what coverage means.

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 is front-loaded, then each short line covers a distinct concern (modes, task scoping, preference handling, budget, coverage). A few lines are terse to the point of ambiguity, such as 'Check coverage before describing which constraints apply', but nothing is redundant filler.

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?

With an output schema present the description needn't explain return values, and it does cover all the high-risk semantics an agent needs: mode selection, task scoping, budget accounting, and precedence over preferences. Remaining gaps are the meaning of the bare query field and what 'coverage' concretely refers to.

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 only 20% (only query_variants is documented), so the description must compensate and largely does: it explains the mode enum's two behaviors, scope widening via task_id, query_variants as alternative keyword groups for the same question, and that max_chars is a character budget counting whole records. The plain 'query' parameter itself is never given explicit semantics beyond 'query words'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb (recall) and concrete resources (constraints, communication preferences, records) scoped to 'this task', which is clearer than a generic memory lookup. It partially differentiates from siblings by routing 'a rough software wish' to memory_shape_request, but never contrasts itself with memory_search or memory_get, so an agent must still infer the boundary.

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?

It gives real usage conditions: search mode for keyword-group exploration, resume mode for task states and decisions 'independent of query words and variants', and task_id to widen the scope. It also names an explicit alternative (memory_shape_request for rough software wishes). Missing is guidance on when NOT to use this versus the other memory tools.

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