Skip to main content
Glama

batch_ingest_embeddings

Process content files for batch embedding generation by extracting text from formats like CSV, JSON, TXT, and MD, then formatting as validated JSONL with embedded task types.

Instructions

EMBEDDINGS CONTENT INGESTION - Specialized ingestion for embeddings batch processing. WORKFLOW: 1) Analyzes content structure, 2) Extracts text for embedding, 3) Formats as JSONL with proper embedContent structure including task_type, 4) Validates format. OPTIMIZED FOR: Text extraction from various formats (CSV columns, JSON fields, TXT lines, MD sections). RETURNS: JSONL file ready for batch_create_embeddings with task_type embedded in each request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputFileYesPath to content file
outputFileNoOptional output JSONL path
textFieldNoFor CSV/JSON: field name containing text to embed (auto-detected if not provided)
taskTypeYesEmbedding task type (RETRIEVAL_DOCUMENT, SEMANTIC_SIMILARITY, CLASSIFICATION, CLUSTERING, RETRIEVAL_QUERY, CODE_RETRIEVAL_QUERY, QUESTION_ANSWERING, FACT_VERIFICATION). Use batch_query_task_type if unsure.
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by describing the multi-step workflow (analyzes, extracts, formats, validates) and optimization for specific formats. It discloses the output format (JSONL file) and how it's structured (with task_type embedded). It doesn't mention error handling, performance characteristics, or file size limits, which keeps it from a perfect score.

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 efficiently structured with clear sections (WORKFLOW, OPTIMIZED FOR, RETURNS), uses bullet-like numbering for steps, and every sentence adds value. No redundant information or wasted words - it's front-loaded with the core purpose and progressively adds details.

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 4 parameters, 100% schema coverage, and no output schema, the description provides good context about the workflow, format optimization, and output usage. It explains what the tool produces and how it connects to batch_create_embeddings. The main gap is lack of explicit error handling or limitations information, preventing a perfect score.

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 baseline is 3. The description adds some value by mentioning 'auto-detected if not provided' for textField (implied in schema but reinforced) and referencing batch_query_task_type for taskType uncertainty. However, it doesn't provide significant additional parameter semantics beyond what the schema already documents.

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 with specific verbs ('analyzes', 'extracts', 'formats', 'validates') and resources ('embeddings batch processing', 'JSONL file'). It distinguishes from sibling tools by specifying this is for embeddings processing rather than general content ingestion (batch_ingest_content) or embeddings creation (batch_create_embeddings).

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?

The description provides explicit usage guidance: 'OPTIMIZED FOR: Text extraction from various formats (CSV columns, JSON fields, TXT lines, MD sections)' tells when to use it. 'RETURNS: JSONL file ready for batch_create_embeddings' indicates the next step in workflow. It also distinguishes from batch_query_task_type with 'Use batch_query_task_type if unsure' for taskType parameter.

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

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