Skip to main content
Glama

ai_extract_batch

Read-onlyIdempotent

Same fields across up to 10 texts, one payment — The pipeline version of ai-extract: send up to 10 documents (text1=…&text2=… or texts= with ||| separators) and one field list — get one schema-enforced JSON object per document, in order, from a single paid call. 10 extractions for $0.10 instead of 10x the per-call overhead: built for agents parsing feeds, inboxes, scrape batches and receipt piles. Up to 6K chars per document. Required input: text1. Priced $0.10 per call over x402 on Base; send a prepaid x-credit-token header for unlimited calls (no free tier on this tool). No API key required.

Input Schema

NameRequiredDescriptionDefault
text1YesDocument 1
text2NoDocument 2 (optional)
fieldsNoFields (comma-separated)

Output Schema

NameRequiredDescriptionDefault
dataNoThe result payload. Shape is service-specific; every field is documented in the tool description.
serviceNoThe service id that answered.
checkedAtNoISO-8601 timestamp of when the underlying reads were taken.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / data / description
      Previous value: -"The result payload. Shape is service-specific; every field is documented in the service description above."New value: +"The result payload. Shape is service-specific; every field is documented in the tool description."
  2. Changed1 schema field changed
    • removedOutput schema / required
      Removed value: -[
      -  "data"
      -]
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the safe-read profile (readOnly, idempotent, non-destructive, open-world), and the description goes well beyond them: exact pricing ($0.10 per call over x402 on Base), the x-credit-token prepaid header, the absence of a free tier, no API key requirement, and a 6K char per-document limit. An agent knows the cost, auth path and size constraints before calling.

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?

Front-loaded with the core value proposition and ordered sensibly (what it does, how to call, why batch, limits, price, auth). It is dense and slightly salesy in the per-call cost comparison, but nearly every sentence carries actionable information.

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?

With an output schema already present, the description need not explain return values and instead states the shape qualitatively ('one schema-enforced JSON object per document, in order'). Combined with pricing, auth, per-document limits and required input, nothing material is missing for correct invocation.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real invocation detail: how to pass multiple documents ('text1=…&text2=… or texts= with ||| separators') and the required text1. Minor friction: the 'texts=' form it advertises does not appear as a property in the input schema, which could send an agent down a wrong path.

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?

States a specific verb and resource with explicit scope: batch extraction of the same field list across up to 10 texts. It directly positions itself against the sibling by calling itself 'the pipeline version of ai-extract', so an agent can separate the batch and single-document tools without opening either schema.

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?

Gives concrete usage contexts ('agents parsing feeds, inboxes, scrape batches and receipt piles') that imply when batching pays off, and referencing ai-extract signals the single-document alternative. It never states an explicit when-not-to-use condition (e.g. use ai_extract for a single document), so the routing is inferable rather than spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources