Skip to main content
Glama

AgentPay — Pay-per-call AI Microservices

batch

batch
Idempotent

Batch endpoint - run up to 10 paid service calls in ONE request and one payment (services: summarize, sentiment, extract, translate). Cheaper and faster than paying per call ($0.05 USDC per call)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
callsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations cover safety (readOnly=false, destructive=false, idempotent=true, openWorld=true), and the description adds genuinely useful non-annotation context: the 10-call cap and $0.05 USDC per-call pricing. It does not, however, explain failure semantics (what happens if one of the 10 calls fails or if payment/repeat invocation recharges) or how results are returned, leaving the idempotentHint=true interaction with a paid operation unaddressed.

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?

One sentence, front-loaded with the core purpose and the call cap before the pricing detail. Minor redundancy in 'Cheaper and faster than paying per call ($0.05 USDC per call)' but no filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single opaque string parameter with 0% schema coverage and no output schema, the description should specify the request format and the return shape. It supplies the service list and cost, but an agent still cannot construct a valid 'calls' value from the definition alone.

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

Parameters2/5

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

Schema coverage is 0% and the sole parameter 'calls' is an undocumented string, yet the description never explains its format (JSON array, delimited list, etc.) or how each entry names a service and its arguments. It conveys the allowable service types and the count limit, but not the syntax required to actually populate the parameter.

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 action (run up to 10 paid service calls in one request and one payment) and enumerates the batchable services (summarize, sentiment, extract, translate), which are exactly the sibling tools it consolidates. An agent can distinguish this aggregator from the individual single-call siblings without opening the schema.

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

Usage Guidelines3/5

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

It gives a selection rationale ('cheaper and faster than paying per call'), which implies you should prefer it when issuing multiple calls. However, it never states an explicit when-not (e.g. for a single call, use the individual tool) and the cost comparison is stated as a benefit rather than a decision rule.

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.