Skip to main content
Glama

ai-cancel_work_item

ai-cancel_work_item

Cancel a pending work item before it starts processing. Use this tool to change status from pending to cancelled for work items not yet in progress.

Instructions

Cancels a pending work item (pending → cancelled). Cannot cancel items that are already processing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
work_item_idYesWork item ID (@rid format)
Behavior3/5

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

No annotations are provided, so the description bears full responsibility. It states the state change and a limitation, but does not disclose side effects, irreversibility, or required permissions. It offers basic transparency but lacks depth.

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?

The description is extremely concise with two sentences, front-loading the main action and adding a key constraint in the second. No unnecessary words or redundancy.

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 cancel operation with one parameter and no output schema, the description covers the essential state transition and a critical precondition. It could mention whether the operation is synchronous or if there are any side effects, but it is nearly complete.

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?

The input schema provides 100% coverage with a single parameter described as 'Work item ID (@rid format)'. The description adds no additional meaning beyond what the schema already provides, so baseline score of 3 is appropriate.

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 clearly states the verb 'Cancels' and resource 'pending work item', along with the state transition 'pending → cancelled'. It distinguishes from items that are already processing, but does not explicitly differentiate from sibling tools like ai-fail_work_item.

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?

The description indicates when to use (cancel a pending work item) and when not to use (cannot cancel items already processing). It lacks explicit mention of alternatives for processing items, but the guidance is clear and specific.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mstang/casemgr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server