Skip to main content
Glama

独行录 / opcmenu

上架/下架我的产品

set_product_status
Idempotent

【需要登录】把我的产品在「已发布 ⇄ 已下架」之间切换(仅这两个状态互切,其余状态由系统管理)。先用 get_my_products 拿 productId 和当前 status。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes目标状态
productIdYes产品 id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already disclose idempotent=true and destructive=false, so the mutation is framed as safe/repeatable. The description adds real context beyond that: the login requirement and the two-state toggle-only constraint. It doesn't cover failure behavior, but the annotation burden is already carried.

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?

Two sentences, front-loaded with the login gate and the state constraint, then the prerequisite in a single clause. No filler.

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 2-param toggle with no output schema, the description covers login, allowed states, and the prerequisite lookup — everything needed to invoke correctly. Only return/failure semantics are unaddressed, which is acceptable here.

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 coverage is 100% and the enum already defines PUBLISHED/ARCHIVED, so the schema does the heavy lifting for both parameters. The description reinforces the two-state semantics but adds no syntax or format detail beyond what the schema provides — baseline 3.

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 (switch my products' status) and constrains scope precisely to the 已发布 ⇄ 已下架 pair, noting other states are system-managed. This distinguishes it from siblings like update_my_product that could otherwise seem interchangeable.

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?

Explicitly names the prerequisite flow ('先用 get_my_products 拿 productId 和当前 status') and implies a when-not boundary by stating the other states are system-managed and thus not reachable here. No named alternative for the remaining state transitions, so not a full 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