Skip to main content
Glama

create_batch

Submit multiple queries for asynchronous batch processing with approximately 50% cost discount. Queries run within 24 hours; results are retrieved after completion.

Instructions

Submit a batch of queries for async processing (~50% cost discount).

Batches run asynchronously (up to 24h). No tool use — inline all relevant context in each prompt. Use get_batch/list_batches to check status and get_batch_results when the job completes.

The system prompt follows the same configuration as consult_gemini (config.toml, --system-prompt CLI flags).

Args: queries: List of {custom_id: str, prompt: str} dicts. model: Model alias or ID (default: "flash"). "pro" enables deep thinking. temperature: Sampling temperature (default: 0.2).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queriesYes
modelNoflash
temperatureNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Beyond the openWorldHint annotation, the description discloses key behaviors: asynchronous processing with 24h limit, cost discount, and the system prompt configuration matched from consult_gemini. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded: the first sentence captures the core purpose. The bullet-style Args section is clean and avoids unnecessary prose.

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?

Given the presence of an output schema and moderate complexity (3 params, 1 required), the description covers all critical aspects: usage, constraints, related tools, and configuration. No gaps remain for this async batch submission tool.

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

Parameters4/5

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

The description adds essential structure beyond the schema: it specifies that queries are a list of objects with 'custom_id' and 'prompt' strings, and notes that model 'pro' enables deep thinking. With 0% schema coverage, this compensates well, though temperature semantics could be expanded slightly.

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 description clearly states the tool's purpose: 'Submit a batch of queries for async processing (~50% cost discount).' This verb-resource combination immediately distinguishes it from synchronous tools like consult_gemini.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance is provided on async nature (up to 24h), inlining context instead of tool use, and using get_batch/list_batches/get_batch_results for status. This tells the agent exactly when and how to use this tool versus alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tobert/gpal'

If you have feedback or need assistance with the MCP directory API, please join our Discord server