Skip to main content
Glama

Search memory

mem_search
Read-only

Busca en la memoria del agente (full-text, español) dentro de un scope (proyecto/repo). scope es el nombre del proyecto que usa el cliente (el de la carpeta del repo, igual que tu identificador de proyecto; estable). Devuelve las memorias ordenadas por relevancia + recencia, cada una con snippet (…), score y el scope del que sale (scopeKey/scopeName, más foreign). query vacía o scope sin memoria → []. limit opcional (1-50, def. 25). git_remote opcional (la URL de git remote get-url origin): si ya hay un scope de ese repo se usa ese aunque tu carpeta se llame distinto, así compartes memoria con quien lo clonó en otra carpeta. Solo se recupera la memoria de los proyectos a los que tienes acceso: un invitado ve la de los suyos y nada más. crossProject: true amplía la búsqueda a TODOS los proyectos del workspace (las memorias de otros scopes puntúan más bajo que las del tuyo, y vienen marcadas con foreign=true: úsalas como referencia, no como la convención de este repo). Requiere un plan de pago y una credencial que no esté acotada a un proyecto. workspaceId opcional: la memoria del workspace que digas (list_workspaces los enumera). Sin él, la del workspace por defecto — que NO es necesariamente donde se guardó lo último si estabas trabajando para otro.

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
scopeYes
git_remoteNo
workspaceIdNo
crossProjectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond readOnlyHint/openWorldHint=false: discloses ordering (relevance + recency), the exact per-hit shape (snippet with <mark>, score, scopeKey/scopeName/foreign), empty-result semantics, per-project access control for guests, and the paid-plan + non-project-scoped credential prerequisite. It also warns that foreign hits are reference-only, not this repo's convention.

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 and scope are front-loaded and no sentence is filler, but the single dense block piles parenthetical asides (the workspace default warning, the folder-name caveat) into one unbroken paragraph. Slightly long for what could be a lead sentence plus bullets.

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?

With six undocumented params, no output schema, and only two annotations, the description must supply both parameter meaning and return shape — and it does, including ordering, empty results, and hit field names. Nothing an agent needs to call this correctly is missing.

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 0%, so the description carries the full burden and does: query (empty → []), scope (client's project folder name, stable), limit (1-50, default 25 — which also corrects the schema's meaningless numeric bounds), git_remote (output of `git remote get-url origin`), crossProject, and workspaceId including the default-workspace caveat.

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?

Opens with a specific verb+resource in the first clause ('Busca en la memoria del agente ... full-text'), and immediately scopes it to a project/repo via `scope`, which separates it from broad siblings like mem_context or mem_save. An agent knows exactly what this returns without opening the schema.

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?

Gives concrete selection conditions: crossProject for workspace-wide lookup, git_remote when the local folder name differs from the clone, and workspaceId with a pointer to list_workspaces for enumeration. It stops short of an explicit 'use mem_get instead when you already have an id' style exclusion against siblings, so not a full 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources