Skip to main content
Glama

独行录 / opcmenu

取消我的需求

cancel_need
Idempotent

登录;取消本人需求为终态,禁编辑/重开;临时用unpublish_need。403 not_your_need,完成409 need_already_completed,已取消409 need_closed。

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": {
      "needId": "<needId>"
    },
    "name": "cancel_need"
  }
}

Input Schema

NameRequiredDescriptionDefault
needIdYes需求 id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only supply idempotentHint, but the description adds the essential traits: login required, cancellation is a terminal state, the need cannot be edited or reopened afterwards, and it enumerates the exact status codes returned for the three failure modes. That is substantially more than the single annotation provides.

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?

Dense but front-loaded: login requirement, then terminality, then the alternative, then error codes. Every fragment carries information, though the semicolon-telegraphic style and bare error-code tokens give it a slightly cryptic, notes-like feel rather than flowing guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, no-output-schema mutation tool, the description covers auth, irreversibility, the temporary alternative, and all expected failure responses. Nothing an agent needs to call it correctly or interpret a failure is missing.

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% for the single needId parameter, so baseline would be 3. The description adds real meaning by constraining needId to a need the caller owns (本人需求, backed by 403 not_your_need), which the schema's terse '需求 id' does not convey.

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 (取消需求) plus scope (本人, i.e. the caller's own need), and names the sibling it is not (unpublish_need). An agent can distinguish it from delete_need / unpublish_need 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 Guidelines5/5

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

Explicitly routes temporary takedowns to unpublish_need, and states the when-not conditions via error outcomes (403 not_your_need, 409 need_already_completed, 409 need_closed). Both the alternative and the failure preconditions are spelled out rather than inferred.

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