Skip to main content
Glama

contract_deadlines_to_todos

Destructive

Turn deadlines that are inside their lead time into todos, one per deadline, and never twice (the deadline remembers its todo). Optional: user_id (whose list, defaults to the caller), due_within_days (default: each deadline's own lead time), contract_id. Returns what was created and what already had a todo.

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": "contract_deadlines_to_todos"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idNoID of the user
contract_idNoID of the contract
due_within_daysNoOnly deadlines due within this many days (default: each deadline's own lead time)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / contract_id / description
      Added value: +"ID of the contract"
    • addedInput schema / properties / due_within_days / description
      Added value: +"Only deadlines due within this many days (default: each deadline's own lead time)"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false; the description adds real context by disclosing the side effect on deadlines ('the deadline remembers its todo'), the one-todo-per-deadline cardinality, and dedupe behavior on re-run. The per-deadline 'never twice' claim sits in mild tension with idempotentHint=false, but is reconcilable since new deadlines can enter their lead time between calls, so this is a nuance rather than a contradiction.

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 action and its de-duplication guarantee are front-loaded, and the optional parameters and return summary follow in a compact block with no filler. The parenthetical about the deadline remembering its todo is dense but earns its place; the sentence is a bit run-on.

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 a 3-parameter mutation tool with no output schema, the description covers the trigger condition, the write side effects, the return summary, and the defaults. What is left unstated is permission requirements for writing into another user's todo list, which is a modest gap given destructiveHint=true.

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 3 is the baseline, but the description adds meaning the schema does not: user_id is specified as 'whose list, defaults to the caller', and due_within_days is framed as overriding each deadline's own lead time. That resolves the practical question of what happens when these optional parameters are omitted.

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 names a specific verb and resource pair: converting contract deadlines into todos, one per deadline. Scope and cardinality are explicit, which cleanly separates it from list_contract_deadlines (read) and add_contract_deadline (create the deadline itself) in the sibling set.

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 states the qualifying condition for action (deadlines inside their lead time) and explains that already-converted deadlines are skipped, which tells an agent when the tool will and won't do work. It stops short of naming alternatives such as listing or recalculating deadlines first, so there is no explicit when-to-use-this-instead guidance.

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.