Skip to main content
Glama

BondTerminal

Calculate yield or price

bondterminal_calculate
Read-onlyIdempotent

Results include live optionAdjusted OAS with model assumptions when a curve is available. Run what-if bond analytics from exactly one supplied price, YTM, G-spread, or Z-spread for each bond. YTM is percent, semi-annual bond-equivalent (S.A.) for every bond; spreads are basis points on the same basis, except EUR bonds, whose spreads are over the Bund curve on the annual basis (spreads.benchmark BUND, yields.ytmAnnual); and prices are per 100 face. Yield conventions: https://bondterminal.com/methodology/yields Maximum 50 bonds per call. Billing: 1 calculation unit per bond.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bonds": "<bonds>"
    },
    "name": "bondterminal_calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
bondsYesUp to 50 bonds, each with an identifier and exactly one of price, ytm, gSpread or zSpread.
settlementNoSettlement date, YYYY-MM-DD, years 2020 to 2100. Omitted, each bond uses its standard settlement.

Output Schema

NameRequiredDescriptionDefault
metaYes
errorsNo
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / settlement / description
      Previous value: -"Settlement date, YYYY-MM-DD. Omitted, each bond uses its standard settlement."New value: +"Settlement date, YYYY-MM-DD, years 2020 to 2100. Omitted, each bond uses its standard settlement."
  2. Changed3 schema fields changed
    • addedInput schema / properties / bonds / description
      Added value: +"Up to 50 bonds, each with an identifier and exactly one of price, ytm, gSpread or zSpread."
    • addedInput schema / properties / bonds / items / properties / identifier / description
      Added value: +"ISIN, CUSIP, ticker or Argentine local ticker (for example AL30 or GD30)."
    • addedInput schema / properties / settlement / description
      Added value: +"Settlement date, YYYY-MM-DD. Omitted, each bond uses its standard settlement."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses meaningful behavior: results include live optionAdjusted OAS with model assumptions when a curve is available, maximum 50 bonds per call, and billing of 1 calculation unit per bond. It also documents yield/spread/price conventions and provides a methodology link, which is substantial operational context.

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?

The description is dense but mostly earns its length by covering conventions, limits, and billing. It is not front-loaded with the core action, since it opens with output/OAS behavior before stating the calculation purpose, but the information is relevant and structured.

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?

Given two top-level parameters, a nested bonds array, full schema coverage, annotations, and an output schema, the description supplies enough context about input requirements, limits, conventions, and outputs. Settlement is left to the schema, which is appropriate because it is fully documented there.

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 schema already documents most parameter meanings. The description adds useful semantics beyond the schema, especially the EUR exception where spreads are over the Bund curve on an annual basis and the general basis-point convention for spreads.

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 calculation purpose: 'Run what-if bond analytics from exactly one supplied price, YTM, G-spread, or Z-spread for each bond.' This clearly distinguishes it from sibling retrieval/search tools like bondterminal_get_bonds and bondterminal_search_bonds.

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 explains the core usage constraint that each bond must supply exactly one of price, ytm, gSpread, or zSpread, and it caps calls at 50 bonds. It does not explicitly name alternatives or state when not to use this tool, but the what-if calculation context is clear.

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