Skip to main content
Glama

recommend_partitioning_and_archiving

Design declarative table partitioning and generate zero-bloat partition detach/drop retention runbooks, while validating composite primary key constraints for PostgreSQL and MySQL.

Instructions

Design declarative table partitioning (RANGE, LIST, HASH), validate composite Primary Key constraints (PART-PK-001), and generate zero-bloat partition detach/drop retention runbooks.

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": {
      "dialect": "<dialect>",
      "table_ddl": "<table_ddl>",
      "estimated_total_rows": "<estimated_total_rows>"
    },
    "name": "recommend_partitioning_and_archiving"
  }
}

Input Schema

NameRequiredDescriptionDefault
dialectYes
table_ddlYes
retention_monthsNo
monthly_growth_rowsNo
common_query_filtersNo
estimated_total_rowsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and falls short. It never says whether the tool is advisory-only or emits DDL/executes anything, what the runbook output looks like, or whether validation failures change the result; 'zero-bloat partition detach/drop' is a useful flavor detail but not a disclosure of side effects or return shape.

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?

A single front-loaded sentence layering the three capabilities with no filler, which is efficient. Slight deduction for the opaque 'PART-PK-001' rule code, which consumes space without clarifying anything to an agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter, 3-required tool with no annotations, no output schema, and zero schema description coverage, the description is too thin. It omits output shape, failure modes, and the meaning of half the inputs, so an agent cannot confidently invoke it on the first try.

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

Parameters2/5

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

Schema description coverage is 0% across 6 parameters, so the description must compensate and largely does not. It hints at partitioning strategy, retention, and composite-PK validation, but never explains dialect (the one enum), table_ddl, estimated_total_rows, monthly_growth_rows, or common_query_filters, all of which an agent must guess at.

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?

Three specific verbs (design, validate, generate) mapped to specific resources (table partitioning strategies, composite PK constraints, retention runbooks) with the RANGE/LIST/HASH scope stated. This clearly distinguishes it from sibling tools like recommend_indexes_for_queries or calculate_db_capacity_and_config, though it never names those siblings explicitly.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus the capacity, index-recommendation, or migration-planning siblings, nor any prerequisites or exclusions. The partitioning/retention topic implies the situation, but an agent must infer that this is for large tables with growth and retention needs rather than being told.

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