Skip to main content
Glama

Donewire

Cancel a task before payment

cancel_job
Destructive

Cancel a task before payment. Allowed in draft, open, assigned, and awaiting_payment if no transfer was detected. Releases the budget reservation. After payment, use open_dispute. Requires API key.

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": {
      "job_id": "<job_id>"
    },
    "name": "cancel_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesTask id
reasonNo

Output Schema

NameRequiredDescriptionDefault
idYes
titleYes
statusYes
sandboxYestrue for sandbox tasks completed by the Sandbox bot (no real-world action)
serviceYes
locationYes
deadline_atYes
descriptionYes
next_actionsNo
worker_pay_centsYesInteger amount in US cents (100 = 1.00 USD)
status_descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructive=true and readOnly=false, but the description adds substantive context beyond them: state gating, the transfer-detection prerequisite, that the budget reservation is released, and that an API key is required. It does not address what happens on a second call despite idempotentHint=false, which is the one notable gap.

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?

Four short sentences, each carrying a distinct fact (scope, eligibility, side effect, escalation path, auth). The precondition is front-loaded and nothing is repeated from the annotations.

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?

Return values need not be explained since an output schema exists, and the definition covers eligibility, side effects, auth, and escalation. The only shortfall is silence on the reason parameter and on repeat-invocation behavior for a non-idempotent destructive action.

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 only 50%: job_id is documented in the schema, but the optional reason parameter has no schema description and the description never mentions it, leaving its purpose and effect on the cancellation unstated. The description also adds no format or constraint detail beyond the schema.

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?

The opening sentence states a specific verb (cancel) and resource (task) plus a hard scope boundary (before payment). It explicitly names the sibling to use afterwards (open_dispute), so an agent can distinguish it from the dispute path without opening either 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?

The definition enumerates the exact allowed states (draft, open, assigned, awaiting_payment) and an additional gate (no transfer detected), then names the alternative tool for the post-payment case. This is explicit when/when-not guidance with a named alternative.

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