Skip to main content
Glama
runpod

RunPod MCP Server

Official
by runpod

cancel-job

Cancel a queued or in-progress serverless job by specifying its endpoint and job ID.

Instructions

Cancel a Serverless job that is queued or in progress.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endpointIdYesID of the Serverless endpoint the job belongs to
jobIdYesID of the job to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It states the action but does not describe consequences (e.g., irreversibility), required permissions, or what happens to the job after cancellation.

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?

The description is a single sentence (10 words) that front-loads the purpose with no extraneous information, achieving ideal conciseness.

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 simple 2-parameter tool with no output schema, the description covers the precondition but omits expected return value or confirmation behavior, leaving it partially incomplete.

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%, providing baseline clarity. The description does not add additional meaning beyond the schema's property descriptions, so no extra value is provided.

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 description clearly states the action (cancel) and resource (Serverless job) and adds a condition (queued or in progress), making it distinct from sibling tools like retry-job or delete-endpoint.

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 description implies usage only for jobs that are queued or in progress, but does not explicitly state when not to use it or mention alternatives such as retry-job or purge-endpoint-queue.

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