Skip to main content
Glama

APEX x402 Full MCP Hub

Food prices

food_prices

Wholesale tomato, lettuce, and mushroom prices per kg across 7 global markets hashed on-chain ($0.002). $0.003 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for the terms, sign them with your own wallet, call again with payment.

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

Input Schema

NameRequiredDescriptionDefault
paymentNoa signed x402 payment (the base64 payload you would put in PAYMENT-SIGNATURE). Pass it and the purchase completes inside this tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses per-call cost ($0.003), accepted payment rails (USDC on Arc/Base/Solana, XNT on X1), and that settlement happens inside the tool call. It omits failure behavior (what happens with an invalid or expired payload) and any rate limits.

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?

Three tight sentences, front-loaded with the data offering, then price, then the call protocol. No filler, though the parenthetical '($0.002)' in the opening sentence is unexplained and briefly disrupts the otherwise clean sequencing.

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 single-optional-parameter paid-data tool with no output schema and no annotations, the description covers what is sold, what it costs, how to pay, and the settlement model. The main gap is the shape of the returned price data and error handling, which an agent would otherwise have to discover empirically.

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 earns an extra point by explaining how the `payment` value is obtained — first call returns terms, user signs, second call carries the base64 payload. That operational context is not derivable from the schema alone.

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 first sentence names the exact resource and scope: wholesale tomato, lettuce and mushroom prices per kg across 7 global markets. The verb is implicit (a price-retrieval tool), and the phrase 'hashed on-chain ($0.002)' is ambiguous about whether that is a fee or a data-provenance claim, which keeps it short of a 5.

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?

It gives a concrete two-step invocation protocol: call once without `payment` to obtain terms, sign them with your own wallet, then call again with `payment`. It does not discuss when to prefer this over any alternative, but the sibling list contains no comparable price tool, so the omission is minor.

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.