Skip to main content
Glama

Chat with agent

chat_with_agent

Send one message to a Synapse agent and return its reply. Pass the returned session_id to continue the same conversation. An agent that needs a tool call approved stops with status awaiting_approval: answer it with answer_tool_approval.

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": {
      "message": "<message>"
    },
    "name": "chat_with_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoAgent id or exact name; the workspace's first agent if omitted.
messageYes
session_idNoContinue this conversation.
wait_secondsNoSeconds to wait for the reply. The turn carries on after the wait.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the description's job is supplementary — and it delivers the non-obvious traits: the turn keeps running after the wait, and the call can terminate in an `awaiting_approval` state that needs a different tool. It does not cover failure modes, whether messages are billed/rate-limited, or what the reply object looks like, keeping it below a 5.

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?

Three short sentences, front-loaded with the core action, then the continuation rule, then the exception path. No filler or restated title text.

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?

With no output schema, the description must carry the return contract, and it names the reply and the session_id plus the awaiting_approval status. That is enough to call the tool correctly, though the shape of the reply and the meaning of a non-reply status other than approval are left implicit.

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 75%, so the schema already documents agent, session_id and wait_seconds. The description adds one real piece of meaning — that session_id comes back from a previous reply and is what ties messages into one conversation — but says nothing about `agent` resolution or the wait_seconds timeout, which the schema covers anyway. Baseline 3 fits.

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 one message to a Synapse agent and return its reply") plus the scope (one message, one reply). It also distinguishes the approval path by naming the sibling that handles it, so an agent can route without opening another 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?

Explicitly says when to reuse this tool (pass the returned session_id to continue the same conversation) and when to switch (status `awaiting_approval` → answer_tool_approval). Both the continuation condition and the exclusion are stated outright.

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.