Skip to main content
Glama

Update Prompt

update_prompt
DestructiveIdempotent

Edit an active question’s text, category and assignments together, preserving its ID, enabled state and omitted fields. Requires at least one editable field. Null or [] clears classification arrays. Changing wording keeps prior history and warns that old evidence measured the old wording. To restore a retired question use reactivate_prompt first. Use get_scan_config for current strategy definitions and list_prompts for saved questions. Returns the complete saved prompt with the same fields as list_prompts, retiredMatches (empty after success), and working scanConfig. Does not launch a Scan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoFree-form labels. Omission preserves on edit/restoration; null or [] clears.
textNo
siteIdYesSite or Topic ID from list_sites_and_topics.
regionsNoExact prompt-selectable refs from list_regions. Omission preserves on edit/restoration; null or [] inherits scan defaults, then Global if defaults are empty.
categoryNo
personasNoAudience definition IDs or names from get_scan_config.personas. Include relevant audiences in the creation call. Omission preserves on edit/restoration; null or [] clears.
productsNoStrategy product/service IDs or names from get_scan_config.products. Optional for Topics. Omission preserves on edit/restoration; null or [] clears.
promptIdYesQuestion ID from list_prompts, including retired questions.
journeyStagesNoDefinition IDs or names from get_scan_config.journeyStages. First is primary; separate from category. Optional for Topics. Omission preserves on edit/restoration; null or [] clears both stages and primary.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
summaryYes
scanConfigYes
retiredMatchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Although annotations already declare destructive=true, idempotent=true and openWorld=false, the description adds the behavior an agent cannot get from them: which fields survive an edit, that null/[] clears classification arrays, that rewording preserves history and emits a stale-evidence warning, and that no Scan is launched. That is real added context for a mutation tool.

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?

Front-loaded with the core action and preservation semantics, and each sentence carries information for a 9-parameter mutation tool. It is dense to the point of stacking several rules per sentence, but there is no filler.

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 rich annotations and a real output schema, the description covers the essentials: prerequisites, side effects, history implications, sibling routing, and a return summary. Nothing an agent needs to call it correctly is absent.

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 78% and the schema already documents the null/[] vs omission rule per field, so much of the description's parameter prose is a restatement. It does add value by synthesizing the anyOf constraint into 'requires at least one editable field' and by noting regions fall back to scan defaults then Global, which is easy to miss in the schema.

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?

States a specific verb and resource (edit an active question) and enumerates exactly what is editable: text, category and assignments. It also names the preserved invariants (ID, enabled state, omitted fields), which is what distinguishes it from create_prompt, retire_prompt and reactivate_prompt in the sibling list.

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?

Gives prerequisites ('Requires at least one editable field'), routes the retired-question case explicitly to reactivate_prompt, and points to get_scan_config and list_prompts for the IDs/definitions the caller needs. An agent can pick this tool over its siblings without further inference.

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