Skip to main content
Glama
possibly6

safe-migrations-mcp

by possibly6

generate_rollback

Creates exact undo SQL for database proposals or a restore plan for configuration changes. Accepts a proposal ID or raw SQL with optional connection for schema-aware rollbacks.

Instructions

Produce exact undo SQL (for DB proposals) or a restore plan (for config).

Either pass an existing proposal_id, or pass raw sql (+ optional connection for better schema-aware rollbacks).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
proposal_idNo
sqlNo
connectionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations, the description carries full burden. It states the tool produces rollback plans but does not disclose whether it is read-only, what permissions are needed, or any side effects. No mention of output format despite having an output schema. Behavioral traits like rate limits or error handling are absent.

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 sentences, no fluff, and front-loaded with key information. Every word adds value.

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?

Given 3 parameters and no annotations, the description covers the two modes adequately. It does not explain output schema or limitations, but an output schema exists, reducing the burden. Slight gaps on conditional behavior (e.g., what happens if both proposal_id and sql are provided) prevent a perfect score.

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 0%, but the description adds meaning: it explains that proposal_id and sql are mutually exclusive, and that connection is optional for schema-aware rollbacks. This significantly aids parameter understanding beyond the raw 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 tool produces undo SQL for DB proposals or a restore plan for config, distinguishing it from sibling tools like apply_change or simulate_impact. It specifies two distinct usage modes (by proposal_id or by sql+connection), making the purpose unambiguous.

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

Usage Guidelines3/5

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

The description implies usage for generating rollbacks but lacks explicit guidance on when to use this tool versus alternatives. No mention of when not to use it or comparisons to siblings like simulate_impact or propose_migration_or_edit. The word 'either' helps but is insufficient.

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/possibly6/safe-migrations-mcp'

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