Skip to main content
Glama

Reply in fmsg thread

reply

Send a threaded response to an existing message, delivered to all participants or a chosen recipient set. Supports text, files and attachments; fails on closed threads.

Instructions

Send an immediate reply to a message (linking it into that thread). fmsg messages are immutable: once sent they cannot be edited or recalled. Send within the user's requested task or authorized automation. By default the reply goes to everyone on the parent message — its sender, recipients and anyone added later — except you; pass recipients to narrow or widen that. If you were added to the message after it was sent, you can reply to it but not to earlier messages in its thread. Fails if the parent is terminal (no replies possible); a parent marked no-reply is refused unless allow_no_reply is true. Secrets are redacted. Files: data_text for text; data_base64 for small files, best effort, always with sha256. Send files as they are; fmsg compresses them.

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": {
      "id": "<id>",
      "body": "<body>"
    },
    "name": "reply"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesmessage to reply to
bodyYesreply body; Markdown unless type says otherwise
typeNobody media typetext/markdown; charset=utf-8
filesNofiles the user shared in this chat (images, PDFs and so on); the host fills these in and this server downloads them, so never write their bytes as base64
no_replyNoask recipients (and their agents) not to reply
importantNomark as important for recipients
recipientsNooverride the reply-all recipient set
attachmentsNofiles
include_ownerNoalso send to your owner, if whoami shows one
allow_no_replyNoreply even though the parent asked for no replies

Output Schema

NameRequiredDescriptionDefault
idYes
toYes
fromYes
hintNofor you, not the user: a better way to do this next time
timeYes
filesNothe files given by reference, as attached: the name used, size and hex sha256 of the bytes
topicYes
redactedNothe kinds of secret replaced, such as github_token; empty when none
resolvedNoshort names and how they resolved, when any were given; confirm with the user if an address looks wrong
warningsYesthings to tell the user, such as redacted secrets or resolved short names
parent_idYes
redactionsYessecrets replaced with placeholders before sending
attachmentsYessorted by filename, the same order in every tool
thread_topicNothe thread's topic: the topic sent for a new message; for a reply, the thread root's topic, or null when the root is not visible

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.1
    • addedInput schema / properties / files
      Added value: +{
      +  "description": "files the user shared in this chat (images, PDFs and so on); the host fills these in and this server downloads them, so never write their bytes as base64",
      +  "items": {
      +    "description": "a file the user shared in this chat, filled in by the host",
      +    "properties": {
      +      "download_url": {
      +        "description": "filled in by the host",
      +        "type": "string"
      +      },
      +      "file_id": {
      +        "description": "filled in by the host",
      +        "type": "string"
      +      },
      +      "file_name": {
      +        "description": "filled in by the host",
      +        "type": "string"
      +      },
      +      "mime_type": {
      +        "description": "filled in by the host",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "download_url",
      +      "file_id"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / files
      Added value: +{
      +  "description": "the files given by reference, as attached: the name used, size and hex sha256 of the bytes",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "file_id": {
      +        "type": "string"
      +      },
      +      "filename": {
      +        "type": "string"
      +      },
      +      "sha256": {
      +        "type": "string"
      +      },
      +      "size": {
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changedv1.3.0
    • changedInput schema / properties / attachments / items / properties / data_base64 / description
      Previous value: -"base64 file contents, for small files. The host sets the size limit"New value: +"base64 file contents. You write the base64, so it is best effort: fine for small files (checked exact up to 16 KB). Always give sha256 with it. The host sets the size limit"
    • changedInput schema / properties / attachments / items / properties / sha256 / description
      Previous value: -"hex sha256 of the file; the attachment is refused, and nothing sent, if the bytes differ. Give it when you can compute it"New value: +"hex sha256 of the file; the attachment is refused, and nothing sent, if the bytes differ. Always give it with data_base64"
  3. Changed1 schema field changedv1.2.0
    • addedInput schema / properties / include_owner
      Added value: +{
      +  "default": true,
      +  "description": "also send to your owner, if whoami shows one",
      +  "type": "boolean"
      +}
  4. Changed23 schema fields changedv1.1.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / attachments / description
      Added value: +"files"
    • addedInput schema / properties / attachments / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / attachments / items / properties / content_type / description
      Added value: +"inferred from the filename when omitted"
    • addedInput schema / properties / attachments / items / properties / data_base64 / description
      Added value: +"base64 file contents, for small files. The host sets the size limit"
    • removedInput schema / properties / attachments / items / properties / data_base64 / minLength
      Removed value: -1
    • addedInput schema / properties / attachments / items / properties / data_text
      Added value: +{
      +  "description": "text file contents, sent as UTF-8 bytes; use instead of data_base64 for text",
      +  "type": "string"
      +}
    • addedInput schema / properties / attachments / items / properties / filename / description
      Added value: +"file name"
    • addedInput schema / properties / attachments / items / properties / sha256
      Added value: +{
      +  "description": "hex sha256 of the file; the attachment is refused, and nothing sent, if the bytes differ. Give it when you can compute it",
      +  "pattern": "^[0-9A-Fa-f]{64}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / attachments / items / required
      Previous value: -[
      -  "filename",
      -  "data_base64"
      -]New value: +[
      +  "filename"
      +]
    • addedInput schema / properties / body / description
      Added value: +"reply body; Markdown unless type says otherwise"
    • addedInput schema / properties / important / description
      Added value: +"mark as important for recipients"
    • addedInput schema / properties / no_reply / description
      Added value: +"ask recipients (and their agents) not to reply"
    • addedInput schema / properties / type / description
      Added value: +"body media type"
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +{}
    • addedOutput schema / properties / attachments / description
      Added value: +"sorted by filename, the same order in every tool"
    • changedOutput schema / properties / attachments / items / additionalProperties
      Previous value: -falseNew value: +{}
    • addedOutput schema / properties / attachments / items / properties / type
      Added value: +{
      +  "description": "media type; inferred from the filename when the host records none",
      +  "type": "string"
      +}
    • addedOutput schema / properties / hint
      Added value: +{
      +  "description": "for you, not the user: a better way to do this next time",
      +  "type": "string"
      +}
    • addedOutput schema / properties / redacted
      Added value: +{
      +  "description": "the kinds of secret replaced, such as github_token; empty when none",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / resolved
      Added value: +{
      +  "description": "short names and how they resolved, when any were given; confirm with the user if an address looks wrong",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "address": {
      +        "type": "string"
      +      },
      +      "input": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / thread_topic
      Added value: +{
      +  "description": "the thread's topic: the topic sent for a new message; for a reply, the thread root's topic, or null when the root is not visible",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / warnings / description
      Added value: +"things to tell the user, such as redacted secrets or resolved short names"
  5. First observedv0.1.3

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare non-read-only, non-destructive, open-world, non-idempotent). It discloses immutability of sent messages, default recipient expansion, thread-position limits for late-added users, failure on terminal parents, no-reply refusal unless allow_no_reply, secret redaction, and file handling/compression behavior.

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?

Front-loads the core action and thread-linking, then layers constraints and file guidance. It is dense and slightly long, but nearly every sentence carries actionable information; minor tightening of the file paragraph would help.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation tool with an output schema, the description covers the critical gaps: recipient semantics, failure modes, immutability, and file encoding rules. Return values are handled by the output schema, so nothing essential is missing.

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 the baseline is 3, but the description adds real meaning: recipients overrides the reply-all set, allow_no_reply bypasses a no-reply parent, and data_text vs data_base64 with mandatory sha256 for files. This clarifies intent beyond the field-level descriptions.

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 ('Send an immediate reply to a message') and immediately clarifies the linking semantics into the parent thread, which distinguishes it from a plain send_message sibling. An agent can tell what this does without opening the schema.

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 clear context: send within the user's requested task or authorized automation, and explains the default reply-all recipient set with the 'pass recipients to narrow or widen' escape hatch. It also states the added-later restriction and the terminal/no-reply failure conditions. It stops short of explicitly naming a sibling alternative, so a 4 rather than 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.