Skip to main content
Glama

چیستارا — Iranian Legal Corpus

محاسبهٔ مالیات — Calculate Iranian taxes

calculate_tax

Calculate Iranian salary, property-transfer, inheritance or rental tax. For inheritance: rates depend on asset kind and heir class (arts. 17–18 ق.م.م) with NO general monetary exemption, and pre/post-1395 death dates differ — ask before calling. Property basis is ارزش معاملاتی, not market price.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tax_typeYesTax type.
asset_kindNoAsset kind (required for inheritance).
heir_classNoHeir class (inheritance, art. 18): 1=parents/spouse/children, 2=grandparents/siblings ×2 rate, 3=aunts/uncles ×4 rate.
value_tomanNoProperty value (property_transfer) or taxable asset value (inheritance).
monthly_tomanNoMonthly salary (for salary).
no_other_incomeNoRental: individual landlord with no other income (art. 57 exemption).
monthly_rent_tomanNoMonthly rent (for rental).
residential_under_exempt_areaNoRental: residential unit within the exempt floor-area (150m² Tehran / 200m² elsewhere).

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description must carry the safety and behavior burden. It discloses important nuances: inheritance rates depend on asset kind and heir class, no general exemption, pre/post-1395 date differences, and property basis. This adds significant context beyond a simple calculation, but it does not cover behavioral specifics for salary or rental taxes.

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-loaded with the main purpose, then concise caveats. No filler or redundancy, every sentence earns its place.

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 an 8-parameter tool with no output schema, the description covers key edge cases (inheritance exemptions, date changes, property basis) but does not explain return values or salary/rental calculation nuances. However, the comprehensive schema fills most gaps, making this adequately complete overall.

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 the schema already documents all 8 parameters. The description adds some semantic value by clarifying the property basis (value_toman) and inheritance dependency on asset_kind/heir_class, but this is marginal given the baseline of 3 for high coverage.

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 clearly states it calculates four Iranian tax types with a specific verb-resource pair ('Calculate Iranian salary, property-transfer, inheritance or rental tax'). However, it does not differentiate from the sibling tool 'calculate_inheritance', which overlaps with the inheritance tax scope, so it misses the 5-level distinction.

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?

It provides clear context on when to use the tool and special handling: 'ask before calling' for inheritance and property basis being 'valore ma'ati', not market price. But it does not explicitly mention alternatives or exclusions with sibling tools, so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a specific legal calculation, lookup, or search source. The calculate_* tools each cover a distinct statutory computation (e.g., delay penalty vs. diyeh vs. mahrieh), the lookup_* tools are for direct retrieval of known items, and the search_* tools are split by source type (law, case law, opinions, circulars). While lookup_annual_rate and search_circular both touch rates, their descriptions clearly separate direct database retrieval from full-text search, so misselection is unlikely.

Naming Consistency5/5

All tools follow a consistent verb_noun snake_case pattern: calculate_* for computations, lookup_* for direct retrieval, and search_* for full-text search. There are no camelCase or mixed-style names, making the set highly predictable.

Tool Count4/5

Nineteen tools is slightly above the typical well-scoped range of 3-15, but the server covers a large legal domain with many distinct calculation types and research sources. Each tool earns its place given the breadth of Iranian law, though the number may feel a bit heavy.

Completeness5/5

The toolset covers statutory calculations (10), specific-article lookup and procedural lookups (5), and full-text search across laws, case law, advisory opinions, and circulars (4). This spans the essential needs of Iranian legal research—computing amounts, finding article text, checking deadlines/sentences/limitations, and finding authoritative interpretations—with no obvious dead ends.

Resources