Skip to main content
Glama

Check a batch

get_batch
Read-only

A batch's status, its cost, and each task's status, job id, cost and the start of its answer (get_job on a job id gives the whole result). wait_seconds waits for the batch to end first. Without id: your recent batches.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe batch (bat_…). Omitted: list your recent batches.
wait_secondsNoWait up to this long for the batch to end (keep it under 60 s if your client gives up on a call after a minute).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: wait_seconds causes the call to block until the batch ends, and there is practical advice to keep the wait under 60 s for clients with per-call timeouts — exactly the kind of operational caveat annotations cannot express. It also discloses that answers are truncated in this view.

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?

Front-loaded with the payoff (what you get back), then the escalation path, then the wait semantics, then the default branch. Sentences are dense and every one carries information; the telegraphic phrasing ('its cost, and each task's status, job id, cost...') is compact rather than wasteful, though slightly clipped for readability.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of describing the return shape, and it does so field by field, including the truncation caveat and where to get the untruncated answer. Combined with the wait-behavior note, an agent has everything needed to call this correctly in either mode.

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 the schema already documents both parameters, and the description largely restates them ('Without id: your recent batches', 'wait_seconds waits for the batch to end first'). It adds no syntax, format, or edge-case detail (e.g., what happens if the wait expires) beyond the structured fields, so the baseline 3 holds.

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?

States a specific resource (a batch) and enumerates exactly what is returned: batch status, cost, and per-task status, job id, cost, and truncated answer. It also distinguishes the two modes (single batch vs. list of recent batches) and points at get_job for the full result, so an agent can tell it apart from siblings without opening a schema.

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?

Clear routing guidance: 'get_job on a job id gives the whole result' tells the agent when to escalate from summary to detail, and 'Without id: your recent batches' defines the no-argument branch. It does not state exclusions (e.g., use cancel_batch or run_batch for anything but inspection), but the read-only inspection role is unambiguous.

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.