Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Cancel Job

cancel_job
Idempotent

Cancel a queued or running background job by job ID to stop unnecessary computation and free resources in PyMC Marketing MCP workflows.

Instructions

Cancel a currently queued or running background job.

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": {
      "job_id": "<job_id>"
    },
    "name": "cancel_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so safety and repeat-call behavior are covered structurally. The description adds the applicable job-state range, but says nothing about whether cancellation is graceful, whether partial artifacts survive, how long cancellation takes, or whether an error is returned for already-finished jobs—all relevant for a mutation tool.

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

Conciseness4/5

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

A single well-formed sentence with the key scope qualifier front-loaded and no filler. It is efficient, though the terseness contributes to the gaps in parameter and behavioral coverage.

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?

The tool is simple (one required parameter, no output schema), so a short description is defensible. Still, for a state-changing cancellation with no output schema, the agent receives no information on return value, post-cancel job state, or how to source the job_id.

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%, so the description must carry the burden of explaining job_id, and it says nothing at all about the parameter. It never indicates the identifier format or that the value comes from a submit_* tool's response, leaving the agent to guess where to obtain a valid job_id.

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?

Specific verb ("Cancel") plus resource ("background job") with a stated scope ("currently queued or running"). An agent can distinguish it from the submit_* tools and get_job_status, though it never names resume_job as the counterpart alternative.

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 "currently queued or running" implies a state precondition (completed jobs presumably cannot be cancelled), which is the only usage constraint given. There is no explicit statement of when to cancel versus let a job finish, no mention of resume_job, and no note on prerequisites such as job ownership or permissions.

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