Skip to main content
Glama
rulecalc-mcp

rulecalc-mcp

Get one 2026 tax or compliance rule with its authority

get_tax_rule
Read-only

Retrieve a 2026 tax, payroll, or compliance rule by ID, country code, topic, or keyword to get its values, legal authority, and linked calculator.

Instructions

Look up a single 2026 rule by id (e.g. us-estimated-tax-safe-harbor-2026), ISO country code (US), topic (payroll) or free-text keyword (etsy, minijob, ksef). Returns the values, the legal authority it follows and the rulecalc.io calculator that implements it.

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": {
      "query": "<query>"
    },
    "name": "get_tax_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rules to return.
queryYesRule id, country code, topic, or keyword.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds the non-obvious fact that results include the legal authority and the linked rulecalc.io calculator, which matters for downstream decisions. The one soft spot is the word "single," which sits awkwardly against a limit parameter that defaults to 5 and allows 20, leaving the cardinality of the response slightly ambiguous.

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 tight sentences with the lookup modes and the return contents front-loaded; the parenthetical examples (etsy, minijob, ksef) are concretely useful rather than filler. Minor deduction for "single" creating ambiguity against the multi-result `limit` parameter, an imprecision that costs a clause of clarity.

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?

With no output schema, the description carries return-value burden and does so reasonably - it names the three payload components (values, legal authority, implementing calculator). Inputs are covered at the query level, but the interaction between the id/keyword query modes and the `limit` parameter, and whether searches are exact or partial, is left unresolved.

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?

Schema coverage is 100%, so baseline is 3, and the description does earn some credit by spelling out the four interpretive modes of `query` (id, ISO country code, topic, free-text keyword) with format examples the schema lacks. It says nothing about `limit` or match behavior (exact vs. fuzzy), so it does not fully compensate for what an agent needs to know about result-set control.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Look up a single 2026 rule") and enumerates the accepted lookup keys with concrete examples (us-estimated-tax-safe-harbor-2026, US, payroll, etsy/minijob/ksef). It also states what comes back (values, legal authority, implementing calculator), which clearly separates it from the calculate_* siblings that apply rules rather than retrieve them.

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

Usage Guidelines4/5

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

Usage context is clear: this is the retrieval path when you already have an id, country, topic or keyword and need the rule's substance and authority. It gives no explicit exclusion or hand-off, however - it never says to use list_supported_rules to discover ids or calculate_* to apply the returned rule, so the agent must infer the boundary from sibling names.

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