Skip to main content
Glama

usePrompt

Fetch a prompt template by ID and follow its instructions, filling variable placeholders from the conversation. If a variable value is unclear, prompt the user for it before executing.

Instructions

If the user has sent a message containing a prompt tag, use the this tool to fetch the prompt, and follow its instructions. For example, if the user sends ">> new-journal-entry", this tool will fetch the prompt with the ID "new-journal-entry", so you can use it to generate a new journal entry. Template variables may be included in the template, and are marked with double curly braces. For example, "Hello, {{name}}!". Based on your current session with the end user, fill in values for these variables. If a value cannot be determined, ask the user for it, then follow the instructions in the prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the prompt to use.
Behavior4/5

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

No annotations are provided, so the description carries that burden. It explains the process of fetching, following, variable substitution, and asking for missing values. However, it doesn't describe the return format or error behavior when the prompt ID doesn't exist.

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 description is moderately concise, with a few sentences covering purpose, example, and variable handling. The grammar error is minor, and no sentence is superfluous.

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 tool with one parameter and no output schema, the description provides adequate context for invocation: when to use, how to fill variables, and what to do if values are missing. It could mention what the tool returns, but it's not critical for execution.

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

Parameters5/5

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

The schema describes the 'id' parameter minimally, but the description adds valuable context: how the ID corresponds to a prompt tag in user messages, and how template variables in the prompt are populated from session context.

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?

The description clearly states the tool fetches a prompt and follows its instructions, with a concrete example ('>> new-journal-entry' maps to id 'new-journal-entry'). This distinguishes it from sibling tools like createPrompt and searchPrompts.

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?

The description gives an explicit trigger condition ('If the user has sent a message containing a prompt tag') and demonstrates usage with an example. It does not explicitly name alternatives or exclusions, but the trigger is sufficient for selecting this tool over siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/raisinbread/teleprompter'

If you have feedback or need assistance with the MCP directory API, please join our Discord server