Skip to main content
Glama

چیستارا — Iranian Legal Corpus

نرخ‌های رسمی سالانه — Look up official yearly rates

lookup_annual_rate

Fetch official Iranian yearly rates from the database: minimum wage (min_wage), court filing fees (court_fee_*), salary tax exemption (salary_tax_exemption_annual), Central Bank price index for delay damages (cbi_price_index), bar-association lawyer tariffs (lawyer_tariff_*), daily severance (sanavat_daily). ALWAYS use this instead of recalling a rate — yearly figures are exactly what models misremember. For دیه use calculate_diyeh instead. Read each row's unit field: «rials» means Rial and «درصد» means percent — never report a percentage as a Rial amount.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rate_typeYesRate key, e.g. min_wage, court_fee_financial_first, cbi_price_index, lawyer_tariff_nonfinancial.
year_jalaliNoPersian year (optional — defaults to the latest available).

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden. It discloses that the tool returns rows with a `unit` field, warns about the rials vs. percent distinction, and emphasizes reading `unit` to avoid misreporting. This is meaningful behavioral context beyond a simple fetch, though it doesn't detail pagination or error cases.

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?

The description is dense but well-structured: it opens with the core action, lists examples, gives usage directives, and ends with a critical warning. No sentence is wasted, though the enumeration of keys could arguably be trimmed since the schema already shows examples. Overall it earns its length.

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

Completeness5/5

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

For a simple lookup tool with two params and no output schema, the description is complete. It specifies what data is available, how to use it, when to prefer it, and how to interpret the results (unit field). The mention of the `unit` field provides enough return-value context for correct invocation.

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% with descriptions for both parameters, but the description adds richer semantics by listing many valid rate_type examples (min_wage, court_fee_financial_first, cbi_price_index, lawyer_tariff_nonfinancial) and the pattern court_fee_*/lawyer_tariff_*. It clarifies the yearly nature of the data, complementing the schema without redundancy.

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 clearly states the verb and resource: 'Fetch official Iranian yearly rates from the database' and enumerates specific rate types (min_wage, court_fee_*, etc.). It also distinguishes from siblings by explicitly redirecting دیه to calculate_diyeh, making the tool's scope unambiguous.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance: 'ALWAYS use this instead of recalling a rate — yearly figures are exactly what models misremember.' It also names an alternative for a specific case: 'For دیه use calculate_diyeh instead.' This is clear and actionable.

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