Skip to main content
Glama

Coinage

Send message

send_message

Append a message to a conversation the signed-in person is part of. Requires scope messages:write. The body is stored and returned verbatim. Pass idempotencyKey so a retry does not create a second message. The same key with a different body is a conflict.

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": {
      "conversationId": "<conversationId>",
      "body": "<body>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe message, stored verbatim.
conversationIdYesConversation id from start_conversation or list_conversations.
idempotencyKeyNoClient retry key. 8 to 128 letters, digits, underscores, or hyphens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the required auth scope, that the body is stored and returned verbatim (no normalization), and the retry/conflict semantics of idempotencyKey. The retry-key explanation is consistent with idempotentHint=false — the operation is not inherently idempotent, but a client-supplied key makes retries safe — so this clarifies rather than contradicts the annotation.

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?

Four short sentences, front-loaded with the action and audience, then precondition, then the two non-obvious behaviors. Every sentence carries information an agent could act on; nothing is redundant with the schema.

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 simple three-parameter mutation with no output schema, this covers the essentials: auth, verbatim storage, retry safety, and conflict outcome. It omits error behavior for non-membership or invalid conversation ids, which would round out a caller's expectations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description earns extra credit by explaining why idempotencyKey exists (retry safety) and what happens on key reuse with a different body (conflict) — semantics the schema only hints at with 'Client retry key'. It adds nothing about body length limits or the conversationId format beyond the schema.

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?

States a specific verb and resource ('Append a message to a conversation') plus a scoping condition ('the signed-in person is part of'), which is enough to separate it from the read-oriented siblings get_conversation and list_conversations. 'Append' also conveys ordering semantics that a generic 'send' would not.

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?

Gives a clear precondition (requires scope messages:write) and a clear trigger situation (appending to a conversation the caller belongs to). It does not explicitly say when to prefer other tools or what to do if the caller is not a member, so it stops short of full when/when-not guidance.

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