搜索 OPC 产品
search_products自然语言混合搜产品,扩词/重排有LLM成本且可降级;站点自身功能不在产品索引,空勿编。【组合链】slug→get_product→get_creator;人/需求另用search_people/search_needs。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | 搜索查询,自然语言或关键词 | |
| limit | No | 返回条数,默认 12,最多 30 |
search_products自然语言混合搜产品,扩词/重排有LLM成本且可降级;站点自身功能不在产品索引,空勿编。【组合链】slug→get_product→get_creator;人/需求另用search_people/search_needs。
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | 搜索查询,自然语言或关键词 | |
| limit | No | 返回条数,默认 12,最多 30 |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare idempotent=true, destructive=false, openWorld=true. The description usefully adds that query expansion/reranking carries LLM cost and can be degraded, and that the index excludes site features — context the annotations do not convey. But the unusual readOnlyHint=false for a search tool is left unexplained beyond a vague cost note, and no return-shape or pagination behavior is described.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Very compact and front-loaded: core purpose first, then cost/degradation caveat, then the chaining and alternative-routing note in a bracketed block. Every clause carries information, though the dense semicolon/abbreviation style slightly hurts readability.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a two-parameter search tool with no output schema and no nested objects, the description covers purpose, degradation behavior, index scope, chaining, and alternative tools. The only real omission is differentiation from the other product-listing siblings, which leaves a small gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%: q and limit are both documented in the schema, including the default of 12 and max of 30. The description adds no syntax, format, or query-shaping guidance beyond what the schema already provides, so the baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
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 routes people/needs queries to siblings search_people/search_needs, so the agent can separate it from those. However it never distinguishes itself from the close siblings list_products, list_products_discover, or search_all, which the agent must infer on its own.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives an explicit alternative for other entity types ("人/需求另用search_people/search_needs") and a chaining recipe (slug→get_product→get_creator). It also warns that site-native features are absent from the product index and that empty results must not be fabricated. It stops short of stating when NOT to use this versus list_products/list_products_discover.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.