Skip to main content
Glama
dockndevai

mcp-percona-pg

Get PostgreSQL parameters

get_pg_parameters
Read-onlyIdempotent

Retrieves tuned PostgreSQL parameters from a PerconaPGCluster's Patroni dynamic configuration, so you can inspect the correct settings instead of direct postgresql.conf edits.

Instructions

The tuned PostgreSQL parameters from spec.patroni.dynamicConfiguration.postgresql.parameters (the only correct place to set them — direct postgresql.conf edits are reverted by Patroni).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPerconaPGCluster name
contextNokube-config context to target (defaults to current-context)
namespaceNoNamespace (defaults to PERCONA_NAMESPACE if set)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.3
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds the useful Patroni-specific behavioral fact that direct postgresql.conf edits are reverted, giving real context beyond annotations, but discloses nothing about the returned shape or failure modes.

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 with a tight parenthetical; every clause adds information. Slightly dense but no waste.

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

Completeness3/5

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

For a simple read tool with full schema coverage and no output schema, the definition is adequate but does not describe what the returned parameters look like. An agent knows what to fetch but not the response format.

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 description coverage is 100%, with name, context, and namespace all documented inline, so the schema carries the burden. The description adds no parameter syntax or defaults of its own; baseline 3 applies.

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 names the exact resource (tuned PostgreSQL parameters) and pinpoints the source path `spec.patroni.dynamicConfiguration.postgresql.parameters`, which lets an agent distinguish it from get_pgbouncer_config and get_cluster. It lacks an explicit retrieval verb, but the resource and source are specific enough to convey purpose.

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?

Usage is implied rather than stated: the agent can infer this is the read path for PostgreSQL tuning. The 'only correct place to set them' remark hints at write semantics but never says when to prefer this tool over siblings like get_cluster or get_cluster_status, and gives no prerequisites.

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