Skip to main content
Glama

tmh_search

Search code graphs, project knowledge pages, and domain KBs by symbol, table, business term, or file keyword, with bilingual Chinese-English keyword expansion.

Instructions

Search across the code graph (domains, flows, tables, symbols), living project knowledge pages (.tmh/knowledge/), and built-in domain KBs (supports bilingual Chinese-English keyword expansion).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 30).
queryYesSearch query (symbol, table, business term, or file keyword).
repoPathNoOptional local repository path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose real behavior beyond the name — the three searchable corpora and Chinese-English keyword expansion — but says nothing about ranking, result shape per corpus, or whether the search is read-only and non-mutating.

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 sentence with a parenthetical, front-loading the verb and scope with no filler. The nested list of corpora is slightly dense but every clause carries information; nothing would be lost by keeping it as-is.

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 three-parameter search tool with no output schema and no annotations, the definition should say more about what comes back — whether results are grouped per corpus, how many, and how limit interacts with mixed-source hits. It documents what is searched adequately but leaves the return contract entirely to discovery at call time.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns a bump because 'supports bilingual Chinese-English keyword expansion' tells the agent it can mix languages or use a Chinese term in the query, which the schema's 'Search query (symbol, table, business term, or file keyword)' does not convey.

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 ('Search') and enumerates the three corpora it spans: code graph entities (domains, flows, tables, symbols), .tmh/knowledge/ pages, and built-in domain KBs. An agent can tell this is the retrieval entry point rather than a traversal tool like tmh_impact or tmh_chain, though the description never names a sibling to contrast against.

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 corpus list implies when to reach for it (looking up an unknown symbol, table, or business term), but there is no explicit when-to-use/when-not guidance and no routing to alternatives such as tmh_read or tmh_overview for direct lookups. Usage is inferable rather than stated.

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