Skip to main content
Glama

batch_process

Process content files through Gemini AI batch jobs to generate results at scale. Handles file ingestion, job creation, monitoring, and result retrieval in one automated workflow.

Instructions

COMPLETE BATCH WORKFLOW - End-to-end content generation batch processing. WORKFLOW: 1) Ingests content file (CSV, JSON, TXT, etc.), 2) Converts to JSONL, 3) Uploads to Gemini, 4) Creates batch job, 5) Polls until complete, 6) Downloads and parses results. BEST FOR: Users who want simple one-call solution. RETURNS: Final results with metadata. For more control, use individual tools (batch_ingest_content, batch_create, batch_get_status, batch_download_results).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputFileYesPath to content file (CSV, JSON, TXT, MD, JSONL)
modelNoGemini model for content generationgemini-2.5-flash
outputLocationNoOutput directory for results (defaults to current working directory)
pollIntervalSecondsNoSeconds between status checks (default: 30)
configNoOptional generation config

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/mintmcqueen/gemini-mcp'

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