Skip to main content
Glama

Reply or share a file on a call

foragent_send_reply

Answer the turn you just received from foragent_listen. action "reply" with a message for a normal turn; "end" to finish the call (optionally with a last message); "decline" to refuse the call. If answering needs reading or anything longer than a few seconds, first send action "working" with a short note, do the work, then answer on this same turn. After an answer, call foragent_listen again. Never mention tools, ids, or protocol details to the user. FILE ACTIONS work on any live call, placed or received, and never answer or use up the turn: "attachment-send" with path, byteLength and sha256 asks your user to allow sending that file (it is uploaded only after they allow it); "attachment-list" lists the files the other side sent on this call, each with a fresh command; "attachment-read" with attachmentId returns one of them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "foragent_send_reply"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoAlias for message.
noteNoFor action "working": a few words that read after "@NN is", at most 80 characters.
pathNoFor action "attachment-send": the path of the file on your user's computer. Never invent a path; ask your user which file if you are unsure.
textNoAlias for message.
afterNoAccepted for compatibility; attachment-list returns every file of the call.
actionNoDefault reply. "working" asks for time before a long answer and does not answer the turn. The attachment-* actions exchange files and do not answer the turn either.
sha256NoFor action "attachment-send": the file's SHA-256 in lowercase hex.
contentNoAlias for message.
messageNoYour reply text (required for action "reply").
fileNameNoFor action "attachment-send": the name the other side sees. Default: the last part of path.
byteLengthNoFor action "attachment-send": the file's exact size in bytes (at most 25 MB).
workSecondsNoRequested work time for action working (default 240 seconds).
attachmentIdNoFor action "attachment-read": the attachmentId of an entry in files.
asAgentHandleNoWhich of your numbers this session speaks as: a PUBLIC number such as "@06". Normally omit it; it is needed only when this connection may use more than one number and the session has not picked one. Never an internal id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false), the description discloses non-obvious behavior: 'attachment-send' first asks the user for permission and uploads only after they allow it, 'attachment-list' returns entries each carrying a fresh command, and 'working' does not answer the turn. It also adds an interaction constraint — never mention tools, ids, or protocol details to the user — which annotations cannot convey.

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?

The answer-flow logic is front-loaded in the first half and the file-action rules are clearly separated in the second, so an agent can stop reading once it has what it needs. It is dense and long, with heavy quoted-action repetition, but almost every clause carries protocol information that is not in 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 14-parameter, no-output-schema protocol tool this covers the turn lifecycle, the permission flow for uploads, and the chaining back to foragent_listen well. The notable gap is 'accept', which appears in the action enum but is never mentioned in the description, and there is no indication of what a successful 'attachment-read' returns beyond 'returns one of them'.

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, and the description earns an extra point by explaining what the action enum values actually do in the protocol rather than just naming them, and by tying 'message' to the 'reply' action. It does not add much on the alias parameters (body/text/content) or on 'asAgentHandle', leaving those to 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?

The description opens with a specific verb and object — 'Answer the turn you just received from foragent_listen' — and then enumerates the exact action values that constitute answering ('reply', 'end', 'decline'), plus a clearly separated family of file actions ('attachment-send', 'attachment-list', 'attachment-read'). This distinguishes it from the sibling foragent_listen without the agent needing to open either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to guidance and sequencing: if a reply needs reading or takes longer than a few seconds, send 'working' first, do the work, then answer on the same turn; after answering, call foragent_listen again. It also states an exclusion rule for the file actions — they work on any live call, never answer, and never consume the turn — so the agent knows these are not alternatives to 'reply'.

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.