Skip to main content
Glama

Search tax activity codes

tx_activity_codes
Read-onlyIdempotent

Look up Iranian tax activity codes by Persian title or numeric code and retrieve VAT status plus official profit ratios, helping accountants verify activity classifications and assessments.

Instructions

Find tax activity codes (کد فعالیت / اینتاکد) with their VAT status and official profit ratios.

Rows carry vat_status, profit_ratio and gross_profit_to_sales_ratio (%, for presumptive assessments; not tax rates). total counts all matches.

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_activity_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoJalali tax year; default latest.
limitNo
queryYesPersian activity title (e.g. 'نرم افزار') or an activity code (digits).
commercialNoTrue = تجاری, False = غیرتجاری (no 'both').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.2
    • changedInput schema / properties / commercial / description
      Previous value: -"True: commercial activities (تجاری). False: non-commercial ones (غیرتجاری). The site has no 'both'."New value: +"True = تجاری, False = غیرتجاری (no 'both')."
    • removedInput schema / properties / limit / description
      Removed value: -"Max rows (1-20)."
    • changedInput schema / properties / query / description
      Previous value: -"Part of the activity title in Persian (e.g. 'نرم افزار', 'گندم'), or an activity code (digits)."New value: +"Persian activity title (e.g. 'نرم افزار') or an activity code (digits)."
    • changedInput schema / properties / year / description
      Previous value: -"Tax year (Jalali), e.g. 1404. Default: the latest year offered."New value: +"Jalali tax year; default latest."
  2. First observedv0.1.0

TDQS

A3.5/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, and non-destructive behavior, so the description does not need to carry the safety profile. It adds valuable semantic context by naming the returned fields and clarifying that profit ratios are percentages for presumptive assessments, not tax rates.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loads the core lookup purpose, and then explains returned fields compactly. Every clause earns its place, including the useful clarification that ratios are not tax rates.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has four parameters, no output schema, and rich annotations, so the description does well to explain return fields and the meaning of total. However, it omits parameter usage details and any guidance on when this lookup is preferable to sibling tools.

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 75%, and the schema itself documents query, year, and commercial, while limit is constrained by default and min/max. The description adds no additional parameter meaning, so baseline credit is appropriate rather than a higher score.

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 states a specific verb and resource: finding tax activity codes, with Persian aliases that aid recognition. It does not explicitly distinguish this lookup from sibling search tools such as goods or regulations, so it stops short of 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 Guidelines2/5

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

There is no explicit when-to-use guidance, no exclusions, and no comparison to sibling search tools. A reader can infer that this is a lookup tool, but nothing tells them when to choose it over tx_goods_search or tx_regulations_search.

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