Skip to main content
Glama

Cancel a request or job

cancel_execution
DestructiveIdempotent

Before payment: withdraws the request (no charge). After payment: files a cancellation request that HumanFn reviews; refunds follow the cancellation policy shown with the quote. Returns the resulting phase.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
request_idYesThe request ID returned by request_execution (req_…).
access_tokenYesThe access token returned with the request (rqt_…); it authorizes access to this request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / access_token / description
      Added value: +"The access token returned with the request (rqt_…); it authorizes access to this request."
    • addedInput schema / properties / request_id / description
      Added value: +"The request ID returned by request_execution (req_…)."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, but the description adds real consequence detail: no charge before payment, human review after payment, refunds governed by the quote's policy. It omits any note on repeated-call behavior, which annotations cover.

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?

Three tight clauses, front-loaded with the pre-payment case, and the return value is noted in a final short sentence. No filler.

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 two-parameter mutation with no output schema, the description covers the main behavioral questions and states what is returned (the resulting phase). Minor gaps remain around what the phase values are, but the core is 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?

Schema description coverage is 100%, so request_id and access_token are fully documented in the schema. The description adds no format or semantic detail beyond that, so baseline 3 applies.

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 and resource ("withdraws the request" / "files a cancellation request") and describes the two phase-dependent modes of operation. An agent can distinguish this from siblings like get_request or request_execution 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 Guidelines4/5

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

Gives clear conditional usage: use before payment for a clean withdrawal, after payment to file a reviewed cancellation. It does not explicitly name an alternative tool or state when not to use it, so it falls short of a 5.

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