Skip to main content
Glama

finance_tbill

Read-only

Treasury bill yield calculator — Offline T-bill math (spreadsheet TBILLPRICE / TBILLYIELD / TBILLEQ conventions). Give maturity=YYYY-MM-DD or weeks= (4-52), optional settlement= (default today), and ONE of discount= (bank discount rate %), price= (per 100) or yield= (bond-equivalent %). Returns price per 100, bank discount rate, money-market yield, bond-equivalent (investment) yield, effective annual yield, and cost/interest for face= (default 1000). Price: $0.001 USDC (Base, via x402).

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": {
      "discount": "<discount>",
      "settlement": "<settlement>",
      "maturity": "<maturity>"
    },
    "name": "finance_tbill"
  }
}

Input Schema

NameRequiredDescriptionDefault
discountYes9.14
maturityYes2008-06-01
settlementYes2008-03-31

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds genuinely useful non-schema context: it is offline computation, follows named spreadsheet conventions, and costs $0.001 USDC on Base via x402. It also enumerates the returned fields, which compensates for the absent output schema. However it says nothing about failure modes (invalid weeks range, bad date ordering) or what happens if more than one of discount/price/yield is 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?

Front-loaded with the purpose, then tightly packs input rules, return fields, and pricing into one dense paragraph with no filler sentences. It loses a point for run-on density and the unclear abbreviation 'TBILLEQ'/'cost/interest for face=', which could be terser and better segmented.

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?

Return values are fully enumerated, which is good given there is no output schema, and pricing is disclosed. But for a tool whose whole job is a specific formula, the schema/description mismatch (missing weeks, price, yield; required-vs-optional settlement) leaves the caller unable to tell which invocation form actually works.

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?

The schema's property descriptions are bare examples ('9.14', '2008-06-01'), so the prose does add meaning by identifying discount as bank discount rate %, maturity as YYYY-MM-DD and settlement as defaulting to today. But the description describes parameters the schema does not contain (weeks, price, yield) and calls settlement optional while the schema marks all three required — an agent following the prose will build an invalid call.

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?

States a specific verb and resource ('Treasury bill yield calculator') plus the domain convention it implements ('spreadsheet TBILLPRICE / TBILLYIELD / TBILLEQ conventions'), which clearly separates it from siblings such as finance_bond or finance_apr.

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?

Gives concrete input-combination rules: supply 'maturity=YYYY-MM-DD or weeks= (4-52)', an 'optional settlement= (default today)', and exactly 'ONE of discount=, price= or yield='. That is real when-to-use guidance for the parameters, but it never names a sibling alternative (e.g. finance_bond) or states when this tool is the wrong choice.

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