Skip to main content
Glama

Amaltash Investment & Retirement Calculators

T-Bill Calculator

price_treasury_bill
Read-onlyIdempotent

T-Bill Calculator with a chart, the same math as the web page. What does a Treasury bill cost and pay? A Treasury bill, or T-bill, is a short loan to the US government. You pay a little less now and get the full amount back later. It prices a bill from the rate you type, using the Treasury’s discount math. It can also lay out a ladder of bills with dates. It does not buy bills or show live auction results. People ask for it as "t bill calculator", "treasury bill calculator" or "how do treasury bills work".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "price_treasury_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoKind of rate. Treasury results list both. Default: investment.
rateNoInterest rate each year. A percent: 5 means 5%. Use today’s rate. 3-month bills averaged 3.4%, 1928–2025. Default: 3.4.
termNoWeeks each bill lasts. Default: 13.
billsNoNumber of bills. 2 or more pay you back in turns. Default: 4.
amountNoMoney you get back. US dollars. You pay a little less now. Default: 40000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description earns credit for adding behavior beyond that: output includes a chart, the computation mirrors the Treasury's discount math and the website, a multi-bill ladder is produced when bills ≥ 2, and the tool explicitly does not transact or return live auction results. It doesn't describe the exact return shape, but the honesty about what the tool will not do is valuable.

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

Conciseness2/5

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

The most agent-relevant sentences (the pricing behavior and the ladder/exclusion statements) are buried mid-paragraph behind consumer-facing copy. The T-bill explainer ("A Treasury bill, or T-bill, is a short loan to the US government…") and the trailing keyword aliases ("people ask for it as 't bill calculator'…") are SEO filler that consumes attention without informing invocation. Roughly half the text could be deleted with no loss to an agent.

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 5 optional, fully described parameters (all with defaults), enum constraints, and annotations covering the safety profile, an agent has nearly everything it needs. There is no output schema, and the description compensates partially by mentioning the chart and the ladder output. The remaining gap is that the returned values (price, discount, payout per rung) are never characterized, which matters for a calculator whose purpose is producing numbers.

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% and each parameter already carries its type, enum, default and explanatory text, so the schema does the heavy lifting. The description only gestures at semantics indirectly — "the rate you type" maps to rate, and "a ladder of bills with dates" maps to bills/term — without adding anything the schema doesn't have. Baseline 3 applies.

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 states a concrete verb and resource: "It prices a bill from the rate you type, using the Treasury's discount math" and adds a secondary capability, "lay out a ladder of bills with dates." It also draws a scope boundary ("does not buy bills or show live auction results"). It never names a sibling tool, so differentiation from the many calculate_* tools is only implicit.

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?

Usage is implied rather than stated: you'd call it to price a single bill or build a ladder, and the description explicitly rules out purchasing and live auction data. There is no explicit "use this when…" framing and no routing to or away from sibling calculators such as calculate_cd_interest or calculate_simple_interest, which an agent would need to disambiguate this tool in a crowded catalog.

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