Skip to main content
Glama

Jobs

job
DestructiveIdempotent

For reading use job_read, which is read-only and needs no approval: "get" here is deprecated (still works). Long-running work started by other tools (exec with background: true). action "get": status and output (pass offset = the output_length you already have, to get only new output; wait_seconds up to 30 waits for the job to finish first, instead of calling again and again). action "cancel": stop it.

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

Input Schema

NameRequiredDescriptionDefault
actionYes
job_idYes
offsetNo
projectNoNot needed: the job id is enough.
wait_secondsNoget: wait up to this long (at most 30 seconds) for the job to finish before answering.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, so the agent already knows this tool can destroy state; the description adds useful behavior about offset-based incremental output and wait_seconds blocking. However, it never states that cancel permanently terminates the job or what happens to buffered output afterward, which is the key destructive consequence. It also does not mention the approval requirement implied by the contrast with 'job_read needs no approval'.

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?

The content is dense but the ordering is poor: the first sentence is a redirect to a sibling before the tool's own purpose is established, and 'Long-running work started by other tools (exec with background: true)' appears as a dangling fragment. Every clause is informative, but the structure makes the agent parse a redirect and an aside before learning what the tool does.

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?

With five parameters, no output schema, and a destructive annotation, the description covers the read path and the offset/wait mechanics adequately. It is incomplete on the mutation side: the effect of cancel, whether the job can be resumed, and what 'get' returns when the job has failed or is still running are not addressed. It also does not disclose that this tool, unlike job_read, requires approval.

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

Parameters4/5

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

Schema coverage is only 40%, and the description compensates well for the most opaque parameter: offset is explained as 'the output_length you already have, to get only new output', which the bare integer schema does not convey. wait_seconds is given semantics beyond the schema ('instead of calling again and again'). job_id and project are left to the schema, which handles project as 'Not needed'.

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?

The description names the resource (long-running jobs started by other tools, e.g. exec with background: true) and both operations, action "get" for status/output and action "cancel" to stop. It also distinguishes itself from the sibling job_read. The opening redirect to job_read buries the actual purpose, so it is clear but not front-loaded.

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

Usage Guidelines4/5

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

It explicitly routes read-only polling to job_read, notes that "get" here is deprecated but still functional, and gives a concrete alternative to repeated polling via wait_seconds up to 30. It lacks a clear statement of when cancel should be used versus leaving a job running, but the main when-to-use guidance is present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources