Skip to main content
Glama

独行录 / opcmenu

上架/下架我的产品

set_product_status
Idempotent

登录;本人产品仅PUBLISHED⇄ARCHIVED互切,其余系统管理。get_my_products取id/status。

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": {
      "productId": "<productId>",
      "status": "<status>"
    },
    "name": "set_product_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYes目标状态
productIdYes产品 id

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 already declare idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: authentication is required, only self-owned products are eligible, and only the PUBLISHED⇄ARCHIVED transition is permitted because other states are system-managed. It does not describe the response, but the behavioral constraints are well disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is very short and front-loads the login requirement, with no filler sentences. However, the telegraphic fragment style (登录;… 其余系统管理。) makes the constraint about other statuses slightly ambiguous and forces the reader to parse semicolon-separated clauses rather than a clear statement.

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, single-enum mutation tool with annotations covering idempotency and destructiveness, the definition supplies the missing pieces: auth requirement, ownership restriction, allowed transitions, and parameter provenance. There is no output schema, and the description does not indicate what is returned, but that is a minor gap for a simple status toggle.

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 both parameters are documented, so the baseline is 3. The description goes one step further by telling the agent where to source productId and current status (get_my_products取id/status), which is meaning the schema itself does not convey. It does not restate that status must be one of the two enum values, which the schema already handles.

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 operation's scope precisely: it toggles the caller's own product between PUBLISHED and ARCHIVED only, while other statuses are system-managed. Combined with the title 上架/下架我的产品, an agent can identify the verb and resource. It stops short of naming a sibling alternative (e.g. update_my_product), so it is clear but not fully differentiated.

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?

It gives a concrete prerequisite (登录 / must be logged in), a hard scope limit (本人产品 — only the caller's own products), and routes the agent to get_my_products to obtain the id/status before calling. It does not state when NOT to use this tool or name a competing tool for other status changes, which keeps it below 5.

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