bond_yield
Calculate bond yield to maturity and current yield using face value, price, coupon rate, and years to maturity.
Instructions
Calculate bond yield to maturity and current yield.
Parameters:
face_value — Bond face/par value.
price — Current market price.
coupon_rate — Annual coupon rate (e.g. 5.0 for 5%).
years_to_maturity — Years until bond matures.
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": {
"face_value": "<face_value>",
"price": "<price>",
"coupon_rate": "<coupon_rate>",
"years_to_maturity": "<years_to_maturity>"
},
"name": "bond_yield"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| face_value | Yes | ||
| price | Yes | ||
| coupon_rate | Yes | ||
| years_to_maturity | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |