Skip to main content
Glama

submit_batch

Destructive

Queue many items for one tool. They run in parallel at this key's share, each priced exactly like a single call (failed and refused items are free). Returns the batch at once; follow it with get_batch, and read finished items with get_batch_results while it runs.

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": {
      "tool": "<tool>"
    },
    "name": "submit_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYestranscribe, research or clean_data.
itemsNoUp to 10,000 items, each the same input that tool takes (e.g. {"url": ...} for transcribe, {"ask": ...} for research), optionally {"custom_id": ..., "input": {...}}.
items_urlNoInstead of items: a link to a JSONL file, one item per line, up to 1,000,000.
max_cost_usdNoNever spend more than this on the whole batch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already flag this as a non-readonly, destructive, non-idempotent, open-world operation, so safety is covered. The description adds genuine behavior beyond that: parallel execution at the key's share (a concurrency/rate-limit signal), per-item pricing identical to a single call, and failed or refused items being free. It does not explain what happens when max_cost_usd is exceeded or whether resubmission is safe, but the added context is substantial.

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?

Three short sentences, front-loaded with the core action and packed with useful facts (pricing, parallelism, follow-up tools) with no filler. The awkward mid-sentence line break and slight raggedness in the formatting keep it from a perfect score.

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?

For a destructive, high-volume mutation tool with no output schema, the description covers what an agent most needs: it returns the batch object at once and must be followed by get_batch, with partial results readable during execution, plus cost semantics. It leaves open the behavior when the cost cap is hit and how cancellation interacts, but it is otherwise complete for correct invocation.

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 tool, items, items_url, and max_cost_usd with limits and examples. The description adds only the general framing that each item is the same input the target tool takes, which duplicates the schema rather than extending it.

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?

The definition uses a concrete verb and resource ('Queue many items for one tool') and immediately anchors the scope: many items, one tool, parallel execution. It also distinguishes itself from siblings by naming get_batch for tracking and get_batch_results for finished items, so an agent can place it in the pipeline without inspecting other schemas.

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 gives clear usage context ('many items' rather than a single call) and routes the agent to the follow-up tools: get_batch to track and get_batch_results to read finished items while it runs. There is no explicit when-not-to-use statement or guidance on batch size thresholds versus calling the tool directly, which keeps it below a 5.

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.