Skip to main content
Glama

After-tax and after-inflation yield

after_tax_yield
Read-only

Calculate what an interest rate really earns after federal tax, NIIT, state tax and inflation. Defaults match the Valudati case study: 37% federal, 3.8% NIIT, 13.3% California, 3.74% inflation (CPI-U, Nov 2026). Set state_exempt for Treasuries. Education only, not advice.

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": {
      "rate_pct": "<rate_pct>"
    },
    "name": "after_tax_yield"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoOptional balance in USD to show dollar figures
niit_pctNoNet investment income tax; use 0 if it does not apply
rate_pctYesPre-tax interest rate in percent, e.g. 4.29
state_pctNo
federal_pctNo
state_exemptNoTrue for US Treasury interest
inflation_pctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a safe, closed-world read operation, so the bar is lower, and the description still adds real context: the provenance and exact values of the defaults (CPI-U, Nov 2026) and the educational-use disclaimer. It stops short of describing the shape of the results, e.g. whether nominal after-tax and real yield are both returned.

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

Conciseness5/5

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

Three tight sentences: what it computes, what the defaults are and where they come from, then a specific param tip and a disclaimer. The core purpose is front-loaded and nothing is redundant.

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 seven parameters, no output schema, and a moderate coverage gap, the description does most of the needed work by pinning down defaults and the Treasury exception. The remaining gap is that, absent an output schema, it never tells the agent what the calculation returns.

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 57%, and the description repeats the default values (37% federal, 3.8% NIIT, 13.3% state, 3.74% inflation) that already exist as schema defaults. It adds the useful rationale that these mirror a case study, but leaves the undocumented state_pct, federal_pct, and inflation_pct without semantic clarification beyond their names.

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 opens with a specific verb and resource ('Calculate what an interest rate really earns') and enumerates exactly which deductions it applies: federal tax, NIIT, state tax, and inflation. That is precise enough to separate it from siblings like fee_drag, which concerns a different quantity.

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 gives conditional parameter guidance ('Set state_exempt for Treasuries') and states the defaults match a named case study, which implies the typical use case. However, it never says when to prefer this tool over an alternative, nor when it is inappropriate beyond the boilerplate 'Education only, not advice'.

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