Bond Price
bond-pricePrice of a coupon bond given a yield: present value of the coupons plus the face at maturity.
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": {
"faceValue": "<faceValue>",
"couponRatePct": "<couponRatePct>",
"years": "<years>",
"yieldPct": "<yieldPct>"
},
"name": "bond-price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Years to maturity. | |
| yieldPct | Yes | Annual yield in percent. | |
| faceValue | Yes | Face (par) value. | |
| couponRatePct | Yes | Annual coupon rate in percent of face. | |
| periodsPerYear | No | Coupon periods per year (default 2). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Bond price (null if degenerate). |