Skip to main content
Glama

Chatra MCP by usefulapi

Push message to a visitor

chatra_push_message
Destructive

WRITE: send an automated message (order status, product update, announcement) to a visitor whose account is bound to Chatra through a clientId. It is delivered into the visitor's chat on behalf of a random agent, a given agent (agent_id) or a random agent of a group (group_id). It reaches a real customer and cannot be unsent except by deleting it, so only call it with text the user asked you to send. Returns the new message with its id. POST /pushedMessages/.

Input Schema

NameRequiredDescriptionDefault
textYesMessage text (plain text, 1-5000 characters).
agent_idNoChatra agent id (shown on the agent's page in Chatra).
group_idNoChatra agent group id (on the group's page); a random agent of the group writes.
client_idYesChatra visitor id: the `clientId` your website passed to the chat widget (ChatraSetup.clientId) or the visitor id from a Chatra webhook (client.id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false, so the bar is lower; the description still earns credit by making the destructiveness concrete ("reaches a real customer and cannot be unsent except by deleting it") and by stating the return payload and endpoint. No annotation contradiction; it doesn't cover error handling or whether agent_id and group_id can be combined.

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?

Front-loads "WRITE:" as the operation class, then target, delivery semantics, irreversibility and return value in three dense sentences with no filler. Every clause carries decision-relevant information.

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 destructive, non-idempotent write with no output schema, the description supplies the essentials: destination, targeting options, consequence of misuse, and return value. The one gap is what happens on failure or when both agent_id and group_id are supplied.

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%, so the schema already documents all four parameters including the random-agent semantics of group_id. The description's restatement of agent_id/group_id targeting and the clientId binding adds orientation but little meaning beyond the schema fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with an explicit verb+resource ("send an automated message") and scopes the audience precisely: a visitor bound via clientId, delivered as a pushed/automated message (POST /pushedMessages/). That 'automated/pushed' framing implicitly separates it from chatra_send_message, but no sibling is named explicitly, so the differentiation is inferred rather than stated.

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?

Gives a real usage constraint ("only call it with text the user asked you to send") and explains the delivery precondition (account bound to Chatra via clientId). It stops short of naming alternatives such as chatra_send_message for live replies, or saying when a pushed message is preferred over a normal one.

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.