Skip to main content
Glama

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

token_efficiency_precheck

Read-onlyIdempotent

FREE headline payload-budget pre-check of one submitted payload (100/day per wallet; pass caller). Returns the verdict line, the payload's token count under the pinned cl100k_base tokenizer, and the excess figure only — no shaped payload. The full signed report with the shaped payload and drop receipt is the paid token_efficiency_budget call.

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": {
      "caller": "<caller>",
      "payload": "<payload>",
      "budget_tokens": "<budget_tokens>"
    },
    "name": "token_efficiency_precheck"
  }
}

Input Schema

NameRequiredDescriptionDefault
callerYesSolana base58 wallet of the operator; keys the free allowance (100/day per wallet).
payloadYesThe one payload to check, as text or as JSON text. Processed in memory only and never stored.
keep_fieldsNoOptional field paths protected from shaping operations.
budget_tokensYesThe token budget the payload must fit, counted under the published pinned tokenizer (cl100k_base). No default: a call without a valid budget_tokens is a free validation refusal.
reserve_tokensNoOptional reserve subtracted from budget_tokens to form the effective budget.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered; the description adds quota (100/day per wallet), the fact that no shaped payload is returned, and the escalation path to the paid tier — none of which annotations supply. It stops short of describing failure behavior or what a refusal looks like, which the schema only partially covers via the budget_tokens note.

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?

Three sentences, front-loaded with 'FREE headline payload-budget pre-check' so the value proposition and scope land first. The em-dash-clause carrying the quota is dense but earns its place by encoding a hard limit an agent must respect.

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 five-parameter tool with no output schema, the description usefully enumerates the return contents (verdict line, token count, excess) and the tier boundary, which is what an agent most needs. The remaining gap is behavioral edges — what happens at quota exhaustion or on malformed payloads — left implicit.

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 100%, so all five parameters already carry descriptions; the description only restates that caller keys the free allowance and that a single payload is submitted. Baseline 3 is appropriate — the schema does the heavy lifting and the description adds no syntax or format guidance beyond it.

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 ('FREE headline payload-budget pre-check of one submitted payload') with explicit scope — one payload, verdict plus token count and excess only — and immediately distinguishes itself from the paid sibling token_efficiency_budget. An agent can tell exactly what this returns versus what the paid call returns 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 Guidelines5/5

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

Names the alternative explicitly ('The full signed report with the shaped payload and drop receipt is the paid token_efficiency_budget call') and states the condition that selects it, i.e. needing a shaped payload or drop receipt. Combined with the 'FREE ... 100/day per wallet' framing, an agent knows both when to use this and when to escalate.

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