Skip to main content
Glama

delete_prompt_partial

Destructive

Deletes a prompt partial by ID, removing a reusable prompt fragment. This is irreversible; prompts referencing it via {{> name}} fail to render until the reference is replaced.

Instructions

Delete a prompt partial by ID. This cannot be undone, and prompts that reference it with {{> name}} will fail to render until you replace the reference.

Input Schema

NameRequiredDescriptionDefault
prompt_partial_idYesPrompt partial ID or slug to delete

Output Schema

NameRequiredDescriptionDefault
okYesWhether the tool call succeeded and returned structured data
dataNoStructured success payload when ok is true
errorNoStructured error payload when ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.9
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv1.0.1
  3. Removed
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavioral information beyond that: the operation is irreversible and it produces a cascade failure in any prompt that references the partial via {{> name}}. It does not mention permission requirements or what happens to historical versions, but the cascade consequence is exactly the kind of context 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, with the irreversibility stated immediately after the action and the rendering consequence front-loaded as the second sentence. Every clause earns its place.

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 and annotations cover the safety profile, so the description only needs to explain the action and its side effects, which it does well. The remaining gap is that it never clarifies the ID-vs-slug input or whether deleting a published partial behaves differently, which matters for a destructive tool.

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 description coverage is 100%, so the single parameter is already documented as 'Prompt partial ID or slug to delete'. The description restates 'by ID' and in fact narrows the schema's broader 'ID or slug' contract, adding no new meaning. Baseline 3 applies when the schema does the work, and here it does.

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?

Specific verb+resource: deletes a prompt partial identified by ID. This is clearly distinguishable from delete_prompt, delete_prompt_label, and delete_workspace in the sibling list because the resource noun is precise. It stops short of stating how it differs from other prompt-partial operations (e.g. that it removes all versions), so it is clear but not maximally differentiated.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: the warning that referencing prompts will break 'until you replace the reference' hints that update_prompt_partial or reference edits should precede or follow deletion, but no alternative or precondition is named explicitly. There is no statement of when deletion is inappropriate (e.g. a published/versioned partial) or which sibling to use instead.

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

Deploy Server

Other Tools