Skip to main content
Glama
smallest-inc

Smallest MCP Server

Official
by smallest-inc

chat_with_agent

Conduct a scripted text conversation with a published agent, wait for each turn to settle, and obtain the full transcript for automated testing and prompt refinement.

Instructions

Hold a TEXT conversation with a published agent over the realtime chat WebSocket (mode=chat) — no audio, no phone, just text in / text out. Sends each message in messages in order, waiting for each agent turn to FULLY settle before sending the next — a turn can be several messages (a filler while a tool runs, then the answer), so tool-using flows (auth, lookups) complete instead of being cut off. Returns the full transcript. Use this to test an agent's prompt/behaviour programmatically (e.g. an automated build → test → evaluate → refine loop): run a scripted conversation, read the transcript, then adjust the prompt with update_agent and run again. This places a real (chargeable) chat session on the agent. Note: the agent must be published; to chat with unpublished draft changes use test_agent (mode=chat, include_draft=true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesThe agent ID to chat with (must be a published agent)
messagesYesUser turns to send, in order. Each is sent only after the previous turn's reply arrives. For realistic tests, write messages a real caller would send.
settle_msNoSilence after a SUBSTANTIVE agent message before the turn counts as finished. Fillers (messages ending in '…', spoken while a tool runs) are waited on much longer automatically, so this can stay small; raise it only if the agent sends its answer in several slow bursts.
variablesNoPer-call values for {{key}} placeholders in the agent prompt
greeting_wait_msNoTime to wait after connecting for the agent's opening message (0 if it waits for the user first)
reply_timeout_msNoHard cap on how long to wait for a single agent turn before giving up on it
Behavior5/5

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

Discloses turn-waiting behavior, filler messages, and that it returns full transcript. With no annotations, description fully covers safety and 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?

Single paragraph but front-loaded with core purpose; every sentence adds value. Slightly long but warranted given complexity.

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?

With 6 params fully described and no output schema, description covers all necessary behavioral and contextual details, including chargeability and turn handling.

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

Parameters5/5

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

Each parameter has schema description; description adds context beyond schema (e.g., realistic messages, filler explanation for settle_ms).

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?

Clearly states it holds a TEXT conversation with a published agent over WebSocket, no audio. Distinguishes from test_agent for unpublished drafts.

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 describes programmatic use for testing agent behavior, mentions chargeable session, and directs to test_agent for unpublished drafts.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/smallest-inc/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server