Skip to main content
Glama

Nightshift Labs: link, token & signature pre-checks

base_token_price

Read-only

Live USD price of any ERC-20 token on Base from on-chain DEX quotes (Uniswap v3 0.05/0.3/1% pools and Aerodrome, against USDC and WETH; WETH converted with Chainlink ETH/USD). Returns the best executable route, every route's price, the price impact of selling $1,000, and flags for thin liquidity or disagreeing pools. Price: $0.003 USDC on Base per call (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": "base_token_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesERC-20 token contract on Base

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations supply only readOnly/openWorld, and the description adds substantial behavior beyond them: the exact venue set and fee tiers, the USDC/WETH denominator and Chainlink conversion, and the fact that results include thin-liquidity and disagreeing-pool flags. Most importantly it discloses a pay-per-call x402 charge of $0.003 USDC on Base, which an agent must know before invoking.

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?

One front-loaded sentence pairing purpose with return contents, followed by cost — efficient with no filler. It is dense and clause-heavy (the venue/fee-tier parenthetical runs long), which costs a little readability but each clause carries real signal about coverage and limitations.

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?

There is no output schema, so the description carries the return-value burden and does it: best executable route, all route prices, price impact for a $1,000 sell, and liquidity-disagreement flags. Combined with the payment disclosure and venue coverage, an agent knows what it will get and what it will pay before calling.

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 coverage is 100% and the single address parameter is already documented as an ERC-20 contract on Base with a 0x-40-hex pattern. The description adds only the confirming scope phrase 'any ERC-20 token on Base' and the note that pricing is DEX-quote-based, so the schema does the heavy lifting and the baseline 3 applies.

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 states a specific verb+resource: 'Live USD price of any ERC-20 token on Base', and immediately grounds it in named liquidity sources (Uniswap v3 fee tiers, Aerodrome, USDC/WETH pairs, Chainlink ETH/USD). That price-and-route framing cleanly separates it from the sibling base_token_check (token vetting) and base_portfolio (holdings valuation) without needing to name them.

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 infers 'use this when you need a current spot price' from the verb and returns. There is no explicit when-to-use, when-not-to-use, or named alternative (e.g., when a portfolio-wide valuation should go to base_portfolio instead). The $0.003 per-call cost is disclosed, which is a useful decision input but not usage guidance.

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.