Skip to main content
Glama

Count a deadline from a rule

count_deadline
Read-onlyIdempotent

Counts a deadline from a date the user gives, under a rule whose text GLO holds, and returns every counting step beside that text. Counted: K.S.A. 60-206 (Kansas civil procedure; days supplied, forward or backward, three days added after service by mail or by leaving it with the clerk) and K.A.R. 44-15-101b (KDOC grievances: 15 days from discovery excluding Saturdays, Sundays and holidays, never later than one year after the event), Fed. R. Civ. P. 6 and Fed. R. App. P. 26 (federal civil and appellate time, days supplied, with the three days 6(d) and 26(c) add) and 28 U.S.C. 2107(a) (thirty days after entry), and Social Security appeals: ssa-404 (SSDI, 20 CFR Part 404) and ssa-416 (SSI, Part 416), stage reconsideration, hearing, appeals_council or court, start_date the date on the notice: received 5 days later unless shown later (received_date), then 60 days; and one rule per state (days supplied, no service days added), each named by its id in the rule argument’s list, with its citation in that argument’s text. Where the text reads more than one way, each reading gets its own date; earliest is the date safe under every reading. Not counted: periods in hours. The Kansas Supreme Court’s holiday orders are held for 2025 to 2027 only, counted for K.S.A. 60-206 as one reading beside a reading without them; other orders, days declared by order, and a state’s appointed days and court closures are not held. Returns status, readings (id, label, date, steps), earliest, latest, warnings (each applies to the date given), the rule row (citation, verbatim text, corpus, as_of, source_url, ambiguities, exceptions, last_verified), detail, query and a note. Pure computation; no database query. Counting is information, not legal advice. The describe_sources tool returns this tool’s full coverage statement.

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": {
      "rule": "<rule>",
      "start_date": "<start_date>"
    },
    "name": "count_deadline"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoks-60-206, frcp-6, frap-26, ca-ccp-12, ny-gcl-25-a, il-5-70-1-11, tx-trcp-4, fl-rgpja-2-514, oh-civr-6, wa-cr-6, va-code-1-210, tn-trcp-6-01, in-tr-6, ma-mrcp-6, mi-mcr-1-108, nj-r-1-3-1, pa-1-pacs-1908, mo-rsmo-506-060, co-crs-2-4-108, mn-stat-645-15, az-ars-1-243, or-ors-174-120, ky-krs-446-030, al-code-1-1-4, md-gp-1-302, nc-rcp-6, la-ccp-5059, wi-stat-801-15, nv-nrcp-6, ut-urcp-6, ia-code-4-1-34, ok-12-2006, id-ircp-2-2, ne-25-2221, wv-rcp-6, hi-hrcp-6, nm-1-006, ms-mrcp-6, ar-rcp-6, mt-rcp-6, me-mrcp-6, nh-super-2, ri-super-6, de-super-6, sd-15-6-6a, nd-rcivp-6, ak-civ-6, wy-rcp-6, sc-rcp-6, dc-super-civ-6 and vt-vrcp-6: the period in days, 1 to 3650, from the rule or order that sets it (usc-28-2107-a: omit, or 30)
ruleYesthe rule: "ks-60-206" (K.S.A. 60-206), "kar-44-15-101b" (K.A.R. 44-15-101b), "frcp-6" (Fed. R. Civ. P. 6), "frap-26" (Fed. R. App. P. 26), "usc-28-2107-a" (28 U.S.C. 2107(a), thirty days after entry), "ssa-404" (a Social Security disability/SSDI appeal, 20 CFR Part 404), "ssa-416" (an SSI appeal, 20 CFR Part 416), "ca-ccp-12" (California, Code Civ. Proc. 12, 12a, 12c), "ny-gcl-25-a" (New York, Gen. Constr. Law 20, 25-a), "il-5-70-1-11" (Illinois, 5 ILCS 70/1.11), "tx-trcp-4" (Texas, Tex. R. Civ. P. 4) or "fl-rgpja-2-514" (Florida, Fla. R. Gen. Prac. & Jud. Admin. 2.514), "oh-civr-6" (Ohio, Civ.R. 6), "wa-cr-6" (Washington, CR 6), "va-code-1-210" (Virginia, Va. Code 1-210), "tn-trcp-6-01" (Tennessee, Tenn. R. Civ. P. 6.01), "in-tr-6" (Indiana, Ind. Trial Rule 6(A)), "ma-mrcp-6" (Massachusetts, Mass. R. Civ. P. 6(a)), "mi-mcr-1-108" (Michigan, MCR 1.108), "nj-r-1-3-1" (New Jersey, N.J. Ct. R. 1:3-1), "pa-1-pacs-1908" (Pennsylvania, 1 Pa.C.S. 1908), "mo-rsmo-506-060" (Missouri, Mo. Rev. Stat. 506.060), "co-crs-2-4-108" (Colorado, C.R.S. 2-4-108), "mn-stat-645-15" (Minnesota, Minn. Stat. 645.15), "az-ars-1-243" (Arizona, A.R.S. 1-243), "or-ors-174-120" (Oregon, ORS 174.120), "ky-krs-446-030" (Kentucky, KRS 446.030), "al-code-1-1-4" (Alabama, Ala. Code 1-1-4), "md-gp-1-302" (Maryland, Md. Code, Gen. Prov. 1-302), "nc-rcp-6" (North Carolina, N.C. R. Civ. P. 6(a)), "la-ccp-5059" (Louisiana, La. Code Civ. Proc. art. 5059), "wi-stat-801-15" (Wisconsin, Wis. Stat. 801.15(1)), "nv-nrcp-6" (Nevada, Nev. R. Civ. P. 6(a)), "ut-urcp-6" (Utah, Utah R. Civ. P. 6(a)), "ia-code-4-1-34" (Iowa, Iowa Code 4.1(34)), "ok-12-2006" (Oklahoma, 12 O.S. 2006(A)(1)), "id-ircp-2-2" (Idaho, Idaho R. Civ. P. 2.2(a)), "ne-25-2221" (Nebraska, Neb. Rev. Stat. 25-2221), "wv-rcp-6" (West Virginia, W. Va. R. Civ. P. 6(a)), "hi-hrcp-6" (Hawaii, Haw. R. Civ. P. 6(a)), "nm-1-006" (New Mexico, Rule 1-006(A) NMRA), "ms-mrcp-6" (Mississippi, Miss. R. Civ. P. 6(a)), "ar-rcp-6" (Arkansas, Ark. R. Civ. P. 6(a)), "mt-rcp-6" (Montana, Mont. R. Civ. P. 6(a)), "me-mrcp-6" (Maine, Me. R. Civ. P. 6(a)), "nh-super-2" (New Hampshire, N.H. Super. Ct. R. 2), "ri-super-6" (Rhode Island, R.I. Super. Ct. R. Civ. P. 6(a)), "de-super-6" (Delaware, Del. Super. Ct. Civ. R. 6(a)), "sd-15-6-6a" (South Dakota, SDCL 15-6-6(a)), "nd-rcivp-6" (North Dakota, N.D.R.Civ.P. 6(a)), "ak-civ-6" (Alaska, Alaska R. Civ. P. 6(a)), "wy-rcp-6" (Wyoming, W.R.C.P. 6(a)), "sc-rcp-6" (South Carolina, SCRCP 6(a)), "dc-super-civ-6" (the District of Columbia, D.C. Super. Ct. Civ. R. 6(a)), "vt-vrcp-6" (Vermont, V.R.C.P. 6(a))
stageNossa-404 and ssa-416 only, required: the level of appeal being asked for (the notice’s own level is the one before it)
serviceNoks-60-206, frcp-6 and frap-26: how the paper was served. ks-60-206: "mail" and "clerk" add three days; frcp-6: those and "other" (two readings: consented to in writing or not); frap-26: all but "electronic" and "personal"; the forty-eight state and District of Columbia rules add none
directionNoks-60-206, frcp-6, frap-26 and the forty-eight state and District of Columbia rules: "after" (default) or "before" the start date
event_dateNokar-44-15-101b only, required: YYYY-MM-DD, the day of the event itself (the one-year limit)
start_dateYesYYYY-MM-DD: for ks-60-206, frcp-6, frap-26 and the forty-eight state and District of Columbia rules the day the period runs from (or the event it counts back from); for kar-44-15-101b the day the event was discovered; for usc-28-2107-a the day of entry; for ssa-404 and ssa-416 the date printed on the notice
received_dateNossa-404 and ssa-416 only, optional: YYYY-MM-DD, a day the person can show the notice reached them; if later than 5 days after the notice date it is counted as a second start point beside the presumption

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, closed-world), it discloses that ambiguous text yields multiple readings with 'earliest is the date safe under every reading,' that warnings attach to a specific date, that holiday orders are held only for 2025-2027 and court closures are not held, and that results are information rather than legal advice. That is meaningful behavioral context; the only shortfall is that error and partial-coverage behavior is only gestured at.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first sentence, but the body is a single sprawling multi-clause run-on that packs six rule families and a returns inventory into one breath, making it hard to scan. It is information-dense rather than padded, but the structure costs the reader.

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?

For an 8-parameter, 56-rule computation tool with no output schema, the description does the necessary work: it enumerates the return fields (status, readings, earliest, latest, warnings, rule row, detail, query, note) and discloses data-coverage limits. The remaining gap is minor, since parameter-level conditionality is fully carried by the schema.

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 spells out per-rule conditionality (stage required for ssa-404/ssa-416, event_date for kar-44-15-101b, service only for ks-60-206/frcp-6/frap-26). The description restates the same rule-specific wiring ('days supplied, forward or backward,' 'one rule per state') rather than adding meaning beyond it, so the 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?

The opening clause gives a specific verb and object: it counts a deadline from a user-supplied date under a named rule, and returns the counting steps beside the rule text. It explicitly separates itself from the rest of the catalog with 'Pure computation; no database query,' so an agent can tell it apart from search/get siblings without opening the schema.

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?

It defines the scope of what is answerable (K.S.A. 60-206, K.A.R. 44-15-101b, FRCP 6, FRAP 26, 28 U.S.C. 2107(a), SSA 404/416, and one rule per state), states an explicit exclusion ('Not counted: periods in hours'), and routes to describe_sources for the full coverage statement. What it lacks is a direct statement of when to prefer it over another sibling, but no sibling appears to compute deadlines.

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