Skip to main content
Glama
smallest-inc

Smallest MCP Server

Official
by smallest-inc

publish_draft

Commit pending draft edits on a branch as a new revision, serving immediately if live. Waits for security check and reports outcome; can discard draft instead.

Instructions

Publish a branch's pending draft edits, committing them as a new revision. If the branch is live, the changes serve immediately; otherwise use make_branch_live to serve them. Publishing runs an async security check on the prompt; this tool waits for it and reports the real outcome — if the check is still running after ~60s the changes aren't committed yet (they commit automatically once it passes), and if it fails the draft stays open so you can fix the prompt and publish again. Can also discard the pending draft instead of publishing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNoRevision label (max 200 chars, e.g. 'Changed voice to yuvika')
actionNoWhether to publish the draft (commit it) or discard itpublish
agent_idYesThe agent ID
branch_idNoBranch to publish (from list_branches). Omit to use the live branch; if the agent has multiple branches you'll be asked to pick one.
Behavior5/5

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

No annotations provided, but description fully discloses async security check, ~60s wait, outcome reporting, conditional commit, and failure handling. No contradictions.

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?

Single paragraph, front-loaded with main action. Every sentence adds value, though slightly long. No redundancy.

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?

Covers all key aspects: main operation, branch live state, async check behavior, discard alternative. No output schema needed, but description is thorough for selection and invocation.

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

Parameters4/5

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

Schema coverage is 100% with descriptions. The description adds context for branch_id (omit for live) and action (discard vs publish), slightly enhancing 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?

Starts with explicit verb and resource: 'Publish a branch's pending draft edits, committing them as a new revision.' Clearly distinguishes from siblings like make_branch_live and delete_branch by describing the relationship and alternative actions.

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?

Explicitly states when to use (to publish draft) and when not (if branch not live, use make_branch_live). Also covers discard option and async behavior with timeouts and retry 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/smallest-inc/mcp-server'

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