Skip to main content
Glama

Batch Results

gemini_batch_results

Retrieve and save images from a completed Gemini batch job by providing the batch ID and output directory.

Instructions

Download and save images from a completed batch job.

Checks the batch status, retrieves the output JSONL from Gemini, decodes each image, and saves them to the specified output directory using the key as the filename.

Args:

  • batch_name (string, required): The batch ID (e.g. "batches/abc123").

  • output_dir (string, required): Directory where images will be saved.

Returns:

  • List of saved image paths (key → file path) and any errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
batch_nameYesThe batch ID (e.g. "batches/abc123")
output_dirYesDirectory where images will be saved
Behavior4/5

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

The description discloses the full sequence of operations (checks status, retrieves JSONL, decodes, saves) and returns errors. This adds context beyond annotations (which only indicate not read-only, not idempotent). No contradictions with annotations.

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

Conciseness3/5

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

The description is well-structured with a lead sentence and clear sections, but the Args block is redundant with the schema, adding unnecessary length. Could be more concise.

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 tool with two parameters and no output schema, the description explains the process and return value (list of paths and errors). It is sufficiently complete, though missing details like file overwrite behavior or error types.

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 coverage is 100%, and the description repeats the schema descriptions verbatim without adding new semantic context (e.g., format, constraints). Baseline score of 3 is appropriate as the schema already documents both parameters.

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 uses strong action verbs ('Download and save') and specifies the resource ('images from a completed batch job'). It clearly distinguishes from sibling tools like gemini_batch_status, gemini_batch_submit, and image editing/generation tools.

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?

The description implies usage after a batch is complete and details the process (check status, retrieve output, decode, save). However, it does not explicitly state when not to use or suggest alternative tools.

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/slackermafia/NanoBanana-MCP-Server'

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