Skip to main content
Glama

mt_search

Read-only

Search local project memory lexically, querying the current entry by default and optionally including historical records or another explicit project.

Instructions

本地词法检索。默认查当前条目。历史记录按需包含,跨项目需显式选择

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

Input Schema

NameRequiredDescriptionDefault
topKNo
queryYes
scopeNo
projectNo显式项目名,使用 mt_set_project 初始化
includeHistoricalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description's job is to add more. It does add meaningful default behavior (current entry only, history excluded unless requested) plus the cross-project prerequisite, but it omits ranking/result format and the topK default, which matter for a search tool.

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 short clauses, front-loaded with the core operation and then the scoping defaults. No filler; it is slightly telegraphic but nothing is wasted.

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

Completeness2/5

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

With five parameters, 20% schema coverage, no output schema, and only a readOnly annotation, the description should say more about what comes back and how topK/scope behave. It covers the scoping story but leaves the agent guessing on result shape and result count.

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 20% (only project is documented), so the description must compensate. It explains includeHistorical and the project prerequisite, but leaves topK, query, and the ambiguous single-value scope enum (["all"]) unexplained, so coverage remains partial.

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?

"本地词法检索" names a specific verb (lexical search) and resource (local store), and the lexical qualifier effectively distinguishes it from semantic/chat-style siblings like mt_chat and mt_route. It does not explicitly name a sibling it replaces, but the operation is unambiguous.

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?

It states three usage conditions: default scope is the current entry, historical records are opt-in, and cross-project search requires explicit selection (pointing at mt_set_project). That is real when-to-use guidance for scoping, but it gives no guidance on when to pick this tool over sibling search/chat tools.

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