Skip to main content
Glama

Database Connection Pool Calculator

connection-pool-calculator
Read-onlyIdempotent

Use this when a user asks how many database connections to configure. Uses the same max_connections, app server count, database cores, average query duration, and peak RPS model as the browser calculator.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
db_coresYesdb cores used by this deterministic tool.
peak_rpsYespeak rps used by this deterministic tool.
app_serversYesapp servers used by this deterministic tool.
avg_query_msYesavg query ms used by this deterministic tool.
max_connectionsYesmax connections used by this deterministic tool.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
next_stepYes
next_step_urlYes
why_follow_upYes
interpretationYes
saturation_pctYes
affiliate_contextNo
computation_basisYes
per_app_pool_sizeYes
peak_concurrent_demandYes
recommended_pool_totalYes
estimated_connection_memory_mbYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • removedInput schema / properties / app_instances
      Removed value: -{
      -  "type": "number"
      -}
    • addedInput schema / properties / app_servers
      Added value: +{
      +  "description": "app servers used by this deterministic tool.",
      +  "examples": [
      +    1
      +  ],
      +  "minimum": 1,
      +  "type": "number"
      +}
    • addedInput schema / properties / avg_query_ms
      Added value: +{
      +  "description": "avg query ms used by this deterministic tool.",
      +  "examples": [
      +    1
      +  ],
      +  "minimum": 0,
      +  "type": "number"
      +}
    • removedInput schema / properties / cpu_cores
      Removed value: -{
      -  "type": "number"
      -}
    • addedInput schema / properties / db_cores
      Added value: +{
      +  "description": "db cores used by this deterministic tool.",
      +  "examples": [
      +    1
      +  ],
      +  "minimum": 1,
      +  "type": "number"
      +}
    • addedInput schema / properties / max_connections / description
      Added value: +"max connections used by this deterministic tool."
    • addedInput schema / properties / max_connections / examples
      Added value: +[
      +  1
      +]
    • addedInput schema / properties / max_connections / minimum
      Added value: +1
    • addedInput schema / properties / peak_rps
      Added value: +{
      +  "description": "peak rps used by this deterministic tool.",
      +  "examples": [
      +    1
      +  ],
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "cpu_cores"
      -]New value: +[
      +  "max_connections",
      +  "app_servers",
      +  "db_cores",
      +  "avg_query_ms",
      +  "peak_rps"
      +]
    • addedOutput schema / properties / computation_basis
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / estimated_connection_memory_mb
      Added value: +{
      +  "type": "number"
      +}
    • removedOutput schema / properties / max_connections_utilization_pct
      Removed value: -{}
    • addedOutput schema / properties / peak_concurrent_demand
      Added value: +{
      +  "type": "number"
      +}
    • removedOutput schema / properties / per_app_instance
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / per_app_pool_size
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / saturation_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / warning
      Removed value: -{
      -  "type": "boolean"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "interpretation",
      -  "next_step",
      -  "next_step_url",
      -  "per_app_instance",
      -  "recommended_pool_total",
      -  "warning",
      -  "why_follow_up"
      -]New value: +[
      +  "computation_basis",
      +  "estimated_connection_memory_mb",
      +  "interpretation",
      +  "next_step",
      +  "next_step_url",
      +  "peak_concurrent_demand",
      +  "per_app_pool_size",
      +  "recommended_pool_total",
      +  "saturation_pct",
      +  "status",
      +  "why_follow_up"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "affiliate_context": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "affiliate": {
      +          "type": "string"
      +        },
      +        "cta_label": {
      +          "type": "string"
      +        },
      +        "disclosure": {
      +          "type": "string"
      +        },
      +        "framing": {
      +          "type": "string"
      +        },
      +        "posture": {
      +          "enum": [
      +            "secondary"
      +          ],
      +          "type": "string"
      +        },
      +        "slot_id": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "variant": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "affiliate",
      +        "cta_label",
      +        "disclosure",
      +        "framing",
      +        "posture",
      +        "slot_id",
      +        "url",
      +        "variant"
      +      ],
      +      "type": "object"
      +    },
      +    "interpretation": {
      +      "type": "string"
      +    },
      +    "max_connections_utilization_pct": {},
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "next_step_url": {
      +      "type": "string"
      +    },
      +    "per_app_instance": {
      +      "type": "number"
      +    },
      +    "recommended_pool_total": {
      +      "type": "number"
      +    },
      +    "warning": {
      +      "type": "boolean"
      +    },
      +    "why_follow_up": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "interpretation",
      +    "next_step",
      +    "next_step_url",
      +    "per_app_instance",
      +    "recommended_pool_total",
      +    "warning",
      +    "why_follow_up"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources