Skip to main content
Glama

Obligacje Catalyst (Obligacyjny Inwestor)

Yield or price calculator for one series

calculate_yield
Read-onlyIdempotent

What-if calculator for one Catalyst bond series. Give the series code and EITHER a clean price you saw at your broker (price_pct, % of face value, e.g. "101.5") OR a yield (yield_pct, % per year, annual effective) and get: accrued interest, dirty price, yield to maturity (annual effective and compounded per coupon period), current yield, duration for fixed-rate bonds and an approximate effective margin for floating-rate bonds. Uses our coupon terms and the current coupon (for floating-rate bonds the current coupon is assumed to stay until maturity); before tax and fees; early redemption and amortisation are not modelled. We publish no market prices: the price must come from the user. Kalkulator: rentowność z ceny albo cena z rentowności, odsetki narosłe, cena brudna.

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": {
      "code": "<code>"
    },
    "name": "calculate_yield"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesCatalyst code of the series, e.g. "KRU0632".
price_pctNoClean price in % of face value (without accrued interest), as quoted on Catalyst, e.g. "101.5". Give this or yield_pct.
yield_pctNoYield to maturity in % per year (annual effective, ACT/365), e.g. "7.2". Give this or price_pct.
face_valueNoOptional face value of one bond in its currency (e.g. "100" or "1000") to also get amounts per bond.
settlement_dateNoSettlement date YYYY-MM-DD (default: today + 2 business days, the Catalyst T+2 rule).

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 readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description adds genuine model assumptions that annotations cannot convey: constant current coupon for floaters, pre-tax and pre-fee figures, no early redemption or amortisation, and the requirement that the user supply the price. It does not say what happens on invalid or missing inputs or when both price and yield are supplied.

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 core usage rule and the return list are front-loaded and dense without filler. The trailing Polish sentence is an exact restatement of the preceding sentence and a parenthetical about floating-rate assumptions is packed into a long clause, costing a little readability.

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?

With no output schema, the description carries the return-value burden and does so by enumerating accrued interest, dirty price, YTM in two conventions, current yield, duration and effective margin. The default settlement rule lives in the schema. What is missing is error/edge behavior (unknown series code, conflicting price and yield), which matters for a calculation tool whose inputs are user-supplied strings.

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% and every parameter is documented in the schema, so the baseline is 3. The description reinforces the meaning of price_pct (clean, % of face) and yield_pct (annual effective) and the either/or rule, but this largely repeats the schema text rather than adding new constraints or formats.

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 names a specific verb and resource ('What-if calculator for one Catalyst bond series') and states the exact input alternatives (price_pct or yield_pct) and the derived metrics returned. It also draws the boundary against data-retrieval siblings by stating 'We publish no market prices: the price must come from the user', so an agent knows this is not a lookup tool.

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?

The mutual exclusivity rule is explicit ('EITHER a clean price ... OR a yield') and the what-if framing makes the usage context clear. It stops short of naming a sibling to call first (e.g. to obtain the series code or coupon data), so the alternative-routing guidance is implied rather than stated.

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.

Resources