Skip to main content
Glama
zagushka

Foundry REST API MCP

by zagushka

foundry_delete_chat_message

Destructive

Delete a specific chat message from FoundryVTT by ID to remove unwanted or erroneous entries. Supports optional user and client IDs for permission-scoped access.

Instructions

Delete one chat message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdNoOptional Foundry user ID or username for permission-scoped access.
clientIdNoFoundry client ID; defaults to FOUNDRY_CLIENT_ID.
messageIdYes
Behavior3/5

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

The annotations already declare destructiveHint=true, so the destructive nature is known. The description does not add any extra behavioral context (e.g., permanence, side effects) but is consistent with the annotation and does not contradict it.

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 a single, direct sentence: 'Delete one chat message.' It is concise, front-loaded, and free of unnecessary words or repetition.

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 simple delete operation, the description combined with the schema and annotations provides sufficient context. The agent knows it is destructive and requires a messageId. The lack of an output schema and the simplicity of the tool mean additional detail is not necessary.

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 67% (2 of 3 parameters have descriptions), so the baseline is 3. The tool description adds no parameter-specific information, but the required messageId is implied by the tool name and the userId/clientId are already documented in 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 clearly states the verb 'delete' and the resource 'chat message', which is specific and distinguishes it from sibling tools like foundry_send_chat_message or foundry_clear_chat. It unambiguously indicates the action of removing a single chat message.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives such as foundry_clear_chat for bulk deletion. It simply states the action without any context about appropriate use cases or exclusions.

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/zagushka/foundry-rest-api-mcp'

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