Skip to main content
Glama

Mailrun Agent Identity

Delete draft

delete_draft
Destructive

Delete a draft from the mailbox and its metadata row; jmap_state guards concurrency.

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": {
      "identity_id": "<identity_id>",
      "draft_id": "<draft_id>"
    },
    "name": "delete_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYes
jmap_stateNo
identity_idYesIdentity id from list_identities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description still adds real value beyond them: it discloses that the metadata row is removed along with the mailbox copy, and that jmap_state exists as a concurrency guard. It stops short of saying what happens when the state mismatches.

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?

A single front-loaded sentence with two dense clauses and no filler; the destructive scope comes first and the parameter note second. Slightly terse, but nothing is wasted.

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 mutation with no output schema and low schema coverage, key details are absent: how a concurrency conflict surfaces, whether the draft is recoverable, and where draft_id originates. Annotations carry the safety signal, so this is adequate but not complete.

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 coverage is only 33% – just identity_id is documented ('from list_identities'). The description explains the purpose of jmap_state as a concurrency token, partially compensating, but gives no format or where to obtain it, and draft_id is entirely unelaborated.

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+resource ('Delete a draft') and adds the scope of removal ('from the mailbox and its metadata row'), which separates it from the other delete_* siblings at a glance. It does not explicitly contrast with update_draft/send_draft, but the verb makes the distinction obvious.

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?

Usage is only implied by the tool name and the word 'draft' – an agent can infer this is for removing an existing unsent draft. There is no explicit when-not guidance (e.g., drafts already sent, drafts in another state) and no named alternative for discarding versus updating.

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.

Resources