Skip to main content
Glama

chain_token_gate

Read-only

Token gate check (ERC-20, ERC-721, ERC-1155 holdings) — Does a wallet hold enough of up to 10 tokens or NFT collections? Auto-detects ERC-20 (decimals applied), ERC-721 (count) and ERC-1155 (contract:tokenId) via ERC-165 and returns each live balance, pass/fail per item and an overall PASS/FAIL (mode all or any). Required: address, contracts (comma-separated; each 0xCONTRACT, 0xCONTRACT@min or 0xCONTRACT:tokenId@min). Optional: chain (base default, ethereum, arbitrum, optimism, polygon), min (default 1), mode (all|any). Price: $0.003 USDC (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>",
      "contracts": "<contracts>"
    },
    "name": "chain_token_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
contractsYes0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913,0x4200000000000000000000000000000000000006@0.0001

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered; the description adds genuinely new context such as ERC-165 auto-detection, decimals being applied, the 10-contract cap, defaults (base chain, min 1) and the $0.003 USDC x402 payment requirement. It does not describe pagination or failure behavior when a contract is not a valid token, which keeps it below the top band given the low annotation bar.

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?

Content is front-loaded: purpose first, then detection behavior, then required/optional parameters and pricing. It is a single dense paragraph with heavy parenthetical nesting, which is efficient but would scan faster as short bullets; no sentence is filler.

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 no output schema, the description still explains the return shape (per-item live balance and pass/fail plus an overall PASS/FAIL). Combined with chain defaults, contract syntax, the 10-token cap and the payment model, an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is nominally 100%, the schema's description fields are only bare example values, so the description carries the real semantics: the contracts grammar (0xCONTRACT, 0xCONTRACT@min, 0xCONTRACT:tokenId@min), the enumerated chain options, and the min and mode defaults. This is meaning that exists nowhere in the structured fields.

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 opens with a specific verb+resource: a token-gate check across ERC-20/721/1155 holdings that answers "does a wallet hold enough." It distinguishes itself from balance-listing siblings by framing the output as pass/fail per item plus an overall verdict, so an agent can tell what it is for without opening the schema.

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?

Usage context is clear: threshold gating against up to 10 contracts, with mode all|any controlling aggregation and min as the threshold. It stops short of explicitly naming alternatives (e.g. use a plain balances tool when raw holdings rather than a verdict are wanted), so routing to a sibling is still inferred rather than stated.

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