Skip to main content
Glama

独行录 / opcmenu

搜索 OPC 产品

search_products
Idempotent

自然语言混合搜产品;扩词/重排耗LLM可降级。本站功能不在索引,空勿编。slug→get_product→get_creator;人/需求用search_people/search_needs。

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": {
      "q": "<q>"
    },
    "name": "search_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYes搜索查询,自然语言或关键词
limitNo返回条数,默认 12,最多 30

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"返回条数,默认 12,最多 30"New value: +"返回条数,默认 12,最多 30"
    • changedInput schema / properties / q / description
      Previous value: -"搜索查询,自然语言或关键词"New value: +"搜索查询,自然语言或关键词"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare idempotentHint=true and destructiveHint=false, so the description adds genuine new context: query expansion and reranking consume an LLM and can degrade in quality, and site features are not in the index. The empty-result warning ('空勿编') also pre-empts a likely failure mode. It stops short of describing latency, result shape, or how degradation manifests, which keeps it below a 5.

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?

Four short clauses, front-loaded with the core purpose before caveats and routing. Nothing is redundant, though the arrow notation (slug→get_product→get_creator) and telegraphic phrasing compress the guidance at some cost to first-read clarity.

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 two-parameter search with no output schema and thin annotations, the description covers mechanism, quality caveats, empty-result handling, and the follow-up path. What it omits is any sense of what a result item contains beyond an implied slug, which is the one thing an agent must infer before chaining calls.

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% – q is documented as natural-language or keyword and limit as 1–30 with a default of 12 – so the schema already carries parameter meaning. The description adds nothing about q syntax or how natural-language phrasing interacts with expansion/reranking. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('自然语言混合搜产品' – natural-language hybrid product search) and qualifies the mechanism ('混合'/'hybrid'), which tells an agent this is semantic-plus-keyword retrieval rather than a plain list. It explicitly contrasts with siblings for people and needs (search_people/search_needs) and names the downstream chain slug→get_product→get_creator, so the tool is distinguishable without opening any schema.

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

Usage Guidelines4/5

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

Gives concrete routing rules: use search_people/search_needs for people or needs, and use the returned slug to continue via get_product/get_creator. It also gives a negative instruction for the empty case ('空勿编' – don't fabricate when empty). The only gap is that it never contrasts with the listing-style siblings such as list_products, leaving that boundary implicit.

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