Skip to main content
Glama

memory_smart_search

Read-onlyIdempotent

Rank local encrypted memories by lexical and Chinese-character overlap. This is not embedding-based semantic search.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
device_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and a closed-world scope, so the safety profile is fully covered elsewhere. The description adds useful context that memories are local and encrypted and that ranking is lexical, but says nothing about how scores are ordered, what a low rank means, or how paging through results works.

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?

Two sentences, both load-bearing: the first gives purpose and method, the second pre-empts the most likely misclassification. Front-loaded with zero filler.

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 read-only ranked search this covers what the tool is and how it differs, but with no output schema and no schema parameter documentation, an agent still lacks guidance on result shape, ranking interpretation, and device scoping. Adequate, not complete.

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

Parameters2/5

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

Schema description coverage is 0% and the three parameters carry only bare titles with a default of 25 for 'limit'. The description gives some implicit meaning to 'query' (it is matched by lexical and Chinese-character overlap) but never explains what 'limit' bounds or what the empty-string-defaulted 'device_id' scopes — a notable gap since 'local' vs device scope is behaviorally significant here.

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 and resource ('Rank local encrypted memories') plus the ranking basis (lexical and Chinese-character overlap), and explicitly negates the embedding-based approach. That negation separates it from semantic-search siblings, though no sibling tool is named outright.

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?

The line 'This is not embedding-based semantic search' implies when to reach for this tool (exact lexical/character matching rather than fuzzy semantic recall), but it never states the positive condition or names the alternative tool to use instead. Usage is inferred rather than instructed.

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