Skip to main content
Glama

search_memory

Read-onlyIdempotent

Search the curated memory tree for decisions, constraints, and conventions. Returns matching entries with addresses, or an empty list when nothing is relevant.

Instructions

READ-ONLY: lexical search over the curated memory tree, meaning the decisions, constraints, and conventions deliberately written by the user or an agent. Local disk read, no embedding call, no cost. Only active entries are searched; archived and trashed files are excluded. Returns [] rather than an error when nothing is relevant or the tree is empty, so an empty result is a real answer and not a failure. Not the same store as search_evidence, which searches raw harvested agent files instead; use ask_memory when you want both stores plus mandatory policy in one bundle. Parameters: query is the natural-language text to match; limit caps the number of results (default 8, capped at 50); project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns a list of objects with the docmancer://memory address, title, excerpt, authority, and source_type. Pass an address to read_memory for the full file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of matching results to return. Defaults are tool-specific.
queryYesNatural-language terms to search for in the local memory or documentation index.
project_pathNoProject root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already declare readOnly, idempotent, and non-destructive, but the description adds valuable behavioral details: local disk read, no embedding call, no cost, excludes archived/trashed files, and returns [] instead of an error. These go beyond the structured annotations and help the agent predict runtime behavior accurately.

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 dense with information but every sentence serves a purpose. It is front-loaded with the core purpose ('READ-ONLY: lexical search...') and logically flows through scope, exclusions, return behavior, parameter details, and return format. No wasted words for a tool this nuanced.

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 tool's complexity (3 params, output schema, multiple siblings), the description is fully self-contained. It covers purpose, filtering, empty-result semantics, sibling distinctions, parameter interpretation, return object fields, and the next step (read_memory). Nothing important is left to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with descriptions for all three parameters, and the description enriches each: query is natural-language text, limit has default 8 and cap 50, project_path explains the machine-wide vs project-pinned behavior. This adds meaningful semantics beyond the raw schema.

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 clearly states the tool performs 'lexical search over the curated memory tree' and specifies what that includes (decisions, constraints, conventions). It explicitly differentiates from siblings by noting it is 'Not the same store as search_evidence' and directs to ask_memory for a combined store, making the purpose unambiguous.

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?

Provides explicit usage guidance: when to use this tool (lexical search over curated memory), when not to use it (search_evidence for raw files), and the alternative for both plus policy (ask_memory). Also explains the 'returns []' behavior, giving clear context for interpreting results.

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/docmancer/docmancer'

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