Skip to main content
Glama

چیستارا — Iranian Legal Corpus

محاسبهٔ خسارت تأخیر تأدیه — Calculate late-payment damages

calculate_delay_penalty
Read-onlyIdempotent

Calculate خسارت تأخیر تأدیه under art. 522 ق.آ.د.م and unification ruling 850: (CBI index of the payment MONTH ÷ index of the due MONTH) × principal, from the Central Bank's official monthly table. When that table is not loaded the tool answers with the limitation and the official link instead of a number — never approximate it. Dates are Jalali.

Input Schema

NameRequiredDescriptionDefault
end_yearYesJalali year of calculation/payment.
end_monthNoJalali end month 1–12 (optional).
principalYesPrincipal debt amount.
start_yearYesJalali year the debt fell due.
start_monthNoJalali due month 1–12 (needed: ruling 850 reads that month's index).
principal_unitNoUnit of the principal (default Toman).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / start_month / description
      Previous value: -"Jalali start month 1–12 (optional)."New value: +"Jalali due month 1–12 (needed: ruling 850 reads that month's index)."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the bar is lower, yet the description adds substantial context: the data source (Central Bank official monthly table), the exact computation, the graceful-degradation behavior when data is missing, and the Jalali date convention.

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 sentences, front-loaded with the operation and legal basis, then the formula and fallback rule. Dense but every element earns its place; only the mixing of Persian/English legal terms adds minor parsing overhead.

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 need to convey return behavior: it says a number is returned when the table is loaded and a limitation message plus link otherwise. It stops short of specifying the result's unit or precision, a minor gap for a six-parameter calculator.

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, but the description adds meaning the schema does not: it ties the month parameters to the formula (index of payment month ÷ index of due month) and explains why start_month matters (ruling 850 reads that month's index). The Jalali note reinforces the schema's date semantics.

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?

States a specific verb (calculate) and resource (late-payment damages / خسارت تأخیر تأدیه), names the governing legal basis (art. 522 ق.آ.د.م, ruling 850), and gives the exact formula used. This clearly separates it from the sibling calculators (diyeh, mahrieh, arbitration fee, etc.).

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 tells the agent what to do when the CBI table is unavailable (return the limitation plus the official link, never approximate), which is genuine invocation guidance. It does not, however, explicitly state when to prefer this tool over sibling calculators or what conditions make it inapplicable.

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.

Resources