Skip to main content
Glama

Mercury402: Treasury/FRED financial data over x402

Call a Mercury402 endpoint

get_endpoint_data

Call a Mercury402 endpoint on the live API. This hosted endpoint is discovery-only: endpoints return HTTP 402 and this tool returns the price and x402 payment instructions instead of data. Pay with your own x402 client, or run mercury402-mcp locally (npx -y mercury402-mcp) with your own wallet. Use list_endpoints first to find paths and parameters. Path params can be inline ("/v1/fred/UNRATE") or passed in params ("/v1/fred/{series_id}" + {"series_id":"UNRATE"}). Other params go to the query string (GET) or JSON body (POST).

Input Schema

NameRequiredDescriptionDefault
payNoPaid mode only: set false to just get the price quote without paying. Default true.
pathYesEndpoint path, e.g. "/v1/treasury/yield-curve/daily-snapshot" or "/v1/fred/UNRATE"
paramsNoPath, query (GET) or body (POST) parameters

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The description discloses behavior beyond the annotations: the hosted endpoint is discovery-only, returns HTTP 402 with price and x402 payment instructions instead of data, and requires either a separate x402 client or running mercury402-mcp locally with a wallet. This is consistent with openWorldHint=true and readOnlyHint=false.

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?

The description is front-loaded with the key limitation and usage path, then moves into practical calling details. The sentences are dense and purposeful, 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?

For an open-world, non-idempotent endpoint-calling tool with no output schema, the description covers enough for correct invocation: discovery-only behavior, payment flow, local alternative, sibling-tool sequencing, and parameter placement. Nothing critical for an agent 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 meaningful composition semantics: path parameters may be inline or supplied in params, and other parameters are routed to query string or JSON body depending on the HTTP method. The pay parameter's behavior is mostly left to the schema.

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 action and resource: calling a Mercury402 endpoint on the live API. It immediately distinguishes the tool from list_endpoints by saying list_endpoints is used first to discover paths and parameters, and it clarifies that hosted discovery calls return HTTP 402 pricing/payment instructions rather than data.

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?

It gives explicit routing guidance: use list_endpoints first to find paths and parameters. It also explains how to supply parameters, including inline path params versus params-object path params, and how remaining params are sent as query strings for GET or JSON bodies for POST.

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.