Skip to main content
Glama

End the batch

end_batch

Close a batch and get its summary: answered, right, wrong, looked up, Renown gained and levels moved.

Input Schema

NameRequiredDescriptionDefault
batchIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false but destructiveHint=false, and 'close a batch' is consistent with a non-destructive state change, so no contradiction. The description contributes the return payload, which annotations cannot express, but says nothing about whether closing is reversible, what happens if the batch is already closed, or whether it errors.

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?

One tight sentence with the action front-loaded and the payoff enumerated after the colon. Slightly wasteful enumeration, but no filler and nothing buried.

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 usefully names the summary fields, so the return side is well covered. The input side and the lifecycle context (what a 'batch' is, where batchId comes from) are absent, leaving a real gap for a state-mutating tool.

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

Parameters2/5

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

One required parameter at 0% schema description coverage, and the description never mentions batchId — not its origin (presumably a prior batch-start tool, which is not among these siblings) nor its format. The single most important input is left undocumented in both places.

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?

Specific verb+resource ('Close a batch') plus a concrete statement of what comes back (answered, right, wrong, looked up, Renown, levels). An agent knows exactly what this does, though it never names a sibling tool or scopes itself against them.

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?

No guidance on when to call this versus continuing with answer_question, answer_review, or deal_review, and no statement of preconditions (e.g. that the batch must still be open, or that this is the terminal step of a batch workflow). The agent must infer usage entirely from the name.

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