Skip to main content
Glama

LienDeadline

Calculate supplier notice and lien deadlines

calculate_supplier_deadlines
Read-onlyIdempotent

Calculates a construction material supplier's preliminary notice and lien filing deadlines from delivery events (contract supplier-events-v2). Use it whenever the user needs dates; use get_state_lien_guide to explain the rules behind them. Reviewed baselines cover Florida and Kansas private projects; other states and public projects return review_required, which is an answer, not an error. How the parameters depend on each other: last_delivery_date is required when deliveries_complete is true. Florida (FL) asks florida_final_payment_status and florida_termination_status; Kansas (KS) asks kansas_extension_status; these are rejected for other states. Answer each yes, no or unknown: an omitted or unknown answer keeps the affected deadline under review, and a blanket review flag is not accepted. A Florida event date is accepted only with the matching yes answer. Ask the user for missing facts instead of guessing, and never use an invoice date as a delivery date. Returns JSON with an overall status (calculated or review_required), preliminary_notice and lien_filing (each with its own status: calculated, not_required, review_required or awaiting_final_delivery, plus deadline, days_from_now, description and statute source_url), critical_warnings, statute_citations, an exact echo of the submitted inputs and a disclaimer. Invalid or contradictory facts return an error naming the field before any API call. Public, stateless and read-only: no key needed, nothing is stored, and no notice is sent or lien filed. Not legal advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYesTwo-letter code of the state where the project is located, e.g. "FL", "KS", "TX"; any state or DC is accepted. Decides which event questions apply.
hired_byYesWho ordered the materials from the supplier: the owner, a contractor or a subcontractor.
project_typeYesPrivate commercial, private residential, or public (public projects always need review).
last_delivery_dateNoDate of the final delivery, YYYY-MM-DD, not earlier than first_delivery_date. Required when deliveries_complete is true.
deliveries_completeYestrue when the final delivery has happened (then last_delivery_date is required); false while deliveries are ongoing, which returns awaiting_final_delivery for the lien date.
first_delivery_dateYesDate materials were first delivered (first furnishing), YYYY-MM-DD. Not an invoice date.
kansas_extension_statusNoKansas only: was a statutory lien-period extension filed and mailed? no permits the ordinary lien baseline; yes, unknown or omitted requires qualified review.
florida_termination_dateNoFlorida only: contract or notice-of-commencement termination date, YYYY-MM-DD, not earlier than first_delivery_date. Supply only with florida_termination_status=yes; a lien date still requires qualified review.
florida_final_payment_dateNoFlorida only: owner final-payment date, YYYY-MM-DD, not earlier than first_delivery_date. Supply only with florida_final_payment_status=yes.
florida_termination_statusNoFlorida only: was the original contract or notice of commencement terminated? no permits the lien baseline; yes, unknown or omitted requires qualified lien review.
florida_final_payment_statusNoFlorida only: did the owner make final payment to the contractor? Use unknown if unverified; omitted or unknown keeps the notice under review, and yes needs florida_final_payment_date for a notice baseline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial context beyond them: stateless with no key required, nothing stored, no notice sent or lien filed, review_required semantics for uncovered states, 'blanket review flag is not accepted', and pre-flight validation that errors name the field before any API call. This is well beyond what the annotations provide.

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 the purpose and the sibling routing rule, and every sentence carries content. It is dense and long for a single paragraph, and a few parameter-dependency sentences duplicate schema descriptions, but there is little pure padding.

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?

There is no output schema, so the description compensates by describing the return JSON in detail (overall status, per-deadline statuses, critical_warnings, statute_citations, echoed inputs, disclaimer). For an 11-parameter, state-conditional tool, an agent has everything needed to call and interpret it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so per-field meanings are already documented, but the description adds cross-parameter dependencies the schema states only in isolation: last_delivery_date required when deliveries_complete is true, which states accept which conditional questions, that FL/KS-only params are rejected for other states, and a Florida event date being accepted only with the matching 'yes' answer. It stops short of restating individual field formats, which the schema already handles.

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 precise verb and resource ('Calculates a construction material supplier's preliminary notice and lien filing deadlines') and scopes the input to delivery events. It explicitly distinguishes itself from the sibling get_state_lien_guide, so an agent can tell the two apart without opening a 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?

Gives an explicit routing rule: 'Use it whenever the user needs dates; use get_state_lien_guide to explain the rules behind them.' It also sets expectations for unsupported jurisdictions ('other states and public projects return review_required, which is an answer, not an error') and instructs the agent to ask for missing facts rather than guess.

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.