Skip to main content
Glama

calculate_db_capacity_and_config

Estimate row size, table footprint, and B-Tree index memory for millions of rows, then generate tuned PostgreSQL or MySQL configuration parameters for the target hardware.

Instructions

Estimate physical row size, heap/clustered table footprint, and B-Tree index memory requirements for N million rows, and generate tuned postgresql.conf or my.cnf parameters.

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>"
    },
    "name": "calculate_db_capacity_and_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
dialectYes
schema_ddlNo
server_hardwareNo
estimated_rows_per_tableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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, yet it does not say whether this is a pure offline calculation or connects to a live database, whether anything is created or modified, or how accurate the estimates are. It hints at output shape (tuned config parameters) but leaves the safety and side-effect profile entirely unstated.

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 dense sentence that front-loads the estimation work and then the config-generation output; every clause maps to a real capability. Slightly run-on, but there is no filler.

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?

Given zero annotation coverage, no output schema, and a nested-parameter schema with undocumented input paths, the description is not complete enough. It does not state what the returned estimate looks like (units, per-table breakdown, config format) or what happens when schema_ddl is omitted and only row estimates are given.

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 4 parameters including a nested server_hardware object with five sub-fields, and the description only loosely gestures at 'N million rows' and the postgresql vs mysql config targets. It never explains the relationship between schema_ddl and estimated_rows_per_table (which is required vs optional input path), nor what server_hardware values should represent.

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?

States specific verbs and resources: estimating row size, heap/clustered table footprint, and B-Tree index memory for N rows, plus generating tuned postgresql.conf/my.cnf parameters. This is clearly distinct from the sibling tools (partitioning, migrations, index recommendations, EXPLAIN analysis), so an agent can route to it without inspecting the schema.

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 usage context (sizing a database for N million rows and producing starting config values) is implied by the phrasing, but there is no explicit 'use when' statement, no exclusions, and no mention of alternatives among the many sibling analysis tools. The agent must infer that this is a pre-deployment capacity/config planning tool.

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