Skip to main content
Glama

describe_batch_job

Retrieve detailed status for a Temporal batch job, including its state, operation type, start and close times, total/complete/failure counts, reason, identity, and query.

Instructions

Describe a server-side batch job started with start_batch_job (or from the UI/CLI): state, operation type, start/close time, total/complete/failure counts, reason, identity and query.

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": "describe_batch_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe batch job ID
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

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the observable output surface (state, counts, reason, identity, query), which strongly implies a read-only lookup. It omits any statement about error behavior for unknown or expired job IDs, retention windows, or required permissions — meaningful gaps for a job-inspection tool with zero annotation coverage.

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 compact sentence that front-loads the verb and resource, then lists the returned fields in a scannable enumeration. Dense without being padded, though the trailing field list is a flat run-on that could have been set apart from the core identification statement.

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

Completeness4/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 ID plus an optional namespace) and has no output schema, so the description's enumeration of returned fields is exactly the right compensation. What remains missing — error/not-found behavior and permission requirements — is modest relative to the tool's simplicity.

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 both job_id and the namespace enum are fully documented in the schema already. The description adds only the implicit point that job_id must reference a batch job, and says nothing about what the 'default' namespace enum constrains or how omitting it behaves. Baseline 3 applies.

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 pairs the specific verb 'Describe' with the specific resource 'server-side batch job' and then enumerates the fields returned (state, operation type, timestamps, counts, reason, identity, query). It also anchors the tool to its creation counterpart, start_batch_job, and covers jobs launched from UI/CLI. It stops short of distinguishing itself from siblings like list_batch_jobs, so it is clear but not fully differentiated.

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 parenthetical '(or from the UI/CLI)' usefully signals that a job need not have been created via start_batch_job for this tool to work, which is real usage context. However, there is no explicit when-to-use rule or exclusion — nothing tells the agent to prefer list_batch_jobs to find a job and this tool only after holding a job_id, nor what to expect if the ID is unknown.

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