Skip to main content
Glama

live_quotes_lookup

Read-onlyIdempotent

Looks up live quotes for Tesouro Direto bonds (sourced from the TD website, not STN CSV). Use for current indications only.

Each query requires productId plus exactly one year field — maturityYear is required for all products except renda-mais/educa-mais; for renda-mais/educa-mais use maturityYear (calendar maturity year) OR conversionYear (label year on the bond name, e.g. 2027 for 'Educa+ 2027') — never both. Omitting the year field will error.

Each result has optional investorBuy and investorSell objects with { rate, price } — the two sides are independent, so one may be present without the other. When found is true there is also an optional fetchedAt — ISO-8601 UTC from the last site scrape.

Field semantics:

  • investorBuy — investor PURCHASE side: rate and price at which the investor buys from the Treasury.

  • investorSell — investor SELL-BACK side: rate and price at which the investor sells back to the Treasury. Normally investorSell.rate > investorBuy.rate.

Always consult catalog_list to check if the bond is currently available for purchase or sale by Tesouro Direto.

found: true means at least one of investorBuy / investorSell is present — each side may be absent independently, so always check which one came back (if you need a single rate and investorBuy is missing, use investorSell). found: false means neither side is present. Possible causes: outside BRT market hours (nights/weekends/holidays), the bond is not currently offered by Tesouro Direto, the year identifier does not match an active offering, or the stored quotes are invalid. When found is false fall back to price_history_lookup / price_history_series for the latest official STN rate.

Rates are decimal fraction strings (e.g. '0.0753' = 7.53% a.a.) — same convention as price_history_* and simulate_bond.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queriesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds substantial behavioral context beyond annotations: the independence of investorBuy/investorSell, the exact meaning of found:true/false, possible causes for not found (market hours, availability, invalid year), and the decimal-fraction rate convention. It also states that each side may be present independently and how to handle missing investorBuy.

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 long but every sentence adds value. It is well-structured with clear sections for purpose, usage, field semantics, and fallback logic. The most critical constraint (productId + exactly one year) is front-loaded, and the rate format is explained at the end. No fluff or repetition.

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?

The tool has an output schema (not shown) but the description still explains the return structure in detail: investorBuy/investorSell objects with rate and price, fetchedAt timestamp, and the found flag semantics. It also covers error conditions and fallback strategies. Given the complexity of the tool and the available annotations/schema, the description is fully sufficient for an agent to call it correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden for parameter documentation. It fully explains the queries array structure, the productId enum values, the maturityYear/conversionYear exclusivity rule, and the required year field for each product type. It also clarifies that omitting the year field errors. This compensates completely for the schema's lack of 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?

The description clearly states the verb ('looks up'), the resource ('live quotes for Tesouro Direto bonds'), and explicitly distinguishes the data source from the STN CSV used by siblings. It also names the fallback tools for non-current data, so an agent can unambiguously tell this tool apart from price_history_* and simulate_bond.

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?

The description gives explicit when-to-use guidance ('Use for current indications only'), tells the agent to consult catalog_list for availability, and prescribes exact fallback behavior when found:false ('fall back to price_history_lookup / price_history_series'). It also details the required parameter combinations (productId plus exactly one year field) and the special case for renda-mais/educa-mais, leaving no ambiguity about invocation conditions.

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