Skip to main content
Glama

Call Lens

decode_token_call
Read-onlyIdempotent

Call Lens decodes supported token-call shapes locally and compares the recipient, spender and atomic amount with your expectations. It distinguishes ERC-20 allowances from ERC-721 token IDs using the declared standard. It never connects a wallet or evaluates contract safety. No chain simulation, malicious-contract detection, token identity lookup, balance inspection or safety verdict. Retrieve calls with fetch or read its example resource to obtain exact inputs. Parameters are processed remotely without application persistence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesTarget contract (preserve source text; decimal amounts must stay strings)
dataYesHex calldata (preserve source text; decimal amounts must stay strings)
networkYesNetwork (preserve source text; decimal amounts must stay strings)
tokenStandardYesToken Standard (preserve source text; decimal amounts must stay strings)
maxAtomicAmountYesAmount limit (atomic units) (preserve source text; decimal amounts must stay strings)
expectedRecipientYesExpected recipient / spender (preserve source text; decimal amounts must stay strings)
nativeValueAtomicYesNative value (atomic units) (preserve source text; decimal amounts must stay strings)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
reportYes
toolIdYes
versionYes
citationYes
revisionYes
processingYes
limitationsYes
evidenceStatusYes
officialReferencesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark readOnly, idempotent, and non-destructive. The description adds meaningful operational facts: local decoding, no wallet connection, no contract-safety evaluation, no application persistence, and remote processing. These constraints materially affect invocation expectations and go well beyond annotation coverage.

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?

The description is compact and front-loaded with the core purpose, followed by exclusions and input-retrieval instructions. Every sentence earns its place; there is no filler or redundant restatement of the tool name.

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 7-parameter tool with an output schema, the description covers purpose, exclusions, input retrieval, and persistence behavior. The only notable gap is that ERC-1155 appears in the enum but the description only illustrates the ERC-20 vs ERC-721 distinction.

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?

The schema covers all seven parameters with descriptions and an enum, so the description does not need to repeat per-parameter details. The text adds conceptual orientation around recipient/spender and atomic amount but no concrete parameter-level guidance beyond the schema. Baseline 3 is appropriate.

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 ('decodes') and object ('supported token-call shapes'), and frames the comparison against recipient, spender, and atomic amount. The negative capability list separates it from safety and simulation tools. Clear and differentiating.

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?

Names fetch and read as the way to retrieve calls and exact inputs, providing an explicit path to invocation. It also lists exclusions such as no chain simulation and no safety verdict, so an agent knows when not to use it. It does not name specific alternative tools for those excluded jobs.

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