Skip to main content
Glama

bond_yield

Compute 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
face_valueYes
priceYes
coupon_rateYes
years_to_maturityYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not disclose whether the operation is read-only, has side effects, requires permissions, or how errors are handled. The description only lists parameters and calculations, leaving behavioral traits underspecified.

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

Conciseness4/5

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

The description is brief and to the point, using only a few lines. It could be better structured with bullet points or more formal formatting, but it is not verbose. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given there is an output schema (not shown) and the tool is a simple calculation, the description is adequate. However, it omits details like payment frequency (annual vs semi-annual) or assumptions about yield calculation, which could affect interpretation. It is functional but incomplete for more complex financial contexts.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description compensates by adding one-line explanations for each parameter (e.g., 'face_value — Bond face/par value.'). This adds meaning beyond the schema's type and title, helping the agent understand parameter roles.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool calculates bond yield to maturity and current yield, using a specific verb ('calculate') and resource ('bond yield'). However, it does not differentiate from sibling tools like amortization_calc or compound_interest, which are also financial calculations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. It lacks prerequisites, context for when it is appropriate, or exclusions. The description simply states what it does without contextual usage advice.

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/scotia1973-bot/api-hub'

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