Skip to main content
Glama

fi_credit-spread

Read-onlyIdempotent

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bond_priceYesObserved bond price
face_valueNoFace value of the bond
coupon_rateYesAnnual coupon rate
maturity_yearsYesYears to maturity
risk_free_curveYesRisk-free yield curve points
payment_frequencyNoCoupon payments per year
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. Description adds return values (Z-spread, OAS, default probability, LGD) but no additional behavioral traits beyond annotations. No contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences: first defines purpose, second provides usage guidance and outputs. No wasted words, important info front-loaded.

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?

Covers inputs and outputs sufficiently given no output schema. Mentions all key return values. Missing a note about prerequisites (e.g., need market data) but schema covers input format.

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 each parameter already has a clear description. The tool description merely lists required params without adding new meaning beyond the schema.

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?

Explicitly states it computes credit spread and Z-spread from bond price vs risk-free curve, and specifies the use case for corporate bond default probability. Distinguishes from sibling fixed-income tools like 'fixed-income_bond' and 'fi_yield-curve-interpolate'.

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?

Provides clear context: 'Use when computing Z-spread and implied default probability... Provide bond price, coupon, maturity, and risk-free curve.' Lacks explicit exclusions or alternatives, but context is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/QuantOracledev/quantoracle'

If you have feedback or need assistance with the MCP directory API, please join our Discord server