Skip to main content
Glama

Get attested price (Rubric Protocol)

get_attested_price

Fetch live, historical, or proof-backed Base-mainnet asset prices; each result is post-quantum signed and Hedera-anchored for independent verification.

Instructions

Live spot price for a Base-mainnet asset pair (e.g. 'ETH', 'BTC', 'SOL'), read straight from Chainlink aggregators via eth_call — no cached feed, no third-party price API in the trust path. Pays Rubric Protocol $0.02 USDC per call via x402 (auto pay-and-retry on the 402; needs RUBRIC_MCP_PAYER_KEY funded with USDC on Base mainnet). The differentiator: every response is sealed with an ML-DSA-65 (FIPS 204 post-quantum) signature and anchored to Hedera Consensus Service — the returned attestationId can be independently verified forever at rubric-protocol.com/v1/verify/:attestationId, free, with no further trust in Rubric required. Set proof:true ($0.25) for the raw Chainlink round tuple + a disclosed commitment opening so a third party can recompute the receipt themselves; set at: ($0.50) for a historical price walked from on-chain round history instead of the latest one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atNoISO-8601 timestamp for a historical price instead of latest ($0.50). Mutually exclusive with proof.
proofNoIf true, also return the raw Chainlink round tuple + commitment opening ($0.25 instead of $0.02).
symbolYesAsset symbol, e.g. 'ETH' or 'ETH/USD'. See list_attested_services for supported pairs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the x402 pay-per-call pricing, auto pay-and-retry on the 402, the need for a funded RUBRIC_MCP_PAYER_KEY, post-quantum ML-DSA-65 signature, HCS anchoring, and permanent verifiability of attestationId. It also explains what the optional proof and at modes add and cost, going well beyond the schema.

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 reasonably front-loaded, opening with what the tool does and following with payment and trust mechanics. At three long sentences it is dense, but every clause carries information an agent needs to invoke the tool correctly.

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 a 3-parameter tool with no output schema and no annotations, the description fills the gap completely: it covers what is returned, the payment/auth requirements, the differentiating verification guarantee, and the effect of each optional parameter.

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%, so the schema already documents symbol, proof, and at clearly. The description restates the mutually exclusive nature of proof and at and their price differences, which is mildly useful context but adds little beyond the schema's own field descriptions.

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 verb+resource: 'Live spot price for a Base-mainnet asset pair ... read straight from Chainlink aggregators via eth_call'. It crisply names what is returned and contrasts with its sibling by pointing to list_attested_services for supported pairs.

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 explains exactly when to pay more for proof:true vs at:<ISO timestamp>, and notes the required funded payer key. It also names the sibling list_attested_services as the way to discover supported pairs, giving the agent a clear decision path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools