Skip to main content
Glama

Search tax regulations

tx_regulations_search
Read-onlyIdempotent

Search official Iranian tax laws, circulars, rulings, and opinions by Persian keyword or circular number to find authoritative tax references; filter by document type and view newest results first.

Instructions

Search the official tax regulation database (laws, circulars, rulings, opinions), newest first.

Items have id and type (pass both to tx_regulation_text), title, number, issuer, Jalali date and status (معتبر = in force).

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": "tx_regulations_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo20 per page.
typeNolaw=قوانین, regulation=مقررات/بخشنامه/آیین نامه, ruling=آرا, opinion=نظریه, correspondence=مکاتبات, glossary=واژگان.all
queryYesPersian words (e.g. 'مالیات حقوق') or a circular number like '200/1405/59'.
title_onlyNoMatch title/number only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.2
    • changedInput schema / properties / page / description
      Previous value: -"Result page, 20 per page, newest first."New value: +"20 per page."
    • changedInput schema / properties / query / description
      Previous value: -"Words in Persian, e.g. 'ماده 169 مکرر', 'مالیات حقوق', 'سفته بازی', or a circular number like '200/1405/59'."New value: +"Persian words (e.g. 'مالیات حقوق') or a circular number like '200/1405/59'."
    • changedInput schema / properties / title_only / description
      Previous value: -"Match the title (and number) only, not the full text."New value: +"Match title/number only."
    • changedInput schema / properties / type / description
      Previous value: -"law = قوانین, regulation = مقررات/بخشنامه/دستورالعمل/آیین نامه, ruling = آرای دیوان و هیئت ها, opinion = نظریه ها, correspondence = مکاتبات, glossary = واژگان."New value: +"law=قوانین, regulation=مقررات/بخشنامه/آیین نامه, ruling=آرا, opinion=نظریه, correspondence=مکاتبات, glossary=واژگان."
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real context beyond them: results are ordered newest first, each item carries id, type, title, number, issuer, Jalali date and status, and 'معتبر = in force' is glossed so the agent can interpret status values.

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 sentences with the scope and ordering front-loaded and no filler. The second line is telegraphic and slightly dense, but every clause carries information an agent needs.

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 does the work of describing the result shape (id, type, title, number, issuer, Jalali date, status) and its ordering, which is enough to act on. Minor gaps remain on pagination/total-count behavior, but the page parameter's '20 per page' note in the schema partly covers that.

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 description coverage is 100%, with the type enum, Persian query examples and title_only behavior all documented in the schema itself. The description adds only the cross-tool note that id and type must both be passed onward, which is useful but does not deepen parameter meaning beyond the schema.

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 first sentence gives a specific verb (Search), a specific resource (official tax regulation database) with the document classes it covers, plus result ordering ('newest first'). It also separates this tool from tx_regulation_text by framing that tool as the follow-up fetch step, though it does not differentiate against the other search siblings.

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?

The parenthetical '(pass both to tx_regulation_text)' gives a concrete workflow: search here, then fetch full text there with the returned id+type pair. That is clear when-to-use context, but there is no explicit exclusion or condition telling the agent when another search tool (e.g. faq or goods search) is the better choice.

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