Skip to main content
Glama
solvehub-mcp

solvehub-mcp

cancel_task

Cancel a queued or running task and refund its reserved amount.

Instructions

Cancel a queued or running task. The reserved amount is refunded.

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": {
      "task_id": "<task_id>"
    },
    "name": "cancel_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYesTask id to cancel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most consequential side effect: the reserved amount is refunded. It omits other behavior an agent needs — whether cancel is idempotent, what happens on an already-finished or unknown task_id, whether cancellation is immediate or graceful, and what the response contains.

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 short sentences, front-loaded with the action and followed by the side effect. Every clause carries information and nothing is padded.

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 single-parameter tool with no annotations and no output schema, the description covers what the tool does and its main consequence. The remaining gap is edge-case behavior (already-completed task, invalid id, return value), which is a meaningful but modest omission at this complexity.

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?

One parameter at 100% schema description coverage, so the baseline is 4. The description adds only the implicit constraint that the task must be queued or running, and does not clarify the task_id format or the valid source of the id.

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?

"Cancel a queued or running task" states a specific verb (cancel) and resource (task) plus the state scope, which separates it from create_task, get_task, wait_for_task and list_tasks. It stops short of naming an alternative outright, so it is clear but not maximally differentiating.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the state qualifier "queued or running" — the agent can infer that finished tasks are not valid targets. There is no explicit when-to-use/when-not-to-use guidance and no mention of an alternative path (e.g., polling via wait_for_task) for a task that has already completed.

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