Skip to main content
Glama

token_allowance

Allowance risk category for an owner → spender pair on Base, read on-chain: none, limited, or UNLIMITED. The exact allowance amount is a paid lookup.

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

Input Schema

NameRequiredDescriptionDefault
ownerYes
spenderYes
token_addressYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does a fair job: it discloses that this is an on-chain read, pins the chain to Base, and gives the exact set of possible return categories. It also warns that the precise amount requires a paid lookup, which is real pricing/capability context. It stops short of covering invalid addresses, non-contract spenders, or caching/freshness.

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 resource and scope, then the result domain, then the cost caveat. Every clause carries information and nothing is repeated from the schema or title.

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?

An output schema exists, so return values need not be explained, and the tool is structurally simple (three required string params, single chain). The description supplies the missing essentials (chain, categorical output, paid-amount caveat). It is only slightly thin on input address format and edge-case behavior.

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 description coverage is 0%, so the description must compensate for three undocumented parameters. It does convey that owner and spender form a directional pair and that the resource is an allowance tied to a token, but it never mentions address formats, checksum requirements, or how token_address is interpreted for native vs ERC-20 assets.

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 and scope: the allowance risk category for an owner→spender pair on Base, with the result domain spelled out as none, limited, or UNLIMITED. That makes it clearly distinct from balance/fee/block siblings, though it never explicitly contrasts itself against another allowance-adjacent tool.

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?

Usage is implied rather than stated: the 'risk category' framing suggests you call this when a coarse risk/safety signal is enough. The second sentence points at a paid alternative for exact amounts, which is useful routing context, but there is no explicit when-to-use/when-not-to-use statement or prerequisite (e.g. that the pair must be on Base).

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