Skip to main content
Glama

Check subcontractor payments against the workers-comp clearance date (Canada)

subcontractor_workers_comp
Read-onlyIdempotent

Subcontractor workers-comp clearance lapse check for general contractors and their agents (Canada: ON, BC, AB, SK, MB). Send the province and, per subcontractor payment, the date the subcontractor's clearance ran to (certificate_expiry) and the date the payment was released (payment_release), both YYYY-MM-DD. Get back per payment the days between the two (days_after_expiry: 0 or less means the payment was on or before the date; more than 0 means it went out that many days after), a summary of the batch, the province's official clearance page with a sentence quoted from it and the date we read it, and a signed record. Set check_source true to read that official page now and learn whether the quoted sentence is still on it. Answer fields: verdict, summary, payments (in your order), source, does_not, rule, observation, signature. Errors: ok false with a code (400 bad input, 413 too large, 429 hourly limit). Free. No model, nothing you send is stored, signed record. Up to 100 payments per call. Labels are your own text: emails, web addresses and long digit runs are refused; do not send names or account numbers. It does not check any certificate, does not say whether a payment was allowed or who is liable, and is not legal advice: the provincial board and your lawyer decide.

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": {
      "province": "<province>",
      "payments": "<payments>"
    },
    "name": "subcontractor_workers_comp"
  }
}

Input Schema

NameRequiredDescriptionDefault
paymentsYes
provinceYesProvince code: ON, BC, AB, SK or MB (the English province name is accepted too).
check_sourceNotrue: read the province's official page now and say whether the quoted sentence is still on it (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses cost ('Free'), privacy ('No model, nothing you send is stored, signed record'), input handling rules (emails, URLs and long digit runs refused; no names or account numbers), and concrete error codes with their meanings (400, 413, 429 hourly limit). That is the kind of operational detail annotations cannot express and is exactly what an agent needs before composing a call.

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 core is front-loaded well, but the body degenerates into a dense run-on that lists output field names, error codes, privacy claims and caveats in near-unpunctuated succession. Most sentences carry real information, yet the 'Answer fields' enumeration and the stacked negatives ('No model, nothing you send is stored') could be tightened considerably. Structure is present but the readability cost is noticeable.

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?

With no output schema and a nested array input, the description carries the full documentation burden and does so: it names the answer fields (verdict, summary, payments, source, does_not, rule, observation, signature), explains the sign convention of days_after_expiry, clarifies that payments come back in the caller's order, and documents the source-quote-and-read-date behavior. Error and limit behavior are also covered, leaving nothing an agent needs in order to invoke it correctly.

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?

With 67% schema coverage, the description reinforces the meaning of certificate_expiry (the date clearance ran to) and payment_release (the date payment went out) and spells out check_source as a live re-read of the official page with a default of false. It also adds a rule that is absent from the schema entirely: labels must be the caller's own text and cannot contain emails, URLs, long digit runs, names or account numbers. The only shortfall is that it does not explain the payments array constraint (1-100) beyond a passing 'up to 100 payments per call'.

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 description states a precise verb and resource: it compares a subcontractor payment's release date against that subcontractor's workers-comp clearance expiry, per province, in Canada. It even enumerates the supported provinces (ON, BC, AB, SK, MB) and the exact output of the comparison (days_after_expiry with its sign convention). No sibling in the catalog performs this check, so no differentiation burden is left unmet.

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 names the intended caller ('general contractors and their agents') and gives a clear operational context: up to 100 payments per call, batch semantics, and the optional check_source flag for live re-verification. It also bounds scope with an explicit 'does_not' clause (no certificate checking, no allowed/liable determination, not legal advice). It does not, however, contrast itself with any alternative approach or tell the agent when another tool would be the better choice.

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