Skip to main content
Glama

Edit an AI prompt

update_prompt

Save new text for the fit_check AI prompt. Each edit creates a new version while older ones are kept, so you can refine instructions and judgment without changing the fixed answer format.

Instructions

Save new text for one of the AI prompts (fit_check), 1 to 20,000 characters. Every edit becomes a new version; older versions are kept. Send the WHOLE prompt, not only the changed part. An edit can change the wording and the judgment, but not the shape of the answer: the answer format is checked by code.

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": {
      "name": "<name>",
      "text": "<text>"
    },
    "name": "update_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesWhich prompt. One of: fit_check.
textYesThe full new prompt text.

Output Schema

NameRequiredDescriptionDefault
nameYes
textYes
versionYesThe version number. Version 1 is the shipped default, saved the first time the prompt was used.
saved_atYesWhen this version was saved (ISO 8601, UTC).
is_defaultYesTrue when this version was saved from a shipped default (possibly from an earlier release; reset_prompt saves the current one), false when it is the user's edit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses versioning behavior (every edit creates a new version, older versions retained), full-replacement semantics, and a hard constraint that the answer format is validated by code. It does not mention authentication, permissions, or failure modes for an invalid format.

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?

Three short sentences, front-loaded with the action and target, then the character bound, then the two most easily missed behaviors (versioning and full-text submission). No wasted wording and no repetition of schema fields.

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?

An output schema exists, so return values need not be explained, and the description covers the non-obvious mutation semantics well. The remaining gap is limited to permission/authorization expectations and what happens when the text violates the answer-format check.

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%, so the schema already documents both parameters, giving a baseline of 3. The description adds real meaning for 'text' by stressing whole-prompt replacement and the 1–20,000 character bound, but adds nothing new about the 'name' parameter beyond what the schema enum text says.

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 gives a specific verb and resource ("Save new text for one of the AI prompts") plus the allowed target (fit_check) and a length bound, so an agent knows exactly what this call does. It does not explicitly contrast itself with get_prompt or reset_prompt, leaving the sibling differentiation to name inference.

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?

It gives concrete operational guidance: send the WHOLE prompt rather than a diff, and edits may change wording/judgment but not the answer shape. It lacks an explicit statement of when to prefer this over reset_prompt or set_criteria, so it stops short of full when/when-not routing.

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