Skip to main content
Glama

Dadras — Iranian law (دادرس)

Court fees (هزینهٔ دادرسی)

calculate_court_fee
Read-onlyIdempotent

Compute the court fee (هزینهٔ دادرسی) to file a claim or an appeal in Iran: tiered by the claim's value for a financial claim, a fixed amount for a non-financial claim or a request such as تأمین خواسته, from the Budget Act and the Judiciary's circular. Use it when the question is what filing will cost; for a lawyer's fee use calculate_lawyer_fee, and for the power-of-attorney stamp calculate_stamp_duty. Returns the fee in rial with its breakdown and source; a fixed fee whose figure is not yet verified says so. Amounts in rial; dates in the Jalali calendar.

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": {
      "claim_kind": "<claim_kind>"
    },
    "name": "calculate_court_fee"
  }
}

Input Schema

NameRequiredDescriptionDefault
stageNoStage, for a financial claim; first when not given. Values: first = مرحله بدوی; appeal = واخواهی و تجدیدنظرخواهی; supreme = فرجام‌خواهی، اعاده دادرسی و اعتراض ثالث.
claim_kindYesFinancial claim or non-financial claim/request. Values: financial = دعوای مالی; non-financial = دعوای غیرمالی و درخواست‌ها.
amount_rialNoFor a financial claim: the claim's value at first instance, the judgment sum at later stages, in rial.
fixed_fee_rialNoA fixed fee in rial to use instead of the table's (family matters pay less); normally left out.
non_financial_kindNoFor a non-financial claim or request: which one. Values: non-financial-first = دعاوی غیرمالی — مرحله بدوی; non-financial-objection = دعاوی غیرمالی — واخواهی; non-financial-appeal = دعاوی غیرمالی — تجدیدنظر; non-financial-retrial = دعاوی غیرمالی — اعاده دادرسی و اعتراض ثالث; family-first = دعاوی غیرمالی خانواده (حضانت، ملاقات، تمکین و مانند آن) — مرحله بدوی; family-objection = دعاوی غیرمالی خانواده (حضانت، ملاقات، تمکین و مانند آن) — واخواهی; family-appeal = دعاوی غیرمالی خانواده (حضانت، ملاقات، تمکین و مانند آن) — تجدیدنظر; family-retrial = دعاوی غیرمالی خانواده (حضانت، ملاقات، تمکین و مانند آن) — اعاده دادرسی و اعتراض ثالث; family-interim = تأمین خواسته یا دستور موقت در امور خانواده — مرحله بدوی; marriage-first = طلاق، نکاح، فسخ نکاح و نسب — مرحله بدوی; marriage-objection = طلاق، نکاح، فسخ نکاح و نسب — واخواهی; marriage-appeal = طلاق، نکاح، فسخ نکاح و نسب — تجدیدنظر; marriage-cassation = طلاق، نکاح، فسخ نکاح و نسب — فرجام‌خواهی; marriage-retrial = طلاق، نکاح، فسخ نکاح و نسب — اعاده دادرسی و اعتراض ثالث; hasbi-first = امور حسبی — مرحله بدوی; hasbi-objection = امور حسبی — واخواهی; hasbi-appeal = امور حسبی — تجدیدنظر; hasbi-cassation = امور حسبی — فرجام‌خواهی; hasbi-retrial = امور حسبی — اعاده دادرسی و اعتراض ثالث; civil-status-first = دعاوی اسناد سجلی — مرحله بدوی; civil-status-objection = دعاوی اسناد سجلی — واخواهی; civil-status-appeal = دعاوی اسناد سجلی — تجدیدنظر; civil-status-retrial = دعاوی اسناد سجلی — اعاده دادرسی و اعتراض ثالث; non-judicial-first = اعتراض به رأی مراجع غیرقضایی — مرحله بدوی; non-judicial-objection = اعتراض به رأی مراجع غیرقضایی — واخواهی; non-judicial-appeal = اعتراض به رأی مراجع غیرقضایی — تجدیدنظر; non-judicial-retrial = اعتراض به رأی مراجع غیرقضایی — اعاده دادرسی و اعتراض ثالث; evidence-preservation = درخواست تأمین دلیل; claim-security = درخواست تأمین خواسته; interim-order = درخواست دستور موقت; request-appeal = تأمین خواسته یا دستور موقت — تجدیدنظر; unvalued-claim = خواستهٔ مالی که هنگام تقدیم تقویم نشده (علی‌الحساب); provisional-enforcement = درخواست اجرای موقت حکم; order-appeal = اعتراض یا تجدیدنظر از قرار (دادگاه و دیوان عالی کشور); enforcement-third-party = اعتراض شخص ثالث به اجرای احکام مدنی.

Output Schema

NameRequiredDescriptionDefault
textYesThe result, in Persian, as it should be quoted.
linksYesThe dadrasai.com pages the result cites, in order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / non_financial_kind / description
      Previous value: -"For a non-financial claim or request: which one. Values: non-financial-first = دعاوی غیرمالی — مرحله بدوی; non-financial-appeal = دعاوی غیرمالی — تجدیدنظر; evidence-preservation = درخواست تأمین دلیل; claim-security = درخواست تأمین خواسته."New value: +"For a non-financial claim or request: which one. Values: non-financial-first = دعاوی غیرمالی — مرحله بدوی; non-financial-objection = دعاوی غیرمالی — واخواهی; non-financial-appeal = دعاوی غیرمالی — تجدیدنظر; non-financial-retrial = دعاوی غیرمالی — اعاده دادرسی و اعتراض ثالث; family-first = دعاوی غیرمالی خانواده (حضانت، ملاقات، تمکین و مانند آن) — مرحله بدوی; family-objection = دعاوی غیرمالی خانواده (حضانت، ملاقات، تمکین و مانند آن) — واخواهی; family-appeal = دعاوی غیرمالی خانواده (حضانت، ملاقات، تمکین و مانند آن) — تجدیدنظر; family-retrial = دعاوی غیرمالی خانواده (حضانت، ملاقات، تمکین و مانند آن) — اعاده دادرسی و اعتراض ثالث; family-interim = تأمین خواسته یا دستور موقت در امور خانواده — مرحله بدوی; marriage-first = طلاق، نکاح، فسخ نکاح و نسب — مرحله بدوی; marriage-objection = طلاق، نکاح، فسخ نکاح و نسب — واخواهی; marriage-appeal = طلاق، نکاح، فسخ نکاح و نسب — تجدیدنظر; marriage-cassation = طلاق، نکاح، فسخ نکاح و نسب — فرجام‌خواهی; marriage-retrial = طلاق، نکاح، فسخ نکاح و نسب — اعاده دادرسی و اعتراض ثالث; hasbi-first = امور حسبی — مرحله بدوی; hasbi-objection = امور حسبی — واخواهی; hasbi-appeal = امور حسبی — تجدیدنظر; hasbi-cassation = امور حسبی — فرجام‌خواهی; hasbi-retrial = امور حسبی — اعاده دادرسی و اعتراض ثالث; civil-status-first = دعاوی اسناد سجلی — مرحله بدوی; civil-status-objection = دعاوی اسناد سجلی — واخواهی; civil-status-appeal = دعاوی اسناد سجلی — تجدیدنظر; civil-status-retrial = دعاوی اسناد سجلی — اعاده دادرسی و اعتراض ثالث; non-judicial-first = اعتراض به رأی مراجع غیرقضایی — مرحله بدوی; non-judicial-objection = اعتراض به رأی مراجع غیرقضایی — واخواهی; non-judicial-appeal = اعتراض به رأی مراجع غیرقضایی — تجدیدنظر; non-judicial-retrial = اعتراض به رأی مراجع غیرقضایی — اعاده دادرسی و اعتراض ثالث; evidence-preservation = درخواست تأمین دلیل; claim-security = درخواست تأمین خواسته; interim-order = درخواست دستور موقت; request-appeal = تأمین خواسته یا دستور موقت — تجدیدنظر; unvalued-claim = خواستهٔ مالی که هنگام تقدیم تقویم نشده (علی‌الحساب); provisional-enforcement = درخواست اجرای موقت حکم; order-appeal = اعتراض یا تجدیدنظر از قرار (دادگاه و دیوان عالی کشور); enforcement-third-party = اعتراض شخص ثالث به اجرای احکام مدنی."
    • changedInput schema / properties / non_financial_kind / enum
      Previous value: -[
      -  "non-financial-first",
      -  "non-financial-appeal",
      -  "evidence-preservation",
      -  "claim-security"
      -]New value: +[
      +  "non-financial-first",
      +  "non-financial-objection",
      +  "non-financial-appeal",
      +  "non-financial-retrial",
      +  "family-first",
      +  "family-objection",
      +  "family-appeal",
      +  "family-retrial",
      +  "family-interim",
      +  "marriage-first",
      +  "marriage-objection",
      +  "marriage-appeal",
      +  "marriage-cassation",
      +  "marriage-retrial",
      +  "hasbi-first",
      +  "hasbi-objection",
      +  "hasbi-appeal",
      +  "hasbi-cassation",
      +  "hasbi-retrial",
      +  "civil-status-first",
      +  "civil-status-objection",
      +  "civil-status-appeal",
      +  "civil-status-retrial",
      +  "non-judicial-first",
      +  "non-judicial-objection",
      +  "non-judicial-appeal",
      +  "non-judicial-retrial",
      +  "evidence-preservation",
      +  "claim-security",
      +  "interim-order",
      +  "request-appeal",
      +  "unvalued-claim",
      +  "provisional-enforcement",
      +  "order-appeal",
      +  "enforcement-third-party"
      +]
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already carry the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the bar is lower, yet the description still adds real behavioral context: output is a fee in rial with a breakdown and source, and an unverified fixed-fee figure self-reports as unverified. Unit conventions (rial, Jalali dates) are also stated. The only gap is that it does not discuss the underlying legal source's coverage limits beyond the one data-quality caveat.

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?

Three sentences, front-loaded with purpose, then routing, then output/unit conventions. Every clause carries information an agent would otherwise have to guess; no filler or restatement of the tool name.

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?

With an output schema present, the description need not enumerate return fields, and it correctly stops at noting the rial/breakdown/source shape plus the unverified-figure caveat. Purpose, routing, units, calendar, and data-quality caveat are all covered for a 5-parameter, enum-heavy calculator.

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 100% and the schema already documents all five parameters with detailed enum glosses, including '(family matters pay less)' for fixed_fee_rial. The description's 'tiered by the claim's value' vs 'a fixed amount' framing adds a small conceptual layer but no parameter detail the schema lacks, so baseline 3 applies.

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 and resource ('Compute the court fee (هزینهٔ دادرسی) to file a claim or an appeal in Iran') and immediately scopes the calculation logic: tiered for financial claims, fixed for non-financial claims or requests like تأمین خواسته. It also names the sibling tools it is not (calculate_lawyer_fee, calculate_stamp_duty), so the agent can differentiate without opening any schema.

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?

Explicit routing: 'Use it when the question is what filing will cost; for a lawyer's fee use calculate_lawyer_fee, and for the power-of-attorney stamp calculate_stamp_duty.' Both the trigger condition and the two nearest alternatives are named, leaving nothing to inference.

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