Skip to main content
Glama

Compliance Calculate Built In Gain Sourcing

compliance_calculate_built_in_gain_sourcing
Read-onlyIdempotent

Calculates U.S. versus Puerto Rico sourcing of capital gains under the 10-year residency rule from gain, marketability, and holding-period inputs. Use for built-in gain tax compliance.

Instructions

Calculate US vs PR capital gain sourcing under Treas. Reg. § 1.937-2(f) (10-year rule).

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": {
      "is_marketable": "<is_marketable>",
      "total_gain": "<total_gain>"
    },
    "name": "compliance_calculate_built_in_gain_sourcing"
  }
}

Input Schema

NameRequiredDescriptionDefault
total_gainYes
is_marketableYes
adjusted_basisNo
total_days_heldNo
days_held_as_residentNo
fmv_on_residency_dateNo
years_since_residencyNo

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 this read-only, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds the regulatory basis of the computation, which is useful domain context, but says nothing about how the optional holding-period and FMV inputs change the result or what the calculation assumes when they are omitted.

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 front-loaded sentence with no filler; the regulatory citation does real work. It is efficient but borders on under-specified for a seven-parameter calculation, and a brief second clause on inputs or output would have cost nothing.

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 explained, but the tool is a multi-input tax computation with zero parameter documentation and no usage boundaries. For this complexity, a single sentence leaves the agent guessing about required combinations and input formats.

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

Parameters1/5

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

Schema description coverage is 0% across seven parameters, so the description must carry the burden and it does not mention a single input. Nothing explains what 'is_marketable', 'adjusted_basis', 'days_held_as_resident', 'fmv_on_residency_date' or 'years_since_residency' should contain or how they affect sourcing.

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 gives a specific verb ('Calculate') and a specific resource ('US vs PR capital gain sourcing') anchored to Treas. Reg. § 1.937-2(f), which is far more precise than the name alone. It implicitly separates itself from the residency-evaluation siblings by being a gain-sourcing computation, though it never names an alternative explicitly.

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 '(10-year rule)' parenthetical hints at the applicable scenario, implying the tool is for long-term residents determining source of gain. There is no explicit when-to-use vs when-not-to-use guidance and no stated prerequisites, such as whether all seven inputs must be supplied or how marketable vs non-marketable assets differ.

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