Skip to main content
Glama

Cancel agent job

grok_agent_cancel
DestructiveIdempotent

Cancel a single delegated Grok CLI job by job ID without stopping the MCP server, leaving other tasks unaffected.

Instructions

Boundedly cancel one typed job without stopping the MCP server.

Input Schema

NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description usefully narrows the blast radius ('one ... job', not the server), but says nothing about what happens to in-flight work or partial results, so it adds modest context on top of the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no padding, which is structurally good, but 'Boundedly' and 'typed' are undefined terms that cost the reader more than they convey.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, no-output-schema mutation whose annotations carry the safety semantics, the essentials are nearly there: it says what is cancelled and that the server survives. It still omits how a job_id is obtained and what a successful cancel returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single required job_id, and the description supplies nothing about it — no format, no source (presumably from grok_agent_start or grok_agent_poll), no validity/lifetime conditions. With one undocumented parameter the description should compensate and does not.

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 and resource ('cancel one ... job') and scopes it against a sibling-adjacent action by saying it does not stop the MCP server. The qualifiers 'boundedly' and 'typed' are undefined jargon, so the action is clear but the modifiers add noise rather than precision.

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

Usage Guidelines2/5

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

The only usage signal is the implicit contrast 'without stopping the MCP server', which hints at a when-not condition but names no alternative tool (e.g., grok_agent_session_end or grok_delegate_* teardown paths) and gives no prerequisites such as needing a live job_id.

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