Skip to main content
Glama

finance_bond

Read-only

Bond price, yield and duration — Offline bond math that matches spreadsheet PRICE / YIELD / DURATION / MDURATION. Required: coupon= (annual %) plus price= (clean, per 100) to solve yield OR ytm= (%) to solve price; and maturity=YYYY-MM-DD (optional settlement=, default today) or years=. Optional: freq= 1|2|4|12 (default 2), basis= 30/360 (default) | act/act | act/360 | act/365 | 30e/360, redemption= (default 100), face= (default 1000), call_date= + call_price= for yield-to-call/worst. Returns clean/dirty price, accrued interest, YTM, current yield, Macaulay and modified duration, convexity, DV01, +/-100bp price estimates, coupon dates and the cash-flow schedule. Price: $0.002 USDC (Base, via x402).

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": {
      "coupon": "<coupon>",
      "ytm": "<ytm>",
      "settlement": "<settlement>",
      "maturity": "<maturity>"
    },
    "name": "finance_bond"
  }
}

Input Schema

NameRequiredDescriptionDefault
ytmYes6.5
couponYes5.75
maturityYes2017-11-15
settlementYes2008-02-15

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint=false, and the description goes well beyond them: it discloses that the math is offline and spreadsheet-matched, states the per-call cost ($0.002 USDC on Base via x402), lists defaults (freq=2, basis=30/360, redemption=100, face=1000, settlement=today), and names the exact outputs returned. That is unusually complete behavioral context for a compute tool.

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 a single dense paragraph that front-loads purpose and the required input combination before defaults and outputs, and nearly every clause (basis conventions, call support, DV01) adds information. Minor clutter from the enumeration style, but little waste.

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?

With no output schema, the description correctly enumerates the returned values (clean/dirty price, accrued interest, YTM, durations, convexity, DV01, cash-flow schedule), which is exactly what an agent needs. The gap is the unresolved conflict between the stated required-parameter sets and the actual schema, plus vague handling of the years= alternative, which could lead an agent to build an invalid call.

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?

The schema's own descriptions are only bare example strings ("6.5", "2017-11-15"), so the description carries the real burden and does explain units and meaning: coupon as annual %, price as clean per 100, ytm as %, freq 1|2|4|12, and the four basis conventions. However it contradicts the schema's contract by describing price/freq/basis/redemption/face/call_date as optional parameters that do not exist in the schema, and by implying only coupon + price-or-ytm + maturity are required while the schema requires all four fields including both ytm and settlement.

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 opening clause names the exact deliverable (bond price, yield and duration) and ties it to a known reference implementation (spreadsheet PRICE / YIELD / DURATION / MDURATION), so an agent knows precisely which computation this tool performs and can separate it from sibling calculators like finance_loan_calc or finance_npv_irr.

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 concrete mode-selection rules – supply coupon plus price to solve yield, or ytm to solve price, plus maturity or years – which is real when-to-use guidance for the two operating modes. It never states exclusions or points to an alternative tool for related needs (e.g. options or loan math), so it stops short of a 5.

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