Skip to main content
Glama

Flowmails MCP

claim_message

Claim a received message for processing — record that this agent is working on it now, so a restarted agent can tell what it already handled. Returns the message's state (processing). Fails with message_claimed when another credential of the same account holds a live claim; an expired claim does not block. Follow it with complete_message.

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": {
      "messageId": "<messageId>",
      "domainId": "<domainId>"
    },
    "name": "claim_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainIdYesThe id of the domain that received the message — from `list_domains`. Required: the state belongs to one domain's mailbox.
claimedByNoOptional: a label for which worker of yours holds the claim, e.g. `worker-1`. Defaults to the credential.
messageIdYesThe message id — the `messageId` value from a `list_events` row (the SMTP Message-ID).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral burden well by disclosing the returned state (`processing`), the `message_claimed` failure when another credential holds a live claim, and that expired claims do not block. It still omits claim lifetime duration, idempotency, and retry semantics, which are relevant for a concurrency-sensitive mutation.

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?

The description is front-loaded with the core action, then efficiently adds the return state, failure condition, and next step. Every sentence contributes useful information, with no redundant or filler wording.

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?

For a stateful claim operation with no annotations and no output schema, the description supplies enough context to invoke it correctly: the resulting state, the main failure mode, and the follow-up tool. A gap remains around claim expiration duration and release/idempotency behavior, but the essentials are covered.

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%, so the input schema already documents all three parameters thoroughly. The description adds no meaningful parameter-level detail beyond the schema, which is acceptable but provides no extra semantic value.

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 states a specific verb and resource: 'Claim a received message for processing.' It also distinguishes the action from its sibling by explicitly saying to follow it with `complete_message`, and explains the purpose of durable ownership tracking for restarted agents.

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 clearly indicates when to use the tool: to record that this agent is working on a message now and to coordinate with `complete_message` afterward. It does not explicitly name when not to claim or compare against alternatives such as `list_message_states`, but the intended workflow and failure condition are clear.

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.