Skip to main content
Glama

List Prompts

list_prompts

List all registered MCP prompts and return their names and descriptions; no bound project is required.

Instructions

List all registered MCP prompts.

Returns prompt names and descriptions. Does not require a bound project.

Arguments

  • session_id: string | null

    • Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.

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": {
      "args": "<args>"
    },
    "name": "list_prompts"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for list_prompts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • changedInput schema / properties / args / description
      Previous value: -"List prompts arguments"New value: +"Arguments for list_prompts."
    • addedInput schema / properties / args / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id."
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  2. First observedv1.3.2

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the return payload (names and descriptions) and a real precondition (no bound project needed). It is silent on ordering, pagination, and empty-list behavior, which keeps it short of a 5 for an unannotated tool.

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?

The summary is front-loaded and tight, but the entire Arguments section duplicates a parameter that is already 100% documented in the schema, which is pure redundancy for a single-argument tool. The markdown heading structure also adds visual weight disproportionate to two sentences of actual content.

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 one-argument list tool with no output schema and no annotations, the description covers purpose, return shape, and the session_id contract adequately. Only secondary details like ordering or empty-result behavior are missing, which are low-risk for this tool class.

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% and the description's Arguments section reproduces the schema text for session_id almost verbatim, adding no new syntax or format detail. The one genuinely useful added point is that the value must be passed through unchanged and not treated as a FastMCP transport id, but that is already in the schema too.

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 opens with a specific verb and resource ('List all registered MCP prompts') and states what comes back ('prompt names and descriptions'). It also adds a scoping fact ('Does not require a bound project') that separates it from project-scoped siblings, though it never names a sibling such as list_tools or list_resources for direct contrast.

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 line 'Does not require a bound project' implies a usage context (calling it before or without set_project), which is useful but only implicit. There is no explicit when-to-use/when-not-to-use guidance and no routing to list_tools or list_resources, leaving the agent to infer the choice.

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