Skip to main content
Glama

Cancel Batch

trillet_cancel_batch
DestructiveIdempotent

Cancel an active batch calling operation to stop ongoing outbound calls. Provide the batch ID to halt the batch permanently, as this action cannot be undone.

Instructions

Cancel an active batch calling operation. This cannot be undone.

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": {
      "batchId": "<batchId>"
    },
    "name": "trillet_cancel_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
batchIdYesBatch ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is known from structured data. The description adds the plain-language warning 'This cannot be undone,' which usefully reinforces irreversibility, but says nothing about what happens to in-flight calls, whether partial results are retained, or any auth/rate constraints.

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, zero waste, with the action stated first and the risk warning immediately after. Nothing is padded or redundant.

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 low-complexity single-parameter mutation with full annotation coverage and no output schema, the definition covers what the tool does and its irreversibility. It could optionally state the outcome when the target batch is not active, but nothing essential for calling it correctly is missing.

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?

Single required parameter with 100% schema description coverage, so the schema already carries the meaning burden. The description adds only the implicit constraint that the batchId should reference an active batch; no format or sourcing guidance is given.

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?

States a specific verb (cancel) and a clearly scoped resource (an active batch calling operation), which separates it from trillet_start_batch and the progress/status readers. It stops short of any explicit contrast with those siblings, 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 only implied: 'active batch' hints that the batch must be running, but the description never says when to cancel versus letting a batch finish, nor what to do if the batch has already completed or failed. No alternatives are named.

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