Skip to main content
Glama

get_batch_results

Read-onlyIdempotent

Finished items, one per entry: index, custom_id, status and the result (or error). Works while the batch runs. Free.

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": {
      "batch_id": "<batch_id>"
    },
    "name": "get_batch_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoAt most this many lines (1-50).
offsetNoSkip this many lines.
statusNoOnly 'succeeded' or only 'failed' items; empty for all.
batch_idYesThe batch id (bt_...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description adds genuinely new behavioral facts: results are available while the batch is still running, the call is free, and each entry carries either a result or an error. It stops short of describing ordering, pagination behavior, or whether partial pages can occur.

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?

Two short sentences, front-loaded with the most important information (what comes back) and followed by the operational caveat. 'Free' is terse but earns its place as a cost signal; nothing is padded.

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 no output schema, the description carries the burden of explaining returns, and it does name the per-entry fields. But it omits pagination/ordering semantics, what an empty page means, and how the batch_id relates to existing batches, leaving gaps for a results-retrieval tool with four parameters.

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%, with limit, offset, status and batch_id all documented in-schema, so the baseline is 3. The description adds nothing about parameter effects beyond 'one per entry', which loosely aligns with limit/offset but gives no additional semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description describes the shape of the returned entries (index, custom_id, status, result or error) rather than stating the action, so the verb 'retrieves results for a batch' has to be inferred from the name. It gives no signal distinguishing it from siblings like get_batch (status) or get_job_result, so an agent must guess which one returns item-level output.

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?

'Works while the batch runs' implies polling is safe mid-execution and 'Free' signals no cost/credit impact, which are useful situational cues. However, there is no explicit when-to-use versus get_batch or get_job_result, and no statement of what to do if results are empty or the batch failed.

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.