Skip to main content
Glama
Cloady

Cloady

Official
by Cloady

Flush Service Mail Queue

flushServiceMailQueue
Destructive

Force immediate Postfix mail delivery by retrying one queued message or the entire queue instead of waiting for scheduled retry times.

Instructions

Asks Postfix to attempt delivery now, for one queued message (postqueue -i) or the whole queue (postqueue -f), instead of waiting for its retry time. Requires the developer role.

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": {
      "workspaceSlug": "<workspaceSlug>",
      "appSlug": "<appSlug>",
      "serviceName": "<serviceName>"
    },
    "name": "flushServiceMailQueue"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNo
regionNo
appSlugYes
requestBodyNoThe JSON request body.
serviceNameYes
workspaceSlugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the description's job is supplementary context — and it delivers the auth requirement (developer role) plus the actual underlying Postfix commands, which explains the blast radius of the whole-queue mode. It does not explain what happens to messages whose retry fails, which matters given the destructiveHint flag.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single tight sentence that front-loads the action, then the two modes with their exact commands, then the permission requirement. No filler and nothing repeated.

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?

Six parameters including a nested requestBody, no output schema, and low schema coverage — the description covers the core id/no-id semantic and auth but says nothing about env/region targeting or what the caller gets back. Adequate to call correctly in the happy path, incomplete for the tool's actual complexity.

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 only 17%, and the one documented field (requestBody.id) is already described in the schema itself, so the description largely restates it. The five other parameters (workspaceSlug, appSlug, serviceName, env, region) get no meaning added anywhere, leaving a real gap for the low-coverage schema.

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 concrete verb ('Asks Postfix to attempt delivery now') and resource (queued mail), and explicitly separates the two operating modes: one message via `postqueue -i` versus the whole queue via `postqueue -f`. It never names the adjacent readServiceMailQueue sibling, so an agent must infer the read-vs-flush distinction from the tool names alone.

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?

Gives a clear trigger condition ('instead of waiting for its retry time') and a prerequisite ('Requires the developer role'), which is enough to know when this is the right call. It stops short of saying when NOT to flush (e.g. healthy queues) or pointing at readServiceMailQueue/readServiceMail for inspection first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools