Skip to main content
Glama

set_contract_deadline_mail

DestructiveIdempotent

Configure a deadline-reminder mail PER CONTRACT TYPE: a template (subject, body) with a recipient list and how many days ahead to remind. preview_contract_deadline_mails then shows the due reminders (draft-first; nothing is sent automatically). Required: contract_type. Optional (a passed field replaces, an omitted one keeps): subject, body (both support placeholders {{vertrag}} {{gegenpartei}} {{vertragsart}} {{stichtag}} {{art}} {{titel}} {{tage}}), recipients (array or comma list), lead_days (0-365, default 30), active (default true).

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": {
      "contract_type": "<contract_type>"
    },
    "name": "set_contract_deadline_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoBody text
activeNoWhether the entry is active
subjectNoSubject line
lead_daysNoDays before the deadline to remind, 0-365 (default 30)
recipientsNoRecipient e-mail addresses of the reminder
contract_typeYesContract type this reminder template applies to, e.g. rental

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / active / description
      Added value: +"Whether the entry is active"
    • addedInput schema / properties / body / description
      Added value: +"Body text"
    • addedInput schema / properties / contract_type / description
      Added value: +"Contract type this reminder template applies to, e.g. rental"
    • addedInput schema / properties / lead_days / description
      Added value: +"Days before the deadline to remind, 0-365 (default 30)"
    • addedInput schema / properties / recipients / description
      Added value: +"Recipient e-mail addresses of the reminder"
    • addedInput schema / properties / subject / description
      Added value: +"Subject line"
  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=true; the description adds real context by explaining merge semantics ('a passed field replaces, an omitted one keeps') and the draft-first, no-auto-send behavior, which meaningfully qualifies the destructive flag. Missing are permission/auth expectations and whether an unknown contract_type creates a new entry.

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 core concept and scope, then constraints, then parameters in priority order. Dense but efficient; the long inline placeholder list is the only mildly cluttering element.

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 mutating upsert tool with no output schema, the description covers required/optional parameters, defaults, replacement semantics, placeholders, and the follow-up preview call. It stops short of stating return/confirmation behavior or how to deactivate versus remove a template.

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 already 100%, so a 3 is the baseline; the description earns more by documenting the placeholder tokens ({{vertrag}}, {{gegenpartei}}, etc.) and noting that recipients accepts a comma list as well as an array, which the schema does not convey.

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 specific verb and resource ('Configure a deadline-reminder mail PER CONTRACT TYPE') and enumerates the configuration surface (template, recipients, lead days). The leading 'PER CONTRACT TYPE' immediately distinguishes it from the deadline-instance siblings like set_deadline or add_contract_deadline.

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?

Explicitly points to preview_contract_deadline_mails as the verification step and reassures that reminders are draft-first and not auto-sent. It doesn't spell out when to use set_deadline/add_contract_deadline instead, so the exclusion half of the guidance is absent.

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.