Skip to main content
Glama

AgentPay — Pay-per-call AI Microservices

token-price

token-price
Idempotent

Live USD spot price for up to 10 ERC20 tokens on Base via CoinGecko ($0.01 USDC per call)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "token-price"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractsNo

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?

Annotations already declare openWorldHint=true and readOnlyHint=false, so the non-read-only signal is covered. The description adds genuinely new behavioral context beyond the annotations: the data source (CoinGecko), the fact that prices are live/spot rather than cached, and the $0.01 USDC charge per call, which explains why readOnlyHint is false. It does not say what happens on unknown contracts or failed lookups.

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, front-loaded with what is returned, then chain, source, batch cap and price. No filler and nothing buried.

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 one-parameter price lookup with no output schema, the description covers source, scope, batch limit and cost. The main gaps are result shape (one price per token? ordering?) and error behavior for unknown or invalid contracts.

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 carry the load. It usefully bounds 'contracts' to at most 10 ERC20 token addresses on Base, but says nothing about address format (0x-prefixed hex), ordering of results, or why the array is not marked required despite the wording implying input is needed.

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 gives a specific verb and resource ('Live USD spot price for ... ERC20 tokens on Base via CoinGecko') plus a hard scope of up to 10 tokens, so an agent can tell exactly what data comes back. It does not explicitly contrast itself with the nearby 'crypto-price' sibling, leaving the boundary between the two implicit.

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: the chain (Base), asset class (ERC20) and batch limit (10) suggest when this tool applies, but there is no explicit 'use this when... instead of crypto-price' routing. The per-call cost is stated, which helps an agent decide if the call is worth making.

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