Skip to main content
Glama

Cancel a batch job

cancel_batch
Destructive

Stop a running batch verification job (POST /v1/batch-verify/{id}/cancel). CHANGES THE ACCOUNT: unprocessed emails are not verified and their credits are 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": {
      "id": "<id>"
    },
    "name": "cancel_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesJob id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description still earns credit for going beyond that by stating the concrete consequence: unprocessed emails go unverified and their credits are refunded. It does not cover the non-idempotent case (cancelling an already-cancelled or completed job) or what response comes back.

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 tight sentences, with the action and the account-changing consequence front-loaded and the endpoint tucked into a parenthetical. Nothing is padded or repeated.

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 destructive tool with full annotations and no output schema, the description supplies the essential missing piece: the side effect on unverified emails and credits. Minor gaps remain around behavior on already-finished jobs and error conditions.

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 100%, so the single 'id' parameter is already documented; the description adds nothing about the id beyond the endpoint path template. Baseline 3 applies because the schema carries the parameter semantics.

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?

Uses a specific verb plus resource ('Stop a running batch verification job') and pins it to an endpoint, so there is no ambiguity about what is being cancelled. It implicitly separates itself from start_batch_verification via the 'running' qualifier, but never names siblings or states the boundary explicitly.

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?

The phrase 'running batch verification job' implies the precondition (a job must be in progress) but gives no explicit when-to-use guidance and no alternative such as checking get_batch_status first. An agent must infer that finished or unknown jobs are not valid targets.

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