Skip to main content
Glama

cleanup_state

Delete in-flight draft state and temporary files to abandon a draft or clean up after publishing. Use force=true to override the idle time guard.

Instructions

Delete the in-flight draft state (/tmp/draft_event.json and poster temp files). Use to abandon a draft or after a completed publish. Pass force=true to ignore the 30-minute idle guard.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoClean even if the draft was touched recently
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the destructive action, specific files affected, the 30-minute idle guard, and how force=true bypasses that guard. This is thorough and clear.

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 two concise sentences, front-loaded with the action and resource, and every word adds value. It avoids redundancy and is easy to scan.

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 simple one-parameter tool with no output schema, the description covers purpose, usage, behavior, and parameter semantics comprehensively. No critical information is missing for an agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaning beyond the schema by explaining what the 30-minute idle guard is and how force relates to it. While the schema describes force as 'Clean even if the draft was touched recently', the description provides the underlying context, making the parameter's intent clearer.

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 tool's purpose: 'Delete the in-flight draft state' with specific file paths. The verb 'Delete' and resource are unambiguous, and it distinguishes itself from sibling tools by focusing on cleanup of draft state rather than creation or publishing.

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 explicitly states when to use: 'Use to abandon a draft or after a completed publish.' It also explains the force=true condition for overriding the idle guard. However, it does not mention when NOT to use or alternative tools, leaving it just short of full guidance.

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/yingliu-data/wcc_mcp_server'

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