Skip to main content
Glama

PINGWEI LI · kbs0830.com

語意搜尋

semantic_search
Read-only

用意思搜尋作品跟文章(本站自架的 embedding 模型)。問句、同義詞也找得到,例如「怎麼讓網站不要掛掉」。回傳最相關的頁面標題與路徑;本機 AI 沒開時退回關鍵字。

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

Input Schema

NameRequiredDescriptionDefault
queryYes一句話或幾個詞,中英文都可以

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare read-only and non-open-world; the description adds real value beyond them: it discloses the returned fields (titles and paths) and a graceful-degradation behavior when the local AI model is unavailable. It omits ranking/limit details, but the reliability caveat is exactly the kind of context annotations cannot convey.

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?

One compact, front-loaded sequence of clauses: what it does, why it works, an example, what comes back, and the fallback. Every sentence carries information and nothing is repeated from the schema or annotations.

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

Completeness4/5

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

For a one-parameter read-only search with no output schema, the description covers purpose, example input, return shape, and failure mode — enough to call it correctly. Only the result ordering and any result-count limits are left unstated.

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% and the single query parameter is already documented as a phrase or short set of words in Chinese or English. The description adds meaning on top by showing that a full natural-language question is a valid input, which clarifies the semantic-vs-keyword distinction for the caller.

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?

The description uses a specific verb and resource — searching works/projects and articles by meaning rather than keyword — and explains the mechanism (a self-hosted embedding model). It implicitly distinguishes itself from the keyword-based sibling 'search' via the fallback sentence, though it never names that sibling explicitly.

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 gives a clear usage picture: natural-language questions and synonyms work, with a concrete example query. It does not say when to prefer this over the sibling 'search' tool, or when keyword search would be the better choice, so routing must be inferred.

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.