Skip to main content
Glama

چیستارا — Iranian Legal Corpus

محاسبهٔ مهریه به نرخ روز — Calculate mahrieh at today's value

calculate_mahrieh

Calculate the present-day value of a مهریه: coins at the live market rate, and any cash portion adjusted by the Central Bank index (تبصرهٔ مادهٔ ۱۰۸۲ قانون مدنی). Never guess coin prices or the adjustment index — this tool reads both from the database. If there is a cash portion, ask for marriage_year; without it the cash stays nominal and must not be called «ارزش روز».

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinsNoNumber of coins in the مهریه.
coin_typeNoCoin type (default azadi = تمام بهار آزادی).
cash_tomanNoCash portion in Toman (optional).
marriage_yearNoJalali marriage year (needed to adjust the cash portion to today's value).

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool reads coin prices and the adjustment index from the database instead of guessing, and explains the conditional behavior around marriage_year. It does not mention side effects or output format, but these are less critical for a read-only calculation tool.

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?

Two sentences, front-loaded with the core purpose, and every clause adds critical information. The description is concise without being under-specified.

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?

Given the tool's complexity (4 parameters, no output schema, no annotations), the description covers the essential behavior: data sources, conditional parameter usage, and a labeling warning. It does not describe the return format, but that is not explicitly required given the absence of an output schema.

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 adds value by explaining the relationship between cash_toman and marriage_year (needed to adjust to today's value) and clarifies that the cash portion stays nominal without it. This goes beyond the simple schema descriptions.

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 identifies the tool as calculating the present-day value of a مهریه, specifying both coin and cash components. It distinguishes itself from sibling calculate_* tools by referencing the live market rate and the Central Bank index, making the purpose unambiguous.

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 description provides actionable guidance: it instructs to ask for marriage_year when there is a cash portion and warns against calling nominal cash 'ارزش روز'. However, it does not explicitly name alternatives or state when not to use this tool in favor of another sibling, so it lacks explicit exclusions.

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