Skip to main content
Glama

Gate several tokens

gate_batch

Gate up to 10 tokens against one policy in one call, one receipt each. Counts as one Gate call per token.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tokens": "<tokens>"
    },
    "name": "gate_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyNoA preset name ("actuary-default-v2", "actuary-judged-v2", "no-clones-v1"; v1 presets still work) or a policy object. Default: actuary-default-v2. See gate_facts.
tokensYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / policy / description
      Previous value: -"A preset name (\"actuary-default-v1\", \"no-clones-v1\") or a policy object. Default: actuary-default-v1. See gate_facts."New value: +"A preset name (\"actuary-default-v2\", \"actuary-judged-v2\", \"no-clones-v1\"; v1 presets still work) or a policy object. Default: actuary-default-v2. See gate_facts."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations only give readOnlyHint=false and openWorldHint=true, so the description has substantial undisclosed burden: it never says that gating produces persistent receipts, whether a denied token blocks the batch, or whether results are per-token. It does add genuinely useful non-annotated behavior — one receipt per token and per-token quota accounting — which is why this is not a 2.

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?

Two short sentences, front-loaded with the operation and its limit, then the receipt and quota consequences. No filler and nothing buried.

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

Completeness3/5

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

With no output schema, the description should at least sketch the return shape (a list of receipts, presumably in token order) and what happens on a partial denial. "One receipt each" gestures at it, but for a batch call whose whole point is multi-result handling, that is thinner than ideal.

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 50%; the `policy` parameter is well documented in the schema (presets, default, gate_facts pointer) while `tokens` only has maxItems. The description adds one real semantic constraint the schema does not express — a single policy applies to all tokens in the call — but it repeats the 10-item cap that maxItems already encodes and adds nothing about token format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Gate up to 10 tokens against one policy") and immediately establishes the batch dimension, which is what distinguishes it from the singular `gate` sibling. It stops short of explicitly naming that sibling, so differentiation is inferable rather than stated.

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?

Batching multiple tokens in one call is the implied use case, and "Counts as one Gate call per token" quietly signals there is no quota saving from batching. However, it never says when to call this versus plain `gate` for a single token, nor does it mention prerequisites such as needing a policy or a mandate.

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.