Skip to main content
Glama

search_memory

Read-onlyIdempotent

Recall relevant memories before responding by querying stored context; call first with the user's message and optionally filter by scope to ground replies.

Instructions

Recall relevant memories before responding. Call this first with the user's message. Optional escopo narrows the search ('universal' | 'projeto:' | 'cena:', or a list); default = universal + this project.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
escopoNoscope filter

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is fully covered elsewhere. The description adds one genuinely useful behavioral fact the schema lacks: the default scope resolution is 'universal + this project.' It says nothing about return shape, result count behavior, or ranking.

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?

Three compact sentences, front-loaded with the action and timing, then the scope detail. Every sentence carries information. The dense inline enum listing is necessary but slightly awkward to parse.

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?

For a 3-parameter, annotation-rich, output-schema-less search tool, this covers purpose, timing, and the non-obvious scope parameter adequately. The residual gap is the 'limit' parameter's meaning, which an agent would have to infer from its default of 5.

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 only 33%, with 'escopo' documented tersely as 'scope filter' and 'limit'/'query' undocumented. The description compensates well for escopo by spelling out the accepted forms ('universal' | 'projeto:<id>' | 'cena:<id>', or a list) and its default, but adds nothing about 'limit' semantics such as maximum or meaning.

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 description gives a specific verb and resource: 'Recall relevant memories.' An agent can tell this is a memory search rather than a write/list operation. It does not, however, distinguish itself from siblings like fetch_memory, list_memory, or search_context, so sibling differentiation is missing.

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?

Strong when-to-use guidance: 'before responding' and 'Call this first with the user's message' tells the agent exactly when in the turn to invoke it. No when-not or explicit alternative routing (e.g., vs fetch_memory) is provided, which keeps it below a 5.

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