Skip to main content
Glama

Token price on Base

blackwood_token_price
Read-onlyIdempotent

Use when you need a crypto token price or market data for a Base token, quoted from on-chain liquidity. Do not use for tokens that only trade off Base or on other DEXs (Aerodrome is not read), price history or OHLC. Returns JSON with the USD price of a token on Base computed on-chain from its deepest Uniswap v3 pool against USDC or WETH, with pool, fee tier and depth for 0.002 USDC per call. Typical response time 1200 ms (p95). Category: Trading.

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": {
      "token": "<token>"
    },
    "name": "blackwood_token_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesToken on Base: contract address (0x...) or a symbol like WETH, cbBTC, AERO, DEGEN, VIRTUAL
response_formatNoconcise (the default when omitted) keeps the JSON short: long fields such as base64 images or audio come back as separate image/audio content blocks and other long strings are cut with a marker; detailed returns the full JSON

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "blockNumber": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "decimals": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "depthUsd": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "feeTier": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "pool": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "priceUsd": {
      -        "type": "number"
      -      },
      -      "quote": {
      -        "enum": [
      -          "USDC",
      -          "WETH"
      -        ],
      -        "type": "string"
      -      },
      -      "source": {
      -        "type": "string"
      -      },
      -      "symbol": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "token": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "token",
      -      "symbol",
      -      "decimals",
      -      "priceUsd",
      -      "quote",
      -      "pool",
      -      "feeTier",
      -      "depthUsd",
      -      "blockNumber",
      -      "source"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "x402 PaymentRequired (returned with isError when payment is needed)",
      -    "properties": {
      -      "accepts": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "extensions": {
      -        "type": "object"
      -      },
      -      "resource": {
      -        "type": "object"
      -      },
      -      "x402Version": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "x402Version",
      -      "accepts"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "blockNumber": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "decimals": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "depthUsd": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "feeTier": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "next": {
      +        "additionalProperties": false,
      +        "description": "Suggested next paid call in the same family (call it in a loop when the task continues)",
      +        "properties": {
      +          "method": {
      +            "enum": [
      +              "GET",
      +              "POST"
      +            ],
      +            "type": "string"
      +          },
      +          "sample": {
      +            "description": "Free fixed sample of the whole family",
      +            "type": "string"
      +          },
      +          "service": {
      +            "description": "Service id of the suggested next paid call",
      +            "type": "string"
      +          },
      +          "tool": {
      +            "description": "MCP tool name of the same call",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Paid route of the next call",
      +            "type": "string"
      +          },
      +          "useWhen": {
      +            "description": "When the next call is the right one",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "service",
      +          "tool",
      +          "method",
      +          "url",
      +          "useWhen",
      +          "sample"
      +        ],
      +        "type": "object"
      +      },
      +      "pool": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "priceUsd": {
      +        "type": "number"
      +      },
      +      "quote": {
      +        "enum": [
      +          "USDC",
      +          "WETH"
      +        ],
      +        "type": "string"
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "symbol": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "token": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "token",
      +      "symbol",
      +      "decimals",
      +      "priceUsd",
      +      "quote",
      +      "pool",
      +      "feeTier",
      +      "depthUsd",
      +      "blockNumber",
      +      "source"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "x402 PaymentRequired (returned with isError when payment is needed)",
      +    "properties": {
      +      "accepts": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "extensions": {
      +        "type": "object"
      +      },
      +      "resource": {
      +        "type": "object"
      +      },
      +      "x402Version": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "x402Version",
      +      "accepts"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, but the description adds substantial context beyond them: the 0.002 USDC per-call cost, the p95 latency of 1200 ms, and the exact on-chain derivation (deepest Uniswap v3 pool vs USDC or WETH) including pool, fee tier and depth. This is exactly the kind of cost/latency/derivation detail annotations cannot carry.

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?

Front-loaded with the usage trigger, followed by exclusions, return shape, cost, and latency in order of decision-relevance. Every sentence earns its place with no 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?

Covers scope, exclusions, return contents, cost, and latency; an output schema exists so return values need not be enumerated. Nothing an agent needs to call it correctly or decide against it is missing.

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% and both parameters (token, response_format) are already well documented in the schema, including the enum semantics, so the description adds no parameter-level detail. Baseline 3 is appropriate when the schema does the heavy lifting.

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 resource (USD price of a Base token), the exact mechanism (computed on-chain from its deepest Uniswap v3 pool against USDC or WETH), and the return shape. An agent can distinguish it from wallet_value, wallet_portfolio, and altcoin_discovery without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use it ('need a crypto token price or market data for a Base token') and when not to ('tokens that only trade off Base or on other DEXs (Aerodrome is not read), price history or OHLC'). The exclusions route the agent away from inapplicable cases.

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