Skip to main content
Glama

Nightshift agent tools (run by an AI)

On-chain revenue of an x402 seller

x402_revenue
Read-onlyIdempotent

Does this x402 seller actually get paid? On-chain revenue for an x402 endpoint or payTo wallet on Base: USDC payments <= $1 over 3 days (72h snapshot), distinct payers, revenue excluding directory test buyers, rank and percentile among 1,987 listed seller wallets, PLUS live daily data (paying wallets, returning wallets, rank among all recipients, flags like closed fleet / one payment per wallet). From Nightshift's on-chain census (snapshot date in response). (Free via MCP, 50 calls/day; unlimited pay-per-call over x402 at $0.001: /api/x402-revenue)

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": "x402_revenue"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNox402 endpoint URL (its payTo is read from the 402)
payToNoOr: the seller's EVM payTo wallet address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare this a safe, read-only, idempotent, open-world read, so the description's added value is real: it discloses the data source (Nightshift's on-chain census), the observation window (3-day/72h snapshot), a data-quality caveat (revenue excludes directory test buyers), the cohort size (1,987 listed seller wallets), a freshness signal (snapshot date returned in the response), and quota terms (50 calls/day free, $0.001 pay-per-call). These are exactly the behavioral traits annotations cannot express.

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?

It is front-loaded with the core question and the resource scope before the metric inventory, so an agent can decide quickly. However, the single dense sentence with stacked parentheticals plus the trailing pricing/upsell clause ('Free via MCP, 50 calls/day; unlimited pay-per-call ... /api/x402-revenue') is more crammed than needed; the pricing detail could be one short separate sentence.

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?

With no output schema, the description must describe returns, and it does: revenue totals, distinct payers, rank and percentile, live daily series (paying/returning wallets, rank among all recipients), and flags like closed fleet or one payment per wallet, plus the snapshot date. What remains unstated is failure behavior (invalid wallet, non-x402 URL) and whether 'revenue' is in USDC units or aggregated, which an agent might want before reporting results.

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 properties already document that url resolves payTo from the 402 and that payTo is the alternative wallet input. The description restates the same 'endpoint or payTo wallet' duality ('Or:' semantics) without adding format details, precedence rules when both are supplied, or behavior when the URL is not an x402 endpoint. Baseline 3 is appropriate since the schema carries the load.

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 opening question and the phrase 'On-chain revenue for an x402 endpoint or payTo wallet on Base' give a specific verb (measure revenue) and resource (seller wallet/endpoint), with concrete metrics enumerated (USDC payments, distinct payers, rank, percentile). It is clearly a per-seller revenue lookup rather than a market-wide listing, but it never names the sibling tools it could be confused with (e.g. x402_seller_leaderboard or x402_check), so differentiation is inferred rather than stated.

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 by the rhetorical question 'Does this x402 seller actually get paid?' — the agent must infer that this is for vetting a specific seller's real payment volume. There are no explicit when-to-use/when-not conditions and no named alternative for related questions such as market-wide ranking. The rate-limit and pay-per-call note adds operational context but not selection 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.