Skip to main content
Glama

Compliance Evaluate Pr Bona Fide Residency

compliance_evaluate_pr_bona_fide_residency
Read-onlyIdempotent

Evaluate Puerto Rico bona fide residency under IRC § 937 and 26 CFR § 1.937-1, and determine if IRS Form 8898 filing is required when residency changes and gross income exceeds $75,000.

Instructions

Evaluate statutory criteria for PR bona fide residency under IRC § 937 and 26 CFR § 1.937-1. Its reporting_requirements say when IRS Form 8898 must be filed: in the tax year you became or stopped being a bona fide PR resident, if your worldwide gross income is more than $75,000 (IRS Instructions for Form 8898).

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": {
      "days_present_pr": "<days_present_pr>",
      "days_present_us": "<days_present_us>"
    },
    "name": "compliance_evaluate_pr_bona_fide_residency"
  }
}

Input Schema

NameRequiredDescriptionDefault
tax_yearNo
days_present_prYes
days_present_usYes
has_us_tax_homeNo
prior_year_1_pr_daysNo
prior_year_2_pr_daysNo
closer_connection_jurisdictionNoPR

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds the statutory framework being applied and signals that the result includes a reporting_requirements field tied to the $75,000 worldwide gross income threshold for Form 8898. It does not disclose how the closer-connection or prior-year tests are weighed, or what happens when inputs are incomplete.

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?

Two sentences, front-loaded with the legal basis and then the reporting consequence; no filler. The second sentence is somewhat tangential to invocation but does contribute output context, so it still earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, but a seven-parameter statutory multi-factor test with zero parameter documentation leaves the agent guessing at input semantics. Key facts an agent needs — how prior-year days interact with the current-year counts, and the role of the closer-connection jurisdiction — are absent entirely.

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% across 7 parameters, so the description carries the full explanatory burden and largely fails it. It never explains days_present_pr vs days_present_us, has_us_tax_home, prior_year_1_pr_days, prior_year_2_pr_days, or closer_connection_jurisdiction (whose 'PR' default materially affects the outcome). The only numeric threshold it mentions ($75,000 gross income) is not even a parameter.

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?

States a specific verb and resource: evaluate statutory criteria for PR bona fide residency, and cites the governing authorities (IRC § 937, 26 CFR § 1.937-1). That level of statutory specificity makes it easy to tell apart from compliance_evaluate_georgia_residency and compliance_evaluate_state_residency without opening a schema. It stops short of explicitly naming those siblings, so it lands at 4 rather than 5.

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?

There is no guidance on when to call this versus the Georgia or state residency evaluators, no exclusions, and no prerequisites (e.g., whether prior-year data is required for a valid determination). The second sentence discusses Form 8898 filing, which is a result of the evaluation rather than a condition for invoking it. Usage is only inferable from the statutory framing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.