Skip to main content
Glama

calculate_deadline

Read-only

Calculate a court deadline from cited rules (weekends, court holidays, service extensions and local rules applied). Returns the date, each counting step, the verbatim rule text and source for every rule used, any safe-date disclosure and any fixed statutory dates. Ask the user for the trigger date and how the paper was served; do not assume them. Show the user the citation and source link with every date or rule. Results are not legal advice. Coverage: Deadlines: California in depth (civil, family, probate, eviction, small claims, government claims, criminal, juvenile, appeals, agencies, pre-suit clocks, special proceedings, statutes of limitations; local rules for all 58 counties), federal civil and criminal, federal bankruptcy, and a partial Texas set. Other states’ deadlines are not covered. Court directory: every U.S. county.

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": {
      "state": "<state>",
      "deadline_type": "<deadline_type>",
      "trigger_date": "<trigger_date>"
    },
    "name": "calculate_deadline"
  }
}

Input Schema

NameRequiredDescriptionDefault
courtNoCourt id for local rules: cacd, cand, casd, caed, ca9, cacb, canb, casb, caeb, or 1dca to 6dca (CA-APP)
stateYesRule set id: TX, CA, CA-FAM, CA-APP, US, US-BK, US-CRIM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-AGENCY, CA-PRESUIT, CA-SPECIAL, CA-SOL
countyNoCalifornia county slug, to use that superior court's local rules and closures
trigger_dateYesTrigger date as YYYY-MM-DD (e.g. date of service or date judgment signed)
deadline_typeYesRule id from search_rules or list_deadline_rules, e.g. "noticed_motion_opposition"
service_methodNoHow the triggering paper was served, e.g. "mail" (TX), "mail_in_state", "electronic", "substituted" (CA). Omit for personal service.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / deadline_type / description
      Previous value: -"Deadline id from list_deadline_rules, e.g. \"answer_district_county\""New value: +"Rule id from search_rules or list_deadline_rules, e.g. \"noticed_motion_opposition\""
    • changedInput schema / properties / service_method / description
      Previous value: -"How the triggering paper or summons was served, e.g. \"mail\" (TX), \"mail_in_state\", \"electronic\", \"substituted\" (CA). Omit for personal service."New value: +"How the triggering paper was served, e.g. \"mail\" (TX), \"mail_in_state\", \"electronic\", \"substituted\" (CA). Omit for personal service."
    • changedInput schema / properties / state / description
      Previous value: -"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-PRESUIT, CA-AGENCY, CA-SPECIAL, CA-APP, CA-SOL, US, US-CRIM, or US-BK"New value: +"Rule set id: TX, CA, CA-FAM, CA-APP, US, US-BK, US-CRIM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-AGENCY, CA-PRESUIT, CA-SPECIAL, CA-SOL"
  2. Changed1 schema field changed
    • changedInput schema / properties / state / description
      Previous value: -"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-PRESUIT, CA-AGENCY, CA-SPECIAL, CA-APP, CA-SOL, US, or US-BK"New value: +"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-PRESUIT, CA-AGENCY, CA-SPECIAL, CA-APP, CA-SOL, US, US-CRIM, or US-BK"
  3. Changed1 schema field changed
    • changedInput schema / properties / state / description
      Previous value: -"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-PRESUIT, CA-AGENCY, CA-SPECIAL, CA-APP, US, or US-BK"New value: +"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-PRESUIT, CA-AGENCY, CA-SPECIAL, CA-APP, CA-SOL, US, or US-BK"
  4. Changed1 schema field changed
    • changedInput schema / properties / state / description
      Previous value: -"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-PRESUIT, CA-AGENCY, CA-APP, US, or US-BK"New value: +"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-PRESUIT, CA-AGENCY, CA-SPECIAL, CA-APP, US, or US-BK"
  5. Changed1 schema field changed
    • changedInput schema / properties / state / description
      Previous value: -"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-APP, US, or US-BK"New value: +"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-PRESUIT, CA-AGENCY, CA-APP, US, or US-BK"
  6. Changed1 schema field changed
    • changedInput schema / properties / state / description
      Previous value: -"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-APP, US, or US-BK"New value: +"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-JUV, CA-APP, US, or US-BK"
  7. Changed2 schema fields changed
    • changedInput schema / properties / court / description
      Previous value: -"California federal court id (cacd, cand, casd, caed, cacb, canb, casb, caeb), to use its local rules"New value: +"Court id for local rules: cacd, cand, casd, caed, ca9, cacb, canb, casb, caeb, or 1dca to 6dca (CA-APP)"
    • changedInput schema / properties / state / description
      Previous value: -"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-APP, US, or US-BK"New value: +"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-CRIM, CA-APP, US, or US-BK"
  8. Changed3 schema fields changed
    • addedInput schema / properties / county
      Added value: +{
      +  "description": "California county slug, to use that superior court's local rules and closures",
      +  "type": "string"
      +}
    • addedInput schema / properties / court
      Added value: +{
      +  "description": "California federal court id (cacd, cand, casd, caed, cacb, canb, casb, caeb), to use its local rules",
      +  "type": "string"
      +}
    • changedInput schema / properties / state / description
      Previous value: -"Rule-set id: TX, CA, CA-FAM, CA-APP, US, or US-BK"New value: +"Rule-set id: TX, CA, CA-FAM, CA-PROB, CA-UD, CA-SC, CA-GOV, CA-APP, US, or US-BK"
  9. Changed1 schema field changed
    • changedInput schema / properties / state / description
      Previous value: -"2-letter state code, e.g. \"TX\" or \"CA\""New value: +"Rule-set id: TX, CA, CA-FAM, CA-APP, US, or US-BK"
  10. Changed2 schema fields changed
    • changedInput schema / properties / service_method / description
      Previous value: -"\"mail\" if the triggering paper was served by mail; otherwise omit"New value: +"How the triggering paper or summons was served, e.g. \"mail\" (TX), \"mail_in_state\", \"electronic\", \"substituted\" (CA). Omit for personal service."
    • changedInput schema / properties / state / description
      Previous value: -"2-letter state code, e.g. \"TX\""New value: +"2-letter state code, e.g. \"TX\" or \"CA\""
  11. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is given; the description still adds real value by describing the return payload in detail and imposing obligations (cite source with every date, disclose safe-date results, disclaim legal advice). What it does not cover is failure behavior, e.g. what happens for an unsupported state/deadline_type or an unparseable trigger date.

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?

Front-loaded with purpose and return shape before obligations and coverage. The long coverage string is dense but does real work for scoping; a couple of clauses (e.g. the exhaustive list of California subject areas) could be compressed without loss.

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 6-parameter calculation tool with no output schema, the description supplies the missing return contract, the citation/legal-advice obligations, the service-method caveat, and explicit jurisdictional coverage limits. An agent has everything needed to decide whether to call it and how to present the result.

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 each parameter documented including the omission rule that service_method defaults to personal service, so the schema already carries the semantics. The description reinforces the importance of trigger_date and service_method by telling the agent not to assume them, but adds no syntax or format detail beyond the schema. 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 ('Calculate a court deadline from cited rules') and immediately names the mechanics it applies (weekends, court holidays, service extensions, local rules), which separates it from parameter-preparation siblings like search_rules and list_deadline_rules. It also enumerates exactly what comes back (date, counting steps, verbatim rule text and source, safe-date disclosure, fixed statutory dates).

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?

Gives concrete operating instructions: ask the user for the trigger date and how the paper was served, and do not assume them. It also sets scope boundaries by stating that other states' deadlines are not covered, and court directory coverage separately. It stops short of explicitly naming sibling tools to call first (search_rules or list_deadline_rules to obtain the rule id), which would have made routing unambiguous.

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