Skip to main content
Glama
zagushka

Foundry REST API MCP

by zagushka

foundry_clear_chat

Destructive

Permanently clear all chat messages from a Foundry world using the Foundry REST API, providing a clean slate for new conversations.

Instructions

Permanently clear all chat messages.

Input Schema

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

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

Annotations already mark destructiveHint=true, and the description adds that the action is permanent and applies to all messages, which is helpful context beyond the raw annotations. However, it does not address whether the operation is undoable or if special permissions are required.

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?

A single, front-loaded sentence that states the core behavior with no filler or redundant details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple destructive tool with two optional params and clear annotations, the description is adequate but lacks any detail about how the parameters alter behavior or what the tool returns after clearing. The absence of an output schema and minimal context about side effects leaves some gaps.

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?

The input schema covers both parameters with descriptions (100% coverage), so the baseline is 3. The description does not clarify how optional userId or clientId affect the 'all messages' scope, leaving a minor semantic gap.

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 action ('clear'), the resource ('chat messages'), the scope ('all'), and the consequence ('permanently'). This unambiguously distinguishes it from sibling tools like delete_chat_message (single message) or list_chat_messages (read-only).

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?

No guidance is given on when to use this tool versus alternatives such as delete_chat_message. It does not mention prerequisites, permissions, or situations where a bulk clear is appropriate, leaving the agent to infer from the name and sibling list.

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