Skip to main content
Glama

Read a PostgreSQL application role

postgres_role_get
Read-onlyIdempotent

Retrieve a PostgreSQL application role to inspect its definition and attributes within a cluster and namespace.

Instructions

Read a PostgreSQL application role

Input Schema

NameRequiredDescriptionDefault
roleYes
clusterYes
namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is fully covered. The description adds nothing beyond that — no statement about error behavior for missing roles or clusters, or what a 'read' returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no filler, so nothing is wasteful. However, the brevity comes from under-specification rather than efficiency, leaving no front-loaded information an agent could act on.

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?

For a simple read-only lookup with four covering annotations, two required parameters and no output schema, the description need not explain return values. Still, it does not name the required cluster/role inputs, which is the main remaining gap. Final: 3.

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% for role and cluster; only the namespace $ref carries a description. The phrase 'application role' hints that the 'role' parameter names a PostgreSQL application role rather than a database user, which is a mild aid, but the description says nothing about the required cluster scoping or the role-name format.

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

Purpose2/5

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

Tautological: description restates name/title.

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 guidance on when to use this tool versus postgres_roles_list or the other role getters, and no mention of prerequisites such as needing an existing cluster or role. Usage must be inferred entirely from the name.

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

Deploy Server

Other Tools