Skip to main content
Glama

ExchangeRebel — pay-per-call APIs for AI agents (x402 on Solana)

token_efficiency_criteria

Read-onlyIdempotent

The published criteria for the Payload Budget Check service (token-efficiency/v1): the input contract, the four shaping operations S-1..S-4, the receipt and reconciliation rules, the pinned tokenizer (cl100k_base, gpt-tokenizer 4.1.0), and the pinned public test corpus identity. Read these before paying for a budget check — every report is reproducible from them. — no payment required: call directly without payment (no x402 challenge; this tool is free). HTTP equivalent: GET https://exchangerebel.com/toll/token-efficiency/criteria.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "token_efficiency_criteria"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds meaningful behavior beyond that: no payment/x402 challenge is required, the tool is free, and the returned material is fully reproducible. It does not mention response size, pagination, or format, which is the remaining gap for a document-returning tool.

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?

Content is front-loaded: the resource is identified first, the manifest of included material second, the call-to-action and payment note last. The single dense sentence is appropriate for a spec-document tool, though the repeated 'pinned' phrasing and the long comma-separated enumeration add slight density without new information.

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?

With no output schema, the description carries the burden of saying what comes back, and it does so by enumerating the five categories of criteria content plus the reproducibility guarantee and the HTTP equivalent endpoint. What is missing is only secondary — response shape/size and whether the criteria are versioned across requests — which is minor for a static read-only document.

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?

The input schema has zero properties, so there are no parameter semantics to explain and the baseline is 4. The description correctly presents this as a no-argument retrieval operation, consistent with the empty schema.

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 resource — the published criteria for the Payload Budget Check service (token-efficiency/v1) — and enumerates its contents (input contract, S-1..S-4 shaping operations, receipt/reconciliation rules, pinned tokenizer, corpus identity). It implicitly separates itself from the paid budget-check sibling via 'Read these before paying for a budget check,' though it never states outright that it returns the criteria document as text.

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?

'Read these before paying for a budget check — every report is reproducible from them' gives a clear triggering condition and rationale, pointing the agent at this tool ahead of token_efficiency_budget/token_efficiency_precheck. There is no explicit when-not guidance (e.g., that it is unnecessary if the agent already knows the contract), but the usage context is unambiguous.

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