Skip to main content
Glama

set_dunning_level

DestructiveIdempotent

Configure dunning level 1 or 2 — admins only. Required: level. Optional: days_after, pay_within_days, fee_cents, subject, body.

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": {
      "level": "<level>"
    },
    "name": "set_dunning_level"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoBody text
levelYesDunning level to configure (1 or 2)
subjectNoSubject line
fee_centsNoDunning fee in cents
days_afterNoDays before this level is due: level 1 after the invoice due date, level 2 after the level-1 deadline
pay_within_daysNoNew payment deadline in days stated in the reminder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / body / description
      Added value: +"Body text"
    • addedInput schema / properties / days_after / description
      Added value: +"Days before this level is due: level 1 after the invoice due date, level 2 after the level-1 deadline"
    • addedInput schema / properties / fee_cents / description
      Added value: +"Dunning fee in cents"
    • addedInput schema / properties / level / description
      Added value: +"Dunning level to configure (1 or 2)"
    • addedInput schema / properties / pay_within_days / description
      Added value: +"New payment deadline in days stated in the reminder"
    • addedInput schema / properties / subject / description
      Added value: +"Subject line"
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is known. The description adds the admin-only authorization requirement, which is genuinely new information, but it never explains what is destructive — e.g. whether existing level settings are overwritten or whether reminders are re-scheduled.

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?

Two tight sentences with the scope and the authorization constraint front-loaded before the parameter list. The parameter enumeration is largely redundant with a fully-described schema, which costs it a perfect score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive six-parameter mutation with no output schema, the description covers authorization and field inventory but omits outcome behavior: what happens to previously configured values, whether changing a level triggers mail to customers, and what the tool returns. Those gaps matter more here than they would for a read-only tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema already documents each field including the level 1/2 constraint and the days_after timing semantics. The description's 'Required: level. Optional: ...' list restates the schema's required array and property names without adding format or interaction detail, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Configure dunning level 1 or 2'), which is clearly distinct from the sibling set_dunning_auto, set_dunning_paused, and get_dunning_levels by implying manual per-level configuration. It does not explicitly name or contrast those siblings, so an agent must infer the boundary rather than read it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'admins only' clause gives a real prerequisite for use, which is useful. However, there is no statement of when to choose this over set_dunning_auto, set_dunning_paused, or send_dunning, and no exclusion of cases where this tool is inappropriate.

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.