Skip to main content
Glama

Medical card expiration

medical_card_expiration
Read-onlyIdempotent

Calculate DOT medical examiner certificate expiration from exam date and certificate period, then show days left and when to book the next exam 30 days before.

Instructions

Estimated expiry of a DOT medical examiner's certificate from the exam date and the period on the certificate, days left and when to book the next exam (30 days before). The date printed on the certificate is the one that counts.

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": {
      "exam_date": "<exam_date>"
    },
    "name": "medical_card_expiration"
  }
}

Input Schema

NameRequiredDescriptionDefault
todayNoCount days left from this date, YYYY-MM-DD. Default: today (UTC).
exam_dateYesExam date, YYYY-MM-DD, between 2020-01-01 and 2027-12-31.
certificate_monthsNoPeriod on the certificate in months: 24 (the maximum), 12, 6, 3 or 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description still adds value beyond them by characterising the result as an *estimate*, listing the concrete outputs (days left, booking window 30 days before), and warning that the printed certificate date governs. It does not explain edge behavior for out-of-range dates or timezone handling, but the bar is lower given annotation coverage.

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?

Two sentences, front-loaded with the computed outcome and then the outputs and booking rule, with no filler. The closing caveat about the printed date is short and load-bearing rather than redundant.

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 carries the burden of describing return content, and it does so by naming expiry, days left and the booking recommendation. Combined with a fully documented input schema and complete annotations, an agent has enough to call it correctly; only unusual-input behavior is left unspecified.

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%, so all three parameters already document their formats, allowed values and defaults. The description reinforces the role of exam date and certificate period and links them to days-left output, which is a mild addition rather than new semantics (it never mentions the 24-month default or the `today` override). Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource and computation: estimated expiry of a DOT medical examiner's certificate, derived from exam date plus certificate period, along with days left and the next booking date. That is far more than a restatement of the name. It does not, however, explicitly contrast itself with the sibling get_state_medical_card_rules, which an agent could plausibly confuse with a calculation tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The implied use case is clear (given an exam date, project the certificate's expiry and when to re-book), but there is no explicit when-to-use/when-not statement and no named alternative. A sentence such as 'use get_state_medical_card_rules for state-specific validity rules instead' would have moved this to a 4 or 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.