Skip to main content
Glama

nestegg-calculators

Current Yield

current-yield
Read-onlyIdempotent

Current yield: the annual coupon as a percent of the bond's current price.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYesCurrent bond price.
faceValueYesFace value.
couponRatePctYesAnnual coupon rate in percent of face.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
currentYieldPctNoCurrent yield, percent (null if price<=0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the description need not repeat those. It adds the mathematical relationship (coupon as a percentage of current price), which is useful behavioral context beyond the annotations, though it does not discuss edge cases like zero price.

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?

The description is a single, front-loaded sentence that directly states the calculation. Every word earns its place, with no filler or redundancy.

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

Completeness5/5

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

Given the tool's simplicity, full schema coverage, and presence of an output schema and readOnly/idempotent annotations, the description adequately defines the calculation. No additional behavioral or return-value context is necessary.

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 coverage is 100% with all three parameters described. The description reinforces that couponRatePct is an annual rate and price is the current price, but it does not add new parameter-level details 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?

The description clearly defines the tool's purpose: 'Current yield: the annual coupon as a percent of the bond's current price.' This specific formula-based definition distinguishes it from sibling tools like yield-to-maturity and bond-price.

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

Usage Guidelines3/5

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

The description implies the tool is for calculating current yield but provides no explicit guidance on when to use it versus alternatives such as yield-to-maturity or bond-duration. There are no stated exclusions or comparative context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.