Skip to main content
Glama

Mailrun Agent Identity

Update draft

update_draft

Patch a draft; pass jmap_state from the last write for optimistic concurrency (draft_conflict when it moved).

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

Input Schema

NameRequiredDescriptionDefault
ccNo
toNo
bccNo
htmlNo
textNo
subjectNo
draft_idYes
jmap_stateNo
identity_idYesIdentity id from list_identities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish the safety profile (destructiveHint=false, idempotentHint=false), and the description adds real behavioral context on top: optimistic concurrency via jmap_state and the specific failure mode 'draft_conflict when it moved'. What is missing is whether this is a partial merge or a full replacement of the draft's fields.

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 sentence with the core action front-loaded and the concurrency caveat immediately after. No filler, nothing that could be cut without losing information.

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 9-parameter mutation tool with no output schema and no documented parameters, the description covers the tricky part (concurrency and the resulting error) but leaves patch semantics, null handling, and required-field behavior unaddressed. An agent could call it, but could easily send the wrong payload shape.

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 11%, so the description must compensate; it does explain the least self-evident parameter, jmap_state, including its provenance and conflict semantics. The email fields (to, cc, bcc, subject, html, text) are left entirely to the schema, and there is no explanation of how null values are treated.

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 ('Patch a draft'), which an agent can distinguish from create_draft, delete_draft and send_draft without opening the schema. It stops short of explicitly naming those siblings, but the operation is unambiguous.

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 implied rather than stated: it is clear this is for modifying an existing draft, and the description conditionally directs the agent to pass jmap_state from the last write. It never says when to choose this over send_draft or create_draft, nor what happens if jmap_state is omitted.

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