Skip to main content
Glama

Ingest message

ingest_message

Ingest one incoming message from an external channel (Beeper network, desktop mail, …) forwarded by the local comms-forward bridge. Idempotent on (channel, external_id). Stores the message and, unless auto_draft is false, generates an AI reply DRAFT (never auto-sends). Returns { ingested, message_id, draft_id }.

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": {
      "channel": "<channel>",
      "external_id": "<external_id>",
      "body": "<body>"
    },
    "name": "ingest_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
senderNo
channelYesSource class, e.g. 'beeper' or 'mail'
chat_idNo
subjectNo
agent_idNoDrafting agent; defaults to the tenant's first active agent
metadataNo
chat_nameNo
auto_draftNoDraft a reply (default true)
external_idYesStable per-channel de-dupe id
received_atNoISO-8601 timestamp
sender_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior1/5

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

The description says the call is 'Idempotent on (channel, external_id)', while the annotations declare idempotentHint=false — a direct contradiction on a declared behavioral trait. Beyond that, useful context is present (a draft is generated, never auto-sent, and the de-dupe key is disclosed), but the conflict on idempotency is the kind of inconsistency that misleads a calling agent.

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?

Four tight sentences, with the core action and source stated first, followed by idempotency behavior, draft-generation behavior, and the return shape. No filler, though the return-shape sentence could be dropped in favor of a schema.

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?

It correctly covers the two behaviors an agent most needs to know (de-duplication and that a draft is created but never sent) and states the return payload despite no output schema. However, for a 12-parameter write tool with 42% schema coverage and no annotations filling the gap, several parameters and any auth or error behavior are left unexplained.

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 42% across 12 parameters, and the description says little about body, sender, chat_id, chat_name, subject, metadata, received_at, or sender_name. It does add real meaning in tying channel plus external_id together as the de-dupe key and restating that auto_draft=false suppresses drafting, but it does not compensate for the undocumented parameters.

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?

Uses a specific verb and resource ('Ingest one incoming message') and names the origin precisely ('forwarded by the local comms-forward bridge'). It clearly is not the same as siblings like send_buyer_message or inject_run_message, though it never names an alternative explicitly.

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?

Implies usage context via 'incoming message from an external channel ... forwarded by the local comms-forward bridge', which tells an agent the call is for bridge-forwarded traffic only. It gives no explicit when-not conditions and names no alternative tool for the adjacent cases (e.g. outbound sending or manual injection).

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