Skip to main content
Glama

Read a tax regulation

tx_regulation_text
Read-onlyIdempotent

Fetch the full text of an Iranian tax law, regulation, ruling, opinion, or correspondence, or just one article, by ID from search. Includes PDF link and paged long texts.

Instructions

Return the full text of one tax law, circular, ruling or opinion, or just one article of it.

Includes the PDF link. Long texts come in parts: if parts > 1 call again with part=2, 3... For one article of a big law pass article.

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": {
      "id": "<id>",
      "type": "<type>"
    },
    "name": "tx_regulation_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId from tx_regulations_search (txs5000060480 = VAT law, txs5000060569 = direct tax law).
partNoPart number for long texts; see `parts`.
typeYesType from tx_regulations_search.
articleNoHeading to read only that part, e.g. 'ماده 2', 'ماده 169 مکرر'. Empty = whole document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.2
    • changedInput schema / properties / article / description
      Previous value: -"Optional heading to read only that part, e.g. 'ماده 2', 'ماده 169 مکرر', 'فصل سوم'. Empty = whole document."New value: +"Heading to read only that part, e.g. 'ماده 2', 'ماده 169 مکرر'. Empty = whole document."
    • changedInput schema / properties / id / description
      Previous value: -"Document id from tx_regulations_search, e.g. txs5000060480 (VAT law) or txs5000060569 (direct tax law)."New value: +"Id from tx_regulations_search (txs5000060480 = VAT law, txs5000060569 = direct tax law)."
    • changedInput schema / properties / part / description
      Previous value: -"Part number for long texts (6000 characters each); see `parts`."New value: +"Part number for long texts; see `parts`."
    • changedInput schema / properties / type / description
      Previous value: -"Document type, as returned by tx_regulations_search."New value: +"Type from tx_regulations_search."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive behavior, and the description adds genuinely new context: the response includes a PDF link, long texts are split into numbered parts, and article-level reads are possible. It does not quantify rate limits or truncation, but the pagination contract is the key operational detail and it is disclosed.

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 short paragraphs, front-loaded with the main action, then the pagination and article caveats. Minor waste in the redundant restatement that a returned document may come in parts, but nothing extraneous enough to impede reading.

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 the burden of describing returns and does so: full text, PDF link, and part-based segmentation. Combined with a fully documented schema and complete annotations, an agent has everything needed to invoke it correctly, with only edge cases like invalid article headings unaddressed.

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?

Schema coverage is 100%, so baseline is 3; the description goes further by explaining the interaction between `part`, the implied `parts` count, and `article` as a heading selector for large laws. That operational meaning is not fully derivable from the schema alone.

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 ('Return the full text') and resource ('one tax law, circular, ruling or opinion, or just one article of it'), and distinguishes whole-document retrieval from article-level retrieval. It does not explicitly contrast itself with tx_regulations_search in prose, leaving that routing to the schema's parameter descriptions.

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?

Gives concrete follow-up instructions: re-call with part=2, 3... when `parts` > 1, and pass `article` to read a single heading of a large law. It lacks an explicit 'use this only after tx_regulations_search to resolve an id' exclusion, but the workflow is clear enough to act on.

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