calculate_bond_price
Calculates bond price by discounting coupon payments and face value using yield to maturity. Supports annual, semi-annual, or quarterly coupons.
Instructions
Calculate bond price using DCF of coupon payments and face value. Price = Σ[C/(1+r)^t] + FV/(1+r)^n. coupon_frequency: 1=annual, 2=semi-annual, 4=quarterly.
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>",
"coupon_rate": "<coupon_rate>",
"ytm": "<ytm>",
"years_to_maturity": "<years_to_maturity>"
},
"name": "calculate_bond_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ytm | Yes | ||
| face_value | Yes | ||
| coupon_rate | Yes | ||
| coupon_frequency | No | ||
| years_to_maturity | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |