Skip to main content
Glama

Dry-run a Project Database migration

dry_run_project_database_migration

Execute a proposed migration in one transaction and roll it back, returning the schema impact. No backup is created. PostgreSQL sequence values may advance even when a transaction rolls back. Migration responses include request_review: adding unrelated tables preserves existing approvals; changes to referenced schema objects can interrupt affected Requests. Some changes still invalidate every Request on the datasource: a removed or changed function, a sequence no table owns, a new function whose name already resolves or is named by existing function code, or a stored schema fingerprint the Engine cannot recognize. After apply or an uncertain response, list migration history for recorded affected Requests, current policy states, and review URLs. If request_review.state is unavailable, the recorded migration outcome remains valid but its affected_requests is null; refresh history before resuming applications. Review stale approvals through existing Request review/update flows; do not automatically reapprove or retry application writes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "datasource_id": "<datasource_id>",
      "migration_id": "<migration_id>"
    },
    "name": "dry_run_project_database_migration"
  }
}

Input Schema

NameRequiredDescriptionDefault
migration_idYesID returned by propose_project_database_migration
datasource_idYesProject Database datasource UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: no backup is created, PostgreSQL sequence values can advance even on rollback, and approvals may be interrupted depending on which schema objects change. It also explains the request_review field's semantics and the degraded-but-valid outcome when request_review.state is unavailable. This is exactly the kind of side-effect and edge-case disclosure annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first two sentences are well front-loaded and high-value, but the remainder is a dense, run-on catalog of invalidation edge cases and remediation steps that is hard to parse and partially repetitive (list history / refresh history before resuming). The content is relevant but not tightly organized.

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?

There is no output schema, yet the description covers the return ('schema impact'), the request_review surface, and the null affected_requests case, plus the risks of an uncertain response. It is close to complete for a mutation-adjacent tool; a short statement of the top-level response shape would close the remaining gap.

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 100% and both parameters are documented there, including that migration_id comes from propose_project_database_migration. The description adds no additional meaning about the parameters themselves (e.g., no format or ID constraints), so the baseline 3 applies.

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 first sentence states a specific verb and resource plus the distinguishing mechanism: 'Execute a proposed migration in one transaction and roll it back, returning the schema impact.' Combined with the 'dry-run' framing, an agent can clearly separate this from apply_project_database_migration or propose_project_database_migration without opening another schema.

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?

Gives clear context for when this is appropriate (pre-apply validation, since it rolls back) and explicit when-not guidance for follow-up behavior: do not automatically reapprove or retry application writes, refresh history before resuming applications. It never names apply_project_database_migration as the alternative for actually persisting the migration, so the routing to the sibling is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources