Skip to main content
Glama

Physical presence test (330 days)

physical_presence_window
Read-only

Finds the 12-month window with the most full days abroad for a tax year, says whether it reaches 330, and prorates the foreign earned income exclusion. Dates are YYYY-MM-DD. 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": {
      "moved_abroad": "<moved_abroad>",
      "tax_year": "<tax_year>"
    },
    "name": "physical_presence_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
tripsNo
tax_yearYes
moved_backNo
moved_abroadYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/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 the safety profile is covered without the prose. The description adds genuine value by disclosing the three things the tool returns (best window, whether it clears 330, prorated exclusion) and the accepted date format. It omits any note on how incomplete trip data affects the window search or what the response shape looks like.

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 short sentences, front-loaded with the core computation and its threshold, then the format constraint, then the disclaimer. Nothing is padded and no sentence repeats the schema or the title.

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, and the description does compensate by naming the three returned values in prose, which is the right call. However, for a tool with a nested trips array capped at 60 entries, the semantics of moved_abroad versus moved_back and the effect of omitting trips are never explained, leaving real gaps for a computation whose correctness depends on complete input.

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

Parameters4/5

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

The description explicitly states the date format as YYYY-MM-DD, which is meaningful because the schema only constrains date-like strings by maxLength with no pattern or format hint. This is one of the few pieces of parameter meaning the prose genuinely supplies beyond the schema.

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 names a specific computation (the 12-month window with the most full days abroad), the threshold test (330 days), and the derived output (prorated foreign earned income exclusion). That is far more than a restatement of the name. It stops short of distinguishing itself from the sibling feie_prorate, which appears to touch the same proration output, so an agent cannot route between them from this text alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Planning aid, not tax advice" is a liability caveat, not usage guidance. There is no statement of when this tool is the right choice versus feie_prorate or the other tax-check siblings, no prerequisite about needing complete trip history, and no note on what to do when the trip list is partial.

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