Skip to main content
Glama

Ask Batch

ask_batch

Runs multiple prompts in parallel against a chosen preset, bounded by the preset's configured parallel slots, to process batches of requests.

Instructions

Run N prompts in parallel against a preset (bounded by its configured parallel slots).

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": {
      "preset": "<preset>",
      "prompts": "<prompts>"
    },
    "name": "ask_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
presetYes
promptsYes
timeout_sNo
json_schemaNo
system_promptNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

B3/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 one real behavioral trait: concurrency is capped by the preset's configured parallel slots, so N may not mean N-at-once. It says nothing about what happens when some prompts fail, whether results are returned in input order, or how the timeout interacts with the batch, all of which matter for a fan-out call.

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 front-loaded sentence with zero filler; the parallel-slot caveat is attached directly to the action it qualifies. It is efficient, though the extreme terseness is part of why the parameter gaps above exist.

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?

The output schema being present relieves the description of explaining return values, which helps, but for a five-parameter tool with no annotations and 0% schema coverage the description is still thin on the unknown parameters and on batch failure semantics. An agent could call it, but not confidently configure structured output or reason about partial results.

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?

Schema description coverage is 0% across five parameters, so the description must compensate and largely does not: it clarifies only 'prompts' and implicitly 'preset.' Three parameters (timeout_s, json_schema, system_prompt) get no explanation at all, leaving the agent to guess that json_schema drives structured output and that the timeout is per-call versus whole-batch.

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 uses a specific verb ("Run") plus a scoped resource ("N prompts in parallel against a preset"), so an agent immediately knows this is a batched fan-out call rather than a single-prompt call. The plural/parallel framing implicitly distinguishes it from a single-prompt sibling, though it never names or contrasts with one.

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?

There is no explicit when-to-use or when-not-to-use guidance, no mention of prerequisites (does the preset need to exist first?), and no named alternative such as a single-prompt tool. The only usage cue is implied by the wording "N prompts," which an agent must infer means 'use this for multiple prompts at once.'

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

Deploy Server

Other Tools