Skip to main content
Glama

get_prompt

Read-onlyIdempotent

Retrieve a prompt's definition, active version, and version history before updating, publishing, rendering, or copying it; check if the stored template is plain text or a JSON messages array.

Instructions

Fetch a prompt's full definition, active version, and version history. Use this before updating, publishing, rendering, or copying a prompt when you need the stored template and metadata. template_format in the result shows whether the stored template is a plain string or a JSON messages array.

Input Schema

NameRequiredDescriptionDefault
prompt_idYesPrompt ID or slug to retrieve

Output Schema

NameRequiredDescriptionDefault
okYesWhether the tool call succeeded and returned structured data
dataNoStructured success payload when ok is true
errorNoStructured error payload when ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.9
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv1.0.1
  3. Removed
  4. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is fully covered by structured fields. The description adds one useful trait beyond that – the result's template_format indicating a plain string versus a JSON messages array – but says nothing about scoping, permissions, or history size.

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?

Three tight sentences: purpose, usage timing, then a result-format caveat. Front-loaded and free of filler, though the final sentence about template_format is a return-value detail that could arguably be deferred given the output schema.

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?

With full annotations, 100% schema coverage, and an output schema present, the description needs only purpose and routing, both of which it supplies. The main residual gap is distinguishing this tool from the version- and partial-specific siblings, which an agent facing 150+ tools would want.

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?

Only one parameter, prompt_id, and schema description coverage is 100%, so the schema already documents that it accepts an ID or slug. The description adds no syntax, format, or error-case detail beyond the schema, making the baseline 3 correct.

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?

States a specific verb and resource ('Fetch a prompt') and enumerates what is returned: full definition, active version, and version history. This goes beyond the name alone, but it never names or differentiates against close siblings like get_prompt_version, list_prompt_versions, or get_prompt_partial, so the agent must infer the boundary.

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?

Explicitly says to use it 'before updating, publishing, rendering, or copying a prompt when you need the stored template and metadata,' which gives concrete triggering contexts. It stops short of stating when NOT to use it or which sibling to pick when only a single version or a partial is needed.

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