Skip to main content
Glama

Invite Agent to Chat

ethora-agent-invite-to-chat

Invite an AI agent into a chat room to let it participate in conversations. Creates the bot account automatically and activates it live, no restart required.

Instructions

Invite an Agent into a chat room. Multiple agents can coexist in the same room — call this tool once per agent and they will all appear as members able to converse. Lazily creates a per-App BotInstance (an Ethora user with isBot:true) if one does not already exist for (agent, app). Spawns the XMPP client live; no ai-service restart required. For the full multi-agent recipe see the ethora-agents-quickstart prompt. Requires: an agent (ethora-agents-create-v2) and a room (ethora-app-create-chat) in the selected app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdNoRequired in B2B mode unless already selected via ethora-app-select.
chatIdNoMongo Chat _id (preferred when invoking from admin).
agentIdNoAlias for `agentIdOrAddress` - either name is accepted, pass whichever you have.
chatJidNoRoom JID `${appId}_${chatId}` (optionally with `@conference.<host>`), exactly the `jid` returned by `ethora-app-create-chat`. Preferred over `chatId`.
agentIdOrAddressNoEither Mongo _id (24 hex chars) or EOA-style address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv26.9.3

TDQS

A4.3/5.0
Behavior5/5

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

Beyond annotations (readOnlyHint=false, destructiveHint=false), the description discloses significant behavioral traits: lazy creation of a per-App BotInstance, live XMPP client spawn, and no ai-service restart requirement. It also clarifies that multiple agents can coexist, which is important for expected state changes.

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 description is multi-sentence but each sentence contributes value: core action, multi-agent behavior, side effects, recipe pointer, and prerequisites. It front-loads the primary action and is not wasteful, though it is slightly longer than the minimum needed.

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?

Covers prerequisites, side effects, usage pattern, and points to a recipe for complex scenarios. It does not explain return values (no output schema) or error handling, but these are not essential for a tool with clear side effects. The description is sufficient for an agent to call it correctly.

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 100% with detailed descriptions for each parameter, including preferred chatJid and alias agentId. The description adds no additional parameter-level meaning beyond the prerequisites (agent and room), so it does not elevate the baseline of 3 set by high schema coverage.

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 states a specific action — 'Invite an Agent into a chat room' — with clear resource and verb, and elaborates on multi-agent coexistence and side effects (lazy BotInstance creation, XMPP spawn). It distinguishes itself from creation tools by explicitly requiring an existing agent and room, which positions it as an invitation step rather than a creation step.

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?

Provides explicit prerequisites ('Requires: an agent ... and a room') and usage pattern ('call this tool once per agent'), making it clear when to use. It does not name specific alternative tools, but the context implies this is the invitation action distinct from agent creation or chat creation, and points to a recipe for multi-agent setups.

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

Deploy Server

Other Tools