Skip to main content
Glama

独行录 / opcmenu

查产品详情

get_product
Read-only

id/slug二选,slug优先;产品全文含owner/描述/链接/媒体/分类/标签/发布时间。search/list→详情;亦可resources/read opcmenu://product/{slug}。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo产品 id(cuid)
slugNo产品 slug(URL 上 /p/<slug>)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"产品 id(cuid)"New value: +"产品 id(cuid)"
    • changedInput schema / properties / slug / description
      Previous value: -"产品 slug(URL 上 /p/<slug>)"New value: +"产品 slug(URL 上 /p/<slug>)"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered, and the description adds real behavior: the id-vs-slug resolution rule with slug taking priority, plus the set of fields returned in the full product body. Since there is no output schema, disclosing the returned fields is genuinely useful. It does not say what happens if both identifiers are omitted or if the product is not found.

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?

Very compact, front-loaded with the identifier rule, then the returned fields, then routing. Every fragment carries information, though the arrow shorthand ('search/list→详情') is telegraphic and slightly harder to parse than plain prose.

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 simple read-only lookup with no output schema, the description covers identifier choice, returned content, and the alternative resource route, which is most of what an agent needs. The notable gap is that both parameters are optional in the schema while the description says 'choose one', leaving undefined what happens when neither is given.

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%, so the schema already documents both id (cuid) and slug (URL /p/<slug>), making 3 the baseline. The description adds one genuinely new rule beyond the schema: slug wins when both are supplied. That is useful but is the only semantic addition.

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 states the resource (product) and that it returns the full product body, enumerating the fields included (owner/description/links/media/category/tags/publish time). It also implicitly separates itself from the search/list siblings by calling this the 'details' step. The verb itself is only implied through the title, not spelled out in the description.

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?

'search/list→详情' tells the agent to come here after a search or list call to get the full record, which is explicit sequencing guidance. It also names an alternative retrieval path (resources/read opcmenu://product/{slug}), so the agent knows two routes exist. There is no explicit statement of when NOT to use it, e.g. for ratings, which live in separate siblings.

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