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 enabled agent
metadataNo
chat_nameNo
auto_draftNoDraft a reply (default true)
external_idYesStable per-channel de-dupe id
received_atNoISO-8601 timestamp
sender_nameNo
target_tenant_idNoPlatform super-admins only: operate on this tenant instead of your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

The description adds real behavioral detail: de-dupe on (channel, external_id), a draft is created but never auto-sent, and the exact return shape is given. However, 'Idempotent on (channel, external_id)' directly conflicts with the idempotentHint=false annotation, leaving an agent unsure whether retries are safe.

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?

Three tight sentences: what it does, the de-dupe contract, and the return shape, all front-loaded. No filler, though the mid-sentence parenthetical channel examples are slightly noisy.

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 mutation tool with no output schema, the description supplies the return keys ({ ingested, message_id, draft_id }) and the side effect (draft generation, no auto-send), which is what an agent needs to chain calls. Missing only guidance on failure/duplicate responses and the tenant-scoping behavior.

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 46%, but the description compensates for the two most consequential parameters: external_id as the stable de-dupe key and auto_draft's default/effect. The remaining ten parameters (metadata, target_tenant_id, received_at, chat_id, etc.) get no added meaning beyond the 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?

The description names a precise verb and resource ('Ingest one incoming message') plus the source context (external channel forwarded by the local comms-forward bridge), which separates it from retrieval siblings like get_inbound_message. It does not explicitly name or contrast itself with those siblings, so it stops short of the top mark.

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: it is the bridge-facing entry point for forwarded messages, and auto_draft can be turned off. Nothing says when to call this versus draft_message_reply or mark_message_handled, nor what prerequisites (bridge must have forwarded the message) exist.

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