Skip to main content
Glama

Prorate the foreign earned income exclusion

feie_prorate
Read-only

Maximum foreign earned income exclusion for 2024 to 2026 from qualifying days, using the IRS formula limit × days ÷ days in the year. Planning aid, not tax 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": {
      "tax_year": "<tax_year>",
      "qualifying_days": "<qualifying_days>"
    },
    "name": "feie_prorate"
  }
}

Input Schema

NameRequiredDescriptionDefault
tax_yearYes
qualifying_daysYes
foreign_earned_incomeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds genuine value by disclosing the exact IRS proration formula and the 2024–2026 year bound, but says nothing about what the result looks like (a dollar maximum?) or how the optional income input affects the computation. With annotations doing the safety work, this is adequate but not rich.

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?

Two short sentences, formula and year range front-loaded, with the disclaimer last. No filler and nothing an agent must read past to find the core behavior.

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?

There is no output schema, so the description should say at least roughly what comes back (a maximum exclusion dollar figure), and it doesn't. Combined with the unexplained optional income parameter, an agent can call the tool but cannot predict its response shape. The formula and year constraints keep it from being inadequate.

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 description coverage is 0%, so the description carries the full burden. It explains qualifying_days and tax_year implicitly through the formula and the stated year range, but the third parameter, foreign_earned_income, is never mentioned — an agent cannot tell whether it is the amount to cap, a filter, or ignored. Two of three parameters get only indirect coverage, leaving a material gap.

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?

Names a specific verb (prorate) and a specific resource (foreign earned income exclusion), and even states the formula limit × days ÷ days in the year plus the supported year range 2024–2026. It does not explicitly differentiate itself from any sibling, but none of the listed siblings appear to overlap, so the remaining gap is minor.

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?

The description implies the use case (partial-year qualifying days, planning rather than filing) and adds a 'planning aid, not tax advice' caveat, but it never says when to reach for this versus another tool or what happens outside the 2024–2026 window. 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