Skip to main content
Glama

Get prompt

get_prompt
Read-only

Read a single saved prompt by id — the full body/template, not just list metadata. Read-only. Returns null when no such prompt is visible to the caller.

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": {
      "prompt_id": "<prompt_id>"
    },
    "name": "get_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
prompt_idYes

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?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the 'Read-only' line is largely redundant. The description does add genuinely new behavior: it returns null when no such prompt is visible to the caller, which signals scoped visibility/permission filtering rather than an error — useful beyond the structured fields.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action, then the scope distinction, then the return behavior. No filler or repetition beyond the brief 'Read-only' restatement.

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 one-parameter read tool with no output schema, the description covers action, scope, and the null-case return, which is close to sufficient. It could go slightly further on the ambiguous id type and on what the body/template contains.

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 0% and the single required parameter is typed as integer-or-string with no explanation. The description only clarifies that prompt_id is an identifier ('by id') and does not resolve which type is expected or where the id comes from.

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

Purpose5/5

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

States a specific verb (read) and resource (a single saved prompt) scoped by id, and explicitly distinguishes the result from list metadata ('the full body/template, not just list metadata'). An agent can tell this apart from sibling list-style tools without inspecting any schema.

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: 'not just list metadata' suggests this is for when the full template body is needed, and the id requirement implies a prior listing step. However, it names no explicit alternative (e.g., save_prompt for writes) and gives no when-not conditions.

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.

Resources