Skip to main content
Glama

ethora-mcp-server

Activate Agent for Widget

ethora-agents-activate-v2
Idempotent

Make an agent the app's ACTIVE widget bot: sets App.defaultBotInstanceId (and botStatus: on), which is what POST /v2/widget/sessions uses to decide who answers website visitors. Required before an embedded widget can answer on an API-created app. Preconditions: the agent was invited into a room of this app with ethora-agent-invite-to-chat (that creates its bot instance). Works in user auth (app update route); falls back to the app-token /v2/agents/:id/activate route when an appToken is stored. Auth: user session (owner of the app). Errors: 404 no bot instance for this agent in the app (invite first); 403 not the app owner. Related: ethora-widget-embed-snippet next, ethora-bot-instances-list to inspect.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdNoApp to activate the agent for. Defaults to the app from `ethora-app-select`.
agentIdYesId (or address) of the agent to activate. Get it from `ethora-agents-list-v2` / `ethora-agents-create-v2`.
chatJidNoRoom JID `${appId}_${chatId}` (with or without `@conference...`) that becomes the widget chat. Required for API-created apps; omit only for dashboard-created apps that already have an AI Widget chat bound.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond annotations, the description discloses that this mutates app state, which route is used under user auth versus app-token fallback, required ownership, and likely 404/403 errors. It also surfaces the precondition that a bot instance must already exist, which is critical behavioral context the annotations do not provide.

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?

The description is dense but efficiently organized: main effect, required precondition, auth behavior, errors, and related tools. Every sentence adds actionable information with no filler, and the core purpose is front-loaded.

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 mutating activation tool with no output schema, the description covers purpose, preconditions, auth, errors, and related follow-ups. It does not describe the response/return value, but for this tool the key information an agent needs before invoking it is present.

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 description coverage is 100%, so the baseline is 3. The schema already explains each parameter's default, source, and the API-created vs dashboard-created app distinction. The description adds some relational context (activating sets `App.defaultBotInstanceId`) but does not substantially extend what the schema already communicates.

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 uses a specific verb and resource: 'Make an agent the app's ACTIVE widget bot' and names the exact effect (`App.defaultBotInstanceId`, `botStatus: on`). It clearly explains why this matters (`POST /v2/widget/sessions`) and distinguishes this activation action from general bot-enable or agent-update tools.

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?

The description gives strong context for when to use the tool: it is 'Required before an embedded widget can answer on an API-created app' and states the precondition to invite the agent first. It also lists related next steps (`ethora-widget-embed-snippet`, `ethora-bot-instances-list`). It does not explicitly state when not to use it, but the context is clear enough.

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.