Skip to main content
Glama

Dadras — Iranian law (دادرس)

Court deadlines (مهلت‌های دادرسی)

calculate_court_deadline
Read-onlyIdempotent

Compute the last day to appeal (تجدیدنظرخواهی), seek cassation (فرجام‌خواهی) or object to a default judgment (واخواهی) in an Iranian civil or criminal case, from the Jalali date the judgment was served, skipping Fridays and official holidays. Use it when the question is until when an objection can be filed; for the articles that set the periods use search_iranian_law. A third-party objection has no fixed deadline and the result explains why. Returns the deadline date, the period applied and its legal basis. 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": {
      "remedy": "<remedy>"
    },
    "name": "calculate_court_deadline"
  }
}

Input Schema

NameRequiredDescriptionDefault
matterNoCivil or criminal case; civil when not given. Values: civil = حقوقی; criminal = کیفری.
remedyYesThe objection to file. Values: appeal = تجدیدنظرخواهی; cassation = فرجام‌خواهی; objection = واخواهی از رأی غیابی; third_party = اعتراض ثالث.
judgmentNoFor appeal or cassation: whether the judgment was given in presence or by default; a default judgment's period runs from the end of the objection period. Values: presence = حضوری; absence = غیابی.
residenceNoWhere the objecting party lives; abroad lengthens the period. Inside Iran when not given. Values: inside = مقیم ایران; abroad = مقیم خارج از کشور.
served_dayNoDay of the month it was served.
served_yearNoJalali year the judgment was served, e.g. 1405.
served_monthNoJalali month it was served, 1 for فروردین.

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. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld=false, so the safety profile is covered; the description adds genuinely new behavior — that third-party objections have no fixed deadline and the result explains why, plus that holiday and Friday skipping is applied. It stops short of describing pagination or failure modes, but for a pure calculator that is minor.

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?

Dense but front-loaded: the purpose and the routing rule come first, edge cases and the return note last. One stray sentence ('Amounts in rial') is irrelevant to a tool with no monetary parameters and appears to be template carry-over.

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 7-parameter calculator with an output schema, the description supplies everything the schema cannot: calendar conventions, holiday skipping, the alternative tool, and the no-deadline third-party case. Nothing needed to invoke it correctly is missing.

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% with enums fully glossed in both English and Persian, so the schema carries the parameter semantics. The description adds the holiday-skipping rule and Jalali framing, but those are behavioral rather than per-parameter detail; baseline 3 is appropriate.

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 (compute) plus the exact resource (the last day to appeal, seek cassation or object to a default judgment) scoped to Iranian civil/criminal cases from the Jalali service date, skipping Fridays and holidays. An agent can separate this from siblings like calculate_court_fee or search_iranian_law 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?

Explicitly says when to use it ('when the question is until when an objection can be filed') and names the alternative for the adjacent need ('for the articles that set the periods use search_iranian_law'). It also pre-empts a foreseeable edge case: third-party objection has no fixed deadline.

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