Skip to main content
Glama
irs-taxpayer-mcp

irs-taxpayer-mcp

by dma9527

lookup_tax_rule

Read-onlyIdempotent

Look up IRS tax rules, definitions, and common questions by topic to clarify filing, income, deduction, credit, stock option, and wash sale treatment.

Instructions

Look up IRS tax rules, definitions, and common questions. Covers filing rules, income types, deduction rules, credit eligibility, stock options, wash sales, and more.

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": {
      "topic": "<topic>"
    },
    "name": "lookup_tax_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicYesTax topic to look up (e.g., 'wash sale rule', 'ISO vs NSO', 'AOTC and LLC same year', 'gift tax', 'estimated tax penalty')

Output Schema

NameRequiredDescriptionDefault
textYes
errorNo
isErrorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.4
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changedv1.0.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "error": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "suggestion": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message",
      +        "suggestion"
      +      ],
      +      "type": "object"
      +    },
      +    "isError": {
      +      "type": "boolean"
      +    },
      +    "text": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "text",
      +    "isError"
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.5.3

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety and determinism profile is fully covered without description help. The description adds topical breadth, but nothing about the nature of the results (authoritative citation vs. general guidance, disclaimers, or limits of coverage) beyond what the annotations and output schema supply. Given annotation coverage, a 3 is appropriate.

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, with the core action front-loaded and the coverage list relegated to a follow-on clause. Every phrase contributes something (either the action or the domain scope); there is no filler or repetition. A slightly tighter phrasing of the coverage list would earn a 5.

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?

For a single-parameter, read-only lookup with an output schema and full annotations, the description is close to sufficient: the agent knows what it retrieves and roughly what topics are valid. The remaining gap is routing — with 40+ tax siblings including several list_-style knowledge tools, the definition does not tell the agent when the lookup is the right choice over those. That is a modest but real omission rather than a fatal one.

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?

There is a single required 'topic' parameter with 100% schema description coverage that already includes several concrete examples ('wash sale rule', 'ISO vs NSO', 'AOTC and LLC same year'). The description's list of covered domains loosely maps to acceptable topic values and hints at phrasing, but adds no format or syntax constraints beyond the schema. High schema coverage sets the baseline at 3.

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 and resource: 'Look up IRS tax rules, definitions, and common questions,' and enumerates covered areas (filing rules, income types, deduction rules, credit eligibility, stock options, wash sales). This clearly separates it from the many calculate_/estimate_/compare_ siblings, which produce numbers rather than explanations. It stops short of naming a specific sibling to use instead, so it falls just under a 5.

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?

Usage is implied by the word 'look up' and by 'definitions and common questions,' which suggests it is for explanatory/conceptual questions rather than computation. However, no explicit when-to-use or when-not-to-use direction is given against overlapping siblings such as list_deductions, list_tax_credits, get_irs_form_info, or get_tax_planning_tips. The agent must infer the boundary itself.

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