Skip to main content
Glama

stop_batch_job

Stop a running server-side batch job by providing its ID and reason; operations already applied remain unchanged.

Instructions

Stop a running server-side batch job. Operations already applied are not 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": {
      "job_id": "<job_id>",
      "reason": "<reason>"
    },
    "name": "stop_batch_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe batch job ID to stop
reasonYesWhy the job is being stopped
namespaceNoTemporal namespace for this operation; omit to use the server default

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one important trait that the structured fields cannot convey – that already-applied operations persist after the stop – but it is silent on whether the stop is graceful or forced, whether queued activities are abandoned, what permission the caller needs, and whether the call returns immediately.

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 with zero waste, the action stated first and the one non-obvious consequence front-loaded second. Nothing is repeated from the schema or title.

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 mutation tool with no annotations and no output schema, the schema is rich but the description leaves important gaps: no permission or auth requirements, no note on whether the stop is immediate or drains in-flight work, and no indication of failure modes for an already-completed job. The partial-effects disclosure is valuable but not sufficient on its own.

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 description coverage is 100%, so job_id, reason, and namespace are already fully documented; the baseline of 3 applies. The description adds only the indirect hint that the job must be in a running state for job_id to be valid, and says nothing about how the reason is recorded or used.

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 ('Stop a running server-side batch job'), which is clearly distinguishable from read-only siblings like describe_batch_job and list_batch_jobs. It does not differentiate itself from write-side siblings such as batch_terminate or batch_cancel, so the agent cannot tell from the text alone how stop differs from terminate or cancel.

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 word 'running' implies a precondition, but the description gives no explicit when-to-use or when-not-to-use guidance and never names an alternative tool such as batch_terminate for a harder stop. An agent must infer the choice of tool from sibling names, which the definition does not help with.

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