Skip to main content
Glama

PostgreSQL MCP by InsightfulPipe

postgresql Prompts

prompts_menu
Read-only

PostgreSQL skills (prompts). To run a skill the user names, find it by name with request='menu', then read it with request='prompt_details'.

Operations:

  1. List Public Prompts: • request='menu' - No additional params needed • Returns: All public/system prompts available for postgresql

  2. List Custom Prompts: • request='menu', prompt_type='custom', workspace_id= • Returns: All custom prompts for the specified workspace

  3. Get Public Prompt Details: • request='prompt_details', prompt_id= • Returns: Full text/details of a public prompt

  4. Get Custom Prompt Details: • request='prompt_details', prompt_id=, is_custom=True, workspace_id= • Returns: Full text/details of a custom prompt

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": {
      "request": "<request>"
    },
    "name": "prompts_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes
is_customNo
prompt_idNo
prompt_typeNo
workspace_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

readOnlyHint=true already tells the agent this is a safe read, and the description adds real context beyond that: each operation's return contents (all system prompts, all workspace prompts, full prompt text) and the fact that custom access is scoped by workspace_id. It doesn't cover failure behavior for an invalid prompt_id or any authorization nuance, so not a 5.

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?

The framing sentence comes first and routes the agent into a numbered operation list with per-operation parameters and returns, so structure is strong and scannable. The 'Returns:' lines add some bulk, though they are largely functional rather than filler.

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 read-only dispatcher with an output schema already present, the description supplies the two-step discovery workflow and both public/custom branches, which is most of what an agent needs to call it correctly. The remaining gap is the ambiguous duplication of prompt_type versus is_custom for selecting custom prompts, which could lead an agent to set one and not the other.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry all parameter meaning, and it does document every one of the five parameters (request, prompt_type, workspace_id, prompt_id, is_custom) with which operation each belongs to. It does not define the accepted values of prompt_type beyond 'custom', nor explain the overlap between prompt_type='custom' and is_custom=True, which are two flags expressing the same intent.

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 resource (PostgreSQL skills/prompts) and states two concrete operations, listing the menu and fetching prompt details, and gives the framing sentence 'To run a skill the user names, find it by name... then read it'. An agent can tell this is the prompt-catalog tool rather than the data-query siblings. It stops short of explicitly contrasting itself with execute_action or query_data, keeping it at a 4.

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

Usage Guidelines4/5

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

Explicit workflow guidance is given: discover a prompt via request='menu', then fetch its body via request='prompt_details', with the public vs. custom branches spelled out. What is missing is any when-not guidance or exclusions (e.g. this tool does not execute the prompt), so it lands at 4 rather than 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.