Skip to main content
Glama

Chat Send

chat_send

Post a campaign chat message as narration or player dialogue in CozyVTT. Requires campaign membership; handles cooldown and returns pending status for confirmation.

Instructions

Post one campaign chat message as narration or player dialogue. Use chat_read to inspect history; use dice_roll for dice, not chat text pretending to be a roll. Authenticated campaign membership is required; type is a message category, not a role grant. Upstream campaign chat cooldown may reject messages. Creates a new message on each accepted send; do not retry blindly. Returns sent:true,confirmed:false,status:"pending" inside data: dispatch is not a business ACK. Read events_poll for results/system.error and inspect state before further action; never blindly resend. Returns {ok:true,data} on success; tool-body failures return {ok:false,error} with optional diagnostic data. Argument-schema errors are MCP errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoMessage category: DM (default narration) or PLAYER. This does not change the authenticated role.DM
contentYesNonblank message text, at most 2000 characters; whitespace is preserved when sent.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • addedInput schema / properties / content / description
      Added value: +"Nonblank message text, at most 2000 characters; whitespace is preserved when sent."
    • addedInput schema / properties / type / description
      Added value: +"Message category: DM (default narration) or PLAYER. This does not change the authenticated role."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say this is a non-read, non-idempotent, non-destructive operation. The description adds crucial behavioral context beyond annotations: the send is asynchronous and returns sent:true with pending status, not a business ACK; cooldowns may reject; each accepted send creates a new message; and events_poll must be consulted for actual results. This substantially helps an agent avoid incorrect assumptions.

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 dense and front-loaded with purpose, then flows into usage, behavioral caveats, and return semantics. Minor redundancy exists between 'do not retry blindly' and 'never blindly resend', but overall every major sentence adds necessary information.

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?

For a mutating, asynchronous tool with a small schema, the description covers purpose, alternatives, authentication, failure modes, async dispatch semantics, return envelope, and follow-up steps via events_poll. It is complete enough for an agent to invoke it correctly and interpret responses appropriately.

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 both parameters well. The description reinforces that type is a category rather than a role grant, but this is already present in the schema's type description. No new parameter-level semantics are added beyond the schema.

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 opens with a specific verb and resource: 'Post one campaign chat message as narration or player dialogue.' It clearly differentiates itself from sibling tools by explicitly routing history inspection to chat_read and dice rolling to dice_roll.

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?

The description gives explicit when-to-use guidance and names alternatives: use chat_read for history, use dice_roll for dice rather than sending text as a roll. It also warns against blind retries and directs follow-up through events_poll, giving an agent clear decision boundaries.

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