Skip to main content
Glama

pyeconomics

Bond price and yield

fixed_income_bond_pricing
Read-onlyIdempotent

Full and flat price and accrued interest of a fixed-coupon bond from its yield, and its yield to maturity, to a call and to worst from its price. Runs Bond price and yield (fixed_income.bond_pricing, version 2) on the given inputs and returns its canonical result: the validated inputs, the outputs, the warnings and the manifest. The required calculation field selects one of: price_from_yield, yield_from_price, yield_to_call, yield_to_worst. Every number carries its unit in the input schema; rates are decimals.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered; the description adds useful return-shape context (validated inputs, outputs, warnings, manifest) and the decimal convention for rates. One inaccuracy: it calls the calculation field 'required' while the schema gives every variant a const default and does not list it among required properties.

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 purpose is front-loaded in the first sentence, with mode enumeration and output contract following in a logical order. The second sentence is somewhat dense and repeats 'Runs Bond price and yield (fixed_income.bond_pricing, version 2)', which is largely metadata the agent already has from the tool name.

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?

Given an output schema exists, the description need not explain return values, yet it still summarizes the result envelope, and it covers the mode discriminator and unit conventions. Nothing critical is missing, though it could have noted that the mode determines which parameter subset is required.

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 units, enums, defaults, and per-field explanations are already carried by the schema, which sets the baseline at 3. The description's only added semantic content is the instruction that rates are expressed as decimals and that every number carries a unit in the schema — helpful but marginal.

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 sentence names the resource (fixed-coupon bond) and enumerates precisely what is computed: full and flat price plus accrued interest from yield, and yield to maturity, to call, and to worst from price. The four calculation modes are then listed explicitly, so an agent can match a user request to a mode without inspecting the schema.

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 clearly states the mode-selection mechanism (the calculation field picks one of price_from_yield, yield_from_price, yield_to_call, yield_to_worst), which is the main routing decision an agent faces here. It stops short of naming when to prefer this over siblings such as fixed_income_duration, and gives no exclusions or prerequisites.

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.