Skip to main content
Glama

preview_contract_deadline_mails

Read-only

Draft-first: for every active deadline-mail template, find the OPEN contract deadlines due within its lead_days (0-30 days before the date) for contracts of that type, render subject/body with the placeholders, and return the reminders that would go out — WITHOUT sending. Review them and send via the normal mail path.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, and the description reinforces this rather than contradicting it by stating emphatically that nothing is sent. It also discloses real behavior the annotations cannot convey: the lead_days window of 0-30 days, the OPEN-only filter, per-template type matching, and placeholder rendering. The remaining gap is the shape of what is returned, which matters because there is no output schema.

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 description is one sentence, and the key qualifier 'WITHOUT sending' is front-loaded via 'Draft-first' and emphasized at the end. It is dense and slightly run-on with multiple embedded clauses, but every clause carries selection or behavior information.

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?

With no parameters, no output schema, and a purely read-only profile, the description covers the algorithm, the filter conditions, and the no-side-effect guarantee. The only shortfall is that it does not sketch the returned reminder entries (subject/body plus deadline fields), which an agent would need to know to act on the review step.

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. The description still clarifies the implicit inputs it draws on (active templates, their lead_days, contract types) so an agent understands the selection logic even though it supplies no arguments.

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 concrete verb chain (find, render, return) over a specific resource (OPEN contract deadlines matched to active deadline-mail templates) and pins the essential scope: it is a dry run that does not send. Reading it alone, an agent can separate it from set_contract_deadline_mail (configures templates) and list_contract_deadline_mails (lists mails) without opening 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 gives a clear placement in the workflow: run this first, review the output, then send via the normal mail path. The 'Draft-first' framing implies when to choose it over real sending. What is missing is any explicit exclusion, such as when to skip it (e.g., if no templates are active) or which sibling to use for the actual send.

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.