Skip to main content
Glama

Polygon wallet balances

polygon_wallet_balances
Read-onlyIdempotent

Native POL balance of a Polygon PoS wallet plus the balances of up to 20 ERC-20 tokens you list, formatted with each token's symbol and decimals, read live from Polygon PoS. Costs $0.005 USDC on Base 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": {
      "address": "<address>"
    },
    "name": "polygon_wallet_balances"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokensNoComma-separated ERC-20 contract addresses on Polygon PoS, up to 20
addressYesWallet address on Polygon PoS

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "polygon"
tokensNoarray
addressNostring, e.g. "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
nativeSymbolNostring, e.g. "POL"
nativeBalanceNostring, e.g. "592.719767156691654977"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "address": {
      +      "description": "string, e.g. \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\""
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"polygon\""
      +    },
      +    "nativeBalance": {
      +      "description": "string, e.g. \"592.719767156691654977\""
      +    },
      +    "nativeSymbol": {
      +      "description": "string, e.g. \"POL\""
      +    },
      +    "tokens": {
      +      "description": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the description is not carrying the safety burden. It adds genuinely useful context beyond the annotations: a $0.005 USDC charge on Base via x402 (a payment/auth prerequisite an agent must know before calling), live rather than cached reads, the 20-token cap, and symbol/decimals formatting of results.

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 dense sentence that front-loads the primary return value (native POL balance) before the optional token-list behavior, then the data source and cost. Nothing is redundant or padded.

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?

With full parameter schema coverage, an output schema, and annotations covering the safety profile, the description supplies exactly the missing pieces: chain scope, live-read behavior, result formatting, and the x402 payment cost. An agent has everything needed to decide to call it and to anticipate the charge.

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 100%, so both the address and comma-separated tokens parameters are already documented with patterns and the 20-item limit. The description reinforces the token-list cap and mentions formatting, but adds no syntax or format detail the schema does not already provide; 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 and resource set: native POL balance plus balances of up to 20 listed ERC-20 tokens, read live from Polygon PoS. The chain and asset scope clearly distinguish it from the other chain-specific balance siblings, but it never names an alternative such as polygon_wallet_profile or the multichain wallet_balances, so differentiation relies on the tool name.

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: an agent can infer this is the tool for reading token balances on Polygon PoS. There is no explicit when-to-use statement, no guidance on when a wallet profile or a different chain's balance tool would be preferable, and no mention of prerequisites beyond the cost line.

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