Skip to main content
Glama

Physical Capability Cloud

get_token_allowance

Read-only

Read the ERC-20 token allowance granted by an owner to a spender from the blockchain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesToken owner address (0x...)
spenderYesSpender address (0x...)
tokenAddressYesERC-20 token contract address (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered structurally. 'From the blockchain' adds a useful hint that this is a live on-chain read rather than cached state, but there is no mention of failure behavior for non-contract addresses or of the returned value.

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?

A single sentence with no filler, front-loaded on the verb and resource, and the qualifying scope (owner to spender) is placed where it disambiguates rather than trails off.

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?

There is no output schema, so the description should ideally state what comes back (a raw allowance amount, likely base units with the token's decimals). For an otherwise simple three-parameter read tool it is close to adequate, but the return semantics are left entirely to inference.

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% and each of the three parameters (tokenAddress, owner, spender) is described inline, so the schema carries the load. The description only restates the owner→spender relationship already encoded in those field descriptions, adding no format or validation detail beyond them. Baseline 3 applies.

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?

States a specific verb (read) plus the precise resource (ERC-20 allowance) and the two roles involved (owner, spender), which separates it in substance from the adjacent get_token_balance. It never names a sibling tool or explicitly contrasts itself with anything, so it falls just short of the 5 benchmark.

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 only implied by the function itself – an agent can infer this is the pre-transfer/pre-approve check for a spender's spending limit. There is no stated when-to-use, no prerequisite (valid on-chain addresses, correct chain), and no pointer to get_token_balance as the alternative for holdings.

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.