Skip to main content
Glama

estimate_ddl_blast_radius

Read-onlyIdempotent

Estimates DDL lock duration, connection-pool exhaustion risk, and blocked read/write query counts from migration SQL, table row count, and production QPS.

Instructions

Estimates lock duration in seconds, connection-pool exhaustion risk, and blocked read/write query counts given SQL DDL statements, target table row count, and production QPS.

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": {
      "sql": "<sql>",
      "tableRows": "<tableRows>",
      "qps": "<qps>"
    },
    "name": "estimate_ddl_blast_radius"
  }
}

Input Schema

NameRequiredDescriptionDefault
qpsYesPeak production queries per second hitting the target table.
sqlYesSQL DDL migration statements to model under production load.
dialectNoSQL dialect override (defaults to auto).
readRatioNoFraction of QPS consisting of SELECT reads vs writes (defaults to 0.78).
tableRowsYesTarget table row count in production (e.g. 15000000 for 15M rows).
avgLongQuerySecNoTail duration in seconds of active in-flight queries ahead of the DDL lock queue (defaults to 3.5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already establish this as a read-only, idempotent, non-destructive, closed-world operation, and the description is consistent with that (it 'estimates' rather than executes). It usefully discloses what the model returns and units (seconds), but says nothing about the modeling assumptions, accuracy limits, or behavior on unsupported DDL.

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 sentence that front-loads the outputs the agent cares about before listing inputs. There is no padding, hedging, or restated title.

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?

With no output schema, the description carries the burden of describing return values, and it does so by enumerating the three metric families. All six parameters are documented in the schema and three required ones are echoed. Minor gap: no mention of result format or failure cases.

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%, so the baseline is 3. The description adds modest value by explicitly tying sql, tableRows, and qps to the estimation model and calling out 'production QPS', slightly reinforcing how those inputs drive results beyond the schema's own wording.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Estimates') plus three concrete output metrics — lock duration in seconds, connection-pool exhaustion risk, and blocked read/write query counts — and names the required inputs. It is clearly distinguishable from audit-style siblings, though it never explicitly contrasts itself with them.

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 phrase 'under production load' implies this is a pre-migration risk assessment, so the when-to-use context is inferable. However, there is no explicit statement of when to prefer this over audit_sql_migration_locks or generate_zero_downtime_ddl, and no exclusions or prerequisites are given.

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