Skip to main content
Glama

独行录 / opcmenu

取消我的活动

cancel_activity
Idempotent

登录;取消本人活动,已取消/结束不可再取消。

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": {
      "activityId": "<activityId>"
    },
    "name": "cancel_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
activityIdYes活动 id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Only idempotentHint is annotated, so the description carries most of the behavioral burden; it does add genuine context by disclosing the login requirement and the state gate on already-cancelled/ended activities. It says nothing about side effects on guests, signups or materials, nor whether the cancellation can be undone, which matters for a tool named cancel_*.

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?

Two terse clauses with the structural prerequisite first and the state exclusion second; nothing is redundant. It is arguably over-compressed, since consequence and return behavior get no words at all, but every sentence earns its place.

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

Completeness3/5

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

For a one-parameter mutation with no output schema and thin annotations, the definition covers login, ownership and terminal-state blocking, which is the core of calling it correctly. It leaves the agent uninformed about what happens after cancellation and whether the action is reversible, which is a real gap for a destructive operation.

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% with a single documented activityId, so the baseline is 3. The description earns one point above baseline by constraining which id is valid — it must identify an activity the caller owns and that is not already cancelled or ended — a restriction the schema cannot express.

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 gives a specific verb+object pair (取消 + 本人活动) rather than a tautology of the name, and the ownership qualifier '本人' helps separate it from the signup/cancel_my_activity_signup style siblings. It stops short of naming an alternative explicitly, but an agent can still tell this cancels the caller's own activity, not a related record.

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?

'登录' establishes an auth precondition and '已取消/结束不可再取消' is an explicit when-not condition covering two terminal states. What is missing is routing guidance to alternative tools (e.g. cancelling a signup instead of the activity, or an admin/org path), so usage is clear but not fully differentiated.

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