fi_credit-spread
Calculate Z-spread and implied default probability from a corporate bond price using the risk-free yield curve.
Instructions
Credit spread and Z-spread from bond price vs risk-free curve.
Use when computing Z-spread and implied default probability from a corporate bond price. Provide bond price, coupon, maturity, and risk-free curve. Returns: Z-spread, option-adjusted spread, implied default probability, and loss-given-default.
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": {
"bond_price": "<bond_price>",
"coupon_rate": "<coupon_rate>",
"maturity_years": "<maturity_years>",
"risk_free_curve": "<risk_free_curve>"
},
"name": "fi_credit-spread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bond_price | Yes | Observed bond price | |
| face_value | No | Face value of the bond | |
| coupon_rate | Yes | Annual coupon rate | |
| maturity_years | Yes | Years to maturity | |
| risk_free_curve | Yes | Risk-free yield curve points | |
| payment_frequency | No | Coupon payments per year |