Skip to main content
Glama
MemoryHub
by hookmt

mem_search_index

Searches the memory database and returns a lightweight index of matching entries using Polish inflection-aware filtering, so you can preview results before fetching full records.

Instructions

Etap 1 Smart Search (Progressive Disclosure): przeszukuje bazę pamięci i zwraca lekki indeks pasujących wpisów z filtrem fleksyjnym dla języka polskiego.

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": "mem_search_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaksymalna liczba zwracanych wpisów w indeksie (domyślnie 5).
queryYesSłowa kluczowe lub zapytanie w języku naturalnym (np. 'wentylator rekuperatora', 'bateria studio')
scopeNoZasięg przeszukiwania: 'all' (domyślnie: wspólna + prywatna), 'shared' (tylko wspólna), 'private' (tylko własna prywatna).all
projectNoOpcjonalny filtr organizacyjny projektu (np. 'PROJECT_ALPHA', 'PROJECT_BETA', 'GLOBAL'). Jeśli brak, przeszukuje wszystkie wpisy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries full behavioral burden; it does disclose that results are a lightweight index and that Polish inflectional matching is applied, which is useful context. It does not state permissions, result volume limits, or ordering behavior, leaving notable gaps for a search tool with zero annotation coverage.

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?

A single front-loaded sentence with no wasted wording; it leads with the stage/purpose label and then the core behavior. Efficient, though it could have used the space saved to add the missing workflow guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a straightforward search tool with full schema coverage and no output schema, the definition is broadly adequate. It omits the explicit progressive-disclosure next step (which tool to call for details) and any note on result size, which an agent needs to complete the intended workflow.

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 100%, so all four parameters (query, limit, scope, project) are already well documented in the schema. The description adds no additional parameter meaning beyond noting Polish inflectional handling, so the baseline 3 is appropriate.

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?

States a specific verb (przeszukuje) and resource (bazę pamięci) and clarifies that it returns a 'lekki indeks' rather than full entries, which implicitly distinguishes it from a details-fetching sibling. It does not explicitly name the tool to use for the full records, so sibling differentiation is implied rather than spelled out.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Etap 1 Smart Search (Progressive Disclosure)' implies this is the first step before retrieving details, giving implied usage context. However, there is no explicit when-to-use/when-not guidance or naming of the follow-up tool, so the agent must infer the workflow.

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