Skip to main content
Glama

X402 seller stats

x402_seller_stats
Read-onlyIdempotent

Due diligence on one paid API: an x402 seller's measured revenue and buyers, by host (blockrun.ai) or payTo address: the latest day's revenue, payments, unique and repeat payers, returning payers, top payer share and wash flags, its 7-day totals, and up to 90 days of daily history. Measured from USDC transfers of $5 or less into each seller's payTo on Base, one UTC day at a time, with the day it covers. Costs $0.005 USDC on Base via x402.

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_seller_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoSeller hostname, e.g. blockrun.ai (or pass payTo)
payToNoSeller's payTo address on Base (or pass host)

Output Schema

NameRequiredDescriptionDefault
hostNostring, e.g. "blockrun.ai"
flagsNoarray
payToNostring, e.g. "0xe9030014f5dae217d0a152f02a043567b16c1abf"
last7dNoobject
historyNoarray
last24hNoobject
serviceNostring, e.g. "BlockRun.AI"
dataAsOfNoobject
listingsNonumber, e.g. 71
categoriesNoarray
likelyWashNoboolean, e.g. false
daysTrackedNonumber, e.g. 3
priceRangeUsdNoarray
listedCalls30dNonumber, e.g. 105930

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "categories": {
      +      "description": "array"
      +    },
      +    "dataAsOf": {
      +      "description": "object"
      +    },
      +    "daysTracked": {
      +      "description": "number, e.g. 3"
      +    },
      +    "flags": {
      +      "description": "array"
      +    },
      +    "history": {
      +      "description": "array"
      +    },
      +    "host": {
      +      "description": "string, e.g. \"blockrun.ai\""
      +    },
      +    "last24h": {
      +      "description": "object"
      +    },
      +    "last7d": {
      +      "description": "object"
      +    },
      +    "likelyWash": {
      +      "description": "boolean, e.g. false"
      +    },
      +    "listedCalls30d": {
      +      "description": "number, e.g. 105930"
      +    },
      +    "listings": {
      +      "description": "number, e.g. 71"
      +    },
      +    "payTo": {
      +      "description": "string, e.g. \"0xe9030014f5dae217d0a152f02a043567b16c1abf\""
      +    },
      +    "priceRangeUsd": {
      +      "description": "array"
      +    },
      +    "service": {
      +      "description": "string, e.g. \"BlockRun.AI\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, but the description adds what annotations cannot: the payment model ($0.005 USDC on Base via x402), the data provenance (USDC transfers of $5 or less into payTo on Base), the UTC-day granularity, and the returned windows (latest day, 7-day totals, up to 90 days). Those are exactly the behavioral facts an agent needs before paying to call it.

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?

A single dense sentence, front-loaded with the purpose and ending with the cost. The metric enumeration is long but each item names a distinct output field, so little is wasted; a light structure break would improve scanning.

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?

An output schema exists, so the description need not explain the return shape, yet it still summarizes the metric categories and history depth. For a paid, read-only lookup with two fully documented parameters, nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds that host and payTo are alternative ways to identify the same seller ("or pass payTo"), clarifying the either/or relationship even though neither is marked required. It gives a concrete host example, blockrun.ai, reinforcing the format.

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 and scope: an x402 seller's measured revenue and buyers, keyed by host or payTo address. The phrase "Due diligence on one paid API" separates it from market-level siblings like x402_market_summary and x402_top_sellers without needing their schemas.

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?

The "due diligence on one paid API" framing makes the when-to-use context clear, and it names the two accepted identifier forms. It stops short of explicitly contrasting with the market-wide or top-seller siblings, so the agent must infer that this is the single-seller view.

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