Skip to main content
Glama

Save a prompt word for word

cortex_save_prompt

Save a prompt, startup script, or template so the user can call it back later by typing #handle. It is stored exactly as given, character for character; never summarize or reformat it. It is staged for the user's review and served only after they approve it in the Myeline workspace. Saving a different text under an existing handle proposes a new version of that prompt; approval retires the previous version from serving, and the retired version stays on record in the workspace — nothing is ever deleted by this tool, and any version's text can be read back from its history. Retiring a prompt altogether, so its handle stops serving, is the user's own act in the Myeline workspace; no AI tool does it. Live secrets (API keys, passwords) are refused; reference environment variables instead.

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": {
      "handle": "<handle>",
      "body": "<body>"
    },
    "name": "cortex_save_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe full text, exactly as it should come back. Include every line.
titleNoOptional one-line description shown in prompt menus, e.g. 'Start a session on the reponame repo'.
handleYesThe short name to call it by: letters, numbers and dashes, e.g. reponame-startup. The user will type #reponame-startup.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say the call is not read-only and not destructive; the description supplies the whole workflow the agent cannot see elsewhere — the write is staged for user review and served only after approval, re-using a handle proposes a new version, approval retires the prior version from serving, and nothing is ever deleted, which is consistent with destructiveHint=false. Refusal of live secrets is an additional behavioral constraint the schema does not 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?

The purpose is front-loaded in sentence one, followed by behavior in descending order of importance (storage fidelity, approval, versioning, retirement, secrets). It is dense rather than padded, though 'nothing is ever deleted' and 'the retired version stays on record' cover overlapping ground and could be merged.

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?

For a mutation tool with no output schema, an approval gate, and three parameters, the description covers everything an agent needs to act correctly: exact-text storage, review-before-serving, version semantics, non-deletion guarantees, and the secrets refusal. The only minor omission is what the call returns immediately after staging, which is largely implied by 'staged for the user's review.'

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 coverage is 100%, so the baseline is 3, but the description genuinely adds meaning about the body contract: it is 'stored exactly as given, character for character; never summarize or reformat it,' and the handle is the token the user retypes as '#handle'. Title receives no added explanation, keeping this just short of 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 opens with a concrete verb and resource set ('Save a prompt, startup script, or template') and states the payoff ('call it back later by typing #handle'), which is specific enough for an agent to distinguish a write-a-prompt tool from the read/list siblings. It never names a sibling tool outright, so the differentiation is inferred rather than explicit.

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 when-to-use ('so the user can call it back later by typing #handle'), explicit when-not ('never summarize or reformat it'), and a clear exclusion of a neighbouring behavior: 'Retiring a prompt altogether... is the user's own act in the Myeline workspace; no AI tool does it.' It also routes the secrets case to an alternative ('reference environment variables instead').

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