Skip to main content
Glama

Get and fill a prompt

get_and_fill_prompt
Read-onlyIdempotent

Get the latest version of a prompt by ID and fill in its {{variables}} with the values you provide.

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_and_fill_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
prompt_idYes
variablesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "default": "",
      -  "type": "string"
      -}
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower. The description earns credit for disclosing two traits beyond the annotations: resolution to the latest version, and that substitution happens using the caller's supplied values. It omits what happens when a template placeholder has no matching key, when extra variables are passed, or whether values are escaped — the main failure modes for a fill operation.

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?

One sentence, front-loaded with the action and introducing the fill semantics in the same clause. The {{variables}} notation visually mirrors the actual placeholder syntax, so nothing is wasted and nothing needs re-reading.

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 only two parameters and an output schema present, the description does not need to explain return values, and it covers both inputs plus the key behavioral fact that the latest version is used. The remaining gap is error/edge behavior around unmatched or missing variables, which for a templating tool is a modest but real omission.

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 carries the full burden for both parameters, and it does add real meaning: prompt_id identifies the prompt to resolve, and variables is described as the mapping that fills the {{...}} placeholders, which is far more than the schema's bare object type conveys. It still lacks format details such as where to obtain the variable names or how mismatches are handled, which keeps it below a 5.

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 a specific verb pair (get + fill) and a specific resource (a prompt by ID), plus the scoping detail that it returns the *latest* version. An agent can tell this apart from the version-mutating siblings (create_prompt_from_chat, save_prompt_version_from_chat) because it explicitly says it fills rather than saves. It stops short of 5 only because it never contrasts itself with the read-side siblings such as list_my_accessible_prompts.

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: the mention of "fill in its {{variables}}" signals the templating use case, and "latest version" hints that this is the retrieval path rather than a version-management path. There is no explicit when-to-use/when-not, and no instruction to prefer this over fetching a prompt some other way.

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