Skip to main content
Glama

pyeconomics

Spot, par and forward curves

fixed_income_curve_bootstrap
Read-onlyIdempotent

Bootstrap spot rates and discount factors from par yields, par yields from spot rates, and forward rates between maturities. Runs Spot, par and forward curves (fixed_income.curve_bootstrap, version 1) on the given inputs and returns its canonical result: the validated inputs, the outputs, the warnings and the manifest. The required calculation field selects one of: forward_rate, from_par, from_spot. Every number carries its unit in the input schema; rates are decimals.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this read-only, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds that the result includes validated inputs, outputs, warnings and a manifest, which hints that callers should inspect warnings. That return-shape detail is partly redundant with the existing output schema, and nothing is said about failure modes or input validation rules beyond the required calculation field.

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 purpose is front-loaded in the first sentence and the mode enumeration follows naturally. The middle sentence about running version 1 and returning validated inputs, outputs, warnings and the manifest is platform boilerplate that partly duplicates the output schema. Still, the whole description is short and each remaining sentence (units, calculation selection) carries some information.

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?

This is a model-runner tool with a fully described oneOf schema, an output schema, and explicit safety annotations, so the description does not need to re-explain inputs or return values. It covers the three calculation modes, the result envelope and the rate-unit convention. The only gap is guidance on input ordering or consistency (e.g., matching frequency to tenor spacing), which the schema implies but does not emphasize.

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 every field (par_yields, spot_rates, frequency, compounding, near/far rate and years) is already documented with units and bounds, setting the baseline at 3. The closing note that rates are decimals and units are carried in the schema is a small but genuine convention clarification that prevents misreading 0.04 as 4 percent. It adds marginal value rather than new semantics for individual parameters.

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 opening sentence names the specific operations precisely: bootstrapping spot rates and discount factors from par yields, par yields from spot rates, and forward rates between two maturities. That maps one-to-one onto the three schema variants, so the agent knows the resource and scope. It never contrasts itself against adjacent models such as fixed_income_bond_pricing or fixed_income_duration, which keeps it short of a 5.

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?

It states that the required calculation field selects one of forward_rate, from_par or from_spot, which is the mode-selection guidance an agent needs at call time. However, that mapping largely restates the schema discriminator and const descriptions. There is no guidance on when to prefer this tool over sibling fixed-income models, or on prerequisites such as input ordering or frequency consistency.

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.