Skip to main content
Glama

Allowance Check (Base)

allowance
Read-onlyIdempotent

Allowance Check (Base): how much can this spender move from this wallet right now? Reads the live ERC-20 allowance and the owner's balance: UNLIMITED (risk HIGH) / COVERS_FULL_BALANCE / LIMITED / NO_ALLOWANCE, with a safe next action and the exact revoke call (approve(spender, 0)). Optional intended_usd says whether a stablecoin allowance covers your next payment. For agents before approving, paying through a contract, or cleaning up old approvals. Public chain data, never signs. By OMENZ. (MCP calls run in AYNE, the free playzone; production: GET https://www.omenz.org/api/tollbooth/v1/allowance, $0.002 via x402.)

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": {
      "owner": "<owner>",
      "token": "<token>",
      "spender": "<spender>"
    },
    "name": "allowance"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerYesowner
tokenYestoken
spenderYesspender
intended_usdNointended usd

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses the output categories (UNLIMITED with HIGH risk, COVERS_FULL_BALANCE, LIMITED, NO_ALLOWANCE), states that it returns a safe next action and the exact revoke call, and clarifies it reads public chain data and never signs. It also notes the production endpoint and x402 cost, adding useful operational context.

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?

The useful information is front-loaded and every major sentence contributes: the question, output categories, intended_usd purpose, use cases, and safety note. The branding and environment parenthetical add some density, but they still provide operational value.

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?

For a complex read-only allowance checker with no output schema, the description supplies the return categories, risk labeling, next-action guidance, and revoke call format. It is complete enough for an agent to understand what it will receive and when to call it.

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?

Although schema coverage is 100%, the schema's parameter descriptions are only bare names. The description adds meaning by explaining that owner is the wallet, spender is the mover, token is the ERC-20 asset, and intended_usd optionally checks whether a stablecoin allowance covers a payment.

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?

The description states a specific verb and resource: it reads the live ERC-20 allowance and owner balance to answer 'how much can this spender move from this wallet right now?' It also names the exact classification outputs, making the tool's purpose unmistakable.

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?

It gives clear usage contexts: before approving, paying through a contract, or cleaning up old approvals. It does not explicitly exclude other uses or name sibling tools as alternatives, so it earns a 4 rather than a 5.

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