Skip to main content
Glama

api_finance_bond_ytm

Read-onlyIdempotent

Solve annualized bond yield-to-maturity numerically from quoted clean price, par, coupon rate, maturity and payments per year. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": {
      "price": "<price>",
      "par": "<par>",
      "coupon_pct": "<coupon_pct>",
      "years": "<years>"
    },
    "name": "api_finance_bond_ytm"
  }
}

Input Schema

NameRequiredDescriptionDefault
parYespar; see operation description for units and format
priceYesprice; see operation description for units and format
yearsYesyears; see operation description for units and format
coupon_pctYescoupon pct; see operation description for units and format
payments_per_yearNopayments per year; see operation description for units and format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, non-destructive read, and the description adds genuinely new behavior: the call is metered at 0.01 USDC on Base x402 and accepts customer-owned provider credentials via an X-Provider-Key header. The word 'numerically' also signals an iterative solve, hinting at possible precision/convergence behavior, though it does not state tolerance or failure modes.

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?

Two dense sentences, front-loaded with the computational purpose and followed by the payment/auth caveats; nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 should say what comes back — an annualized yield as a decimal or a percentage, and how it relates to payments_per_year for compounding. It also omits error behavior for cases where no solution exists (e.g. price implying a non-positive yield). The payment and header details are well covered, but the return contract is not.

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 coverage is nominally 100%, but the property descriptions are circular placeholders ('see operation description for units and format'), so the real burden falls on the description. It clarifies that 'price' is a quoted clean price and that 'years' is time to maturity, yet it never states the unit conventions that matter here: whether coupon_pct is 5 or 0.05, whether price is per 100 of par, or the default for the optional payments_per_year.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb and resource: 'Solve annualized bond yield-to-maturity numerically,' and names the exact inputs used (clean price, par, coupon rate, maturity, payments per year). No sibling tool covers bond YTM, so there is no ambiguity to resolve, although it never explicitly rules out adjacent tools like api_finance_cagr or api_investment_return.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is the tool for pricing a bond given a clean price, but there is no explicit when-to-use/when-not statement, no alternative named, and no note on what to do if the yield must be solved from a dirty price or a different quote convention. The cost note (0.01 USDC per call) gives useful operational context but is not usage guidance.

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