Skip to main content
Glama

Get a saved prompt

cortex_prompt
Read-only

Fetch one of the user's saved prompts (a reusable prompt, startup script, or template they saved word for word), or list them. When the user writes #some-handle (for example "#reponame-startup"), or asks to pull up, use, or run a saved prompt or script, call this with that handle. The text comes back exactly as saved and nothing else. If the user asked to see it, show it verbatim in a code block; if they invoked it to use it, carry it out as if they had typed it themselves. Call with no handle to list what is saved.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cortex_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
handleNoThe prompt's handle, with or without the #, e.g. reponame-startup. Omit to list the saved prompts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish readOnly, non-destructive, closed-world, so the safety profile is covered; the description adds genuinely new behavior by stating the text comes back exactly as saved and nothing else. It further specifies the two downstream behaviors (render verbatim in a code block if merely viewed, execute as if typed if invoked), which is behavioral disclosure the annotations cannot carry.

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?

Five sentences is longer than typical, but the purpose is front-loaded and each subsequent sentence covers a distinct concern (trigger, return fidelity, presentation, list mode). Nothing is redundant, though the trigger examples could be tightened slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A single-optional-parameter read tool with no output schema needs the description to define what comes back and how to treat it, and this one does both ('exactly as saved and nothing else' plus the show-vs-execute rule). Nothing an agent needs to invoke it correctly is missing.

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 coverage is 100% and the parameter description already states the handle accepts an optional '#' and that omitting it lists prompts. The description's handle guidance largely restates that, so it adds little meaning beyond the schema; baseline 3 applies when the schema does the work.

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 opens with a specific verb and resource: fetch a saved prompt (reusable prompt, startup script, or template saved word for word), or list them. That scope is concrete enough to separate it from cortex_save_prompt and the fact/query siblings, which the description implicitly does by framing this strictly as retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit triggers — the user writes #some-handle such as #reponame-startup, or asks to pull up, use, or run a saved prompt or script — and separately states that calling with no handle lists what is saved. It also tells the agent what to do with the result based on intent (show verbatim vs. carry it out), which is unusual and useful guidance.

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