Skip to main content
Glama

Market Wizardry OTC Rates & XVA

OTC Day-Count & RFR OIS Convention Calculator

compute_daycount_and_conventions
Read-onlyIdempotent

Use whenever calculating accrual year fractions (ACT/360, ACT/365F, 30/360, ACT/ACT) or looking up overnight RFR OIS market conventions (SOFR, ESTR, SONIA, SORA, TONA payment lags, lookbacks, day counts).

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": {
      "startDate": "<startDate>",
      "endDate": "<endDate>",
      "convention": "<convention>"
    },
    "name": "compute_daycount_and_conventions"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateYesISO end date YYYY-MM-DD (e.g. "2026-09-30").
startDateYesISO start date YYYY-MM-DD (e.g. "2026-03-31").
conventionYesInstitutional day-count convention: "ACT/360" (SOFR/ESTR), "ACT/365F" (SONIA/SORA/TONA), "30/360" (corporate bonds), or "ACT/ACT".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior2/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 is fully covered and the description need not repeat it. What it fails to disclose is the return behavior: no output schema exists, yet the description promises two different output modes (a year fraction vs. a conventions lookup) without saying what either returns. The lookup mode is especially opaque, since nothing explains how conventions are selected or scoped.

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?

One sentence, front-loaded with the trigger verb, and every listed token is domain-relevant. It is dense but not padded; the only cost is that cramming two distinct capabilities into a single clause blurs the boundary between them.

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?

For a 3-parameter, fully-annotated, no-output-schema tool, the definition covers the core computation adequately. It falls short on the second capability it claims: an agent cannot determine from description or schema how to request SONIA versus SORA conventions, leaving a stated feature unusable without experimentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3. But the description advertises RFR lookups for SOFR, ESTR, SONIA, SORA and TONA when the schema has no parameter identifying an RFR or currency at all — only two dates and a day-count enum. That introduces a capability the input contract cannot express, which is more likely to mislead than to clarify.

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?

"Calculating accrual year fractions" is a specific verb+resource, and the parenthetical convention list pins down the domain precisely. It implicitly separates itself from the pricing/curve siblings by scoping to day counts and conventions, but it never names a sibling or states what it does not cover.

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?

"Use whenever..." gives a usable trigger condition for two scenarios, which is more than most definitions offer. However, there are no when-not conditions, no prerequisites, and no guidance on which sibling to reach for when the task drifts toward pricing or curve construction.

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.