Skip to main content
Glama

recalc_contract_deadlines

DestructiveIdempotent

One-time backfill (admin only): close the open MACHINE-CREATED deadlines — both derived (from term/notice) and the ones created by AI extraction on import (evidence starts with [Extraktion]) — of contracts that are already expired, terminated or archived. These are the older rows that predate the automatic close on status change, so a long-passed deadline no longer surfaces as open. Reads the whole inactive-contract inventory page by page; deadlines a user entered by hand are never touched; safe to run again. Returns inactive_contracts_checked, contracts_touched and deadlines_closed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "recalc_contract_deadlines"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses what is actually mutated (only machine-created deadlines, both term/notice-derived and AI-extracted ones marked [Extraktion]), what is protected (user-entered deadlines never touched), that it scans the whole inactive inventory page by page, and that reruns are safe. This is exactly the context an agent needs before invoking a destructive backfill.

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?

The critical qualifiers - one-time, admin only, machine-created only - are front-loaded, and nearly every clause carries new information. The single long sentence is dense and requires careful reading, which slightly hurts scannability.

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 zero-parameter mutation with no output schema, the description covers trigger, scope, safety guarantees, side effects, return payload, and rerun behavior. Nothing material is left for the agent to guess.

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?

The tool takes zero parameters, so the baseline is 4 and there is nothing for the description to disambiguate. It instead documents the return values (inactive_contracts_checked, contracts_touched, deadlines_closed), which compensates for the missing output schema.

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 gives a specific verb and scope ('one-time backfill ... close the open MACHINE-CREATED deadlines') plus the precise population (contracts already expired, terminated or archived), which distinguishes it from siblings like list_contract_deadlines or resolve_contract_deadline without the agent needing to open any 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 clearly states the triggering context - a one-time repair of older rows that predate automatic close on status change - and the admin-only precondition. It stops short of naming an alternative tool or explicitly saying when not to run it, but the timing guidance is 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.