Skip to main content
Glama

delete_reference

Destructive

Stop using a reference video by unlinking linked references (leaving files on disk) or deleting media/ references; optionally remove associated marks.

Instructions

Stop using a reference video: a linked one is unlinked (the file on disk is left alone; a link whose file is gone is dropped too), one under media/ is deleted. Marks on it keep their clip and list as gone, unless examples="delete" removes them too.

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": {
      "path": "<path>"
    },
    "name": "delete_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe reference, e.g. media/ref.mov (list_references)
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
messageNoOne line saying why, kept with the change in the history
examplesNokeep: marks on it stay and list as gone; delete: they go tookeep
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
    • addedInput schema / properties / examples / description
      Added value: +"keep: marks on it stay and list as gone; delete: they go too"
    • addedInput schema / properties / path / description
      Added value: +"The reference, e.g. media/ref.mov (list_references)"
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say destructiveHint=true and idempotentHint=false; the description supplies the specifics that matter: the on-disk file survives for a linked reference, an already-broken link is cleaned up, a media/ reference is actually deleted, and marks survive as 'gone' unless examples="delete". That is precisely the beyond-annotation detail an agent needs before running a destructive 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?

It is a single dense sentence with nested parentheticals, so the two branches and the marks caveat are all front-loaded and nothing is wasted. Parsing costs a little readability, but every clause carries distinct behavioral information.

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?

For a destructive, six-parameter tool with no output schema, the description covers the risky semantics (what is and is not destroyed) and the examples parameter well. The remaining parameters (basis, message, feedback, confidence) are fully documented in the schema, so their absence from the description is acceptable.

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 goes further by explaining the downstream consequence of examples="delete" in relation to marks and their clip ('Marks on it keep their clip and list as gone, unless...'). That connects the parameter to real state changes rather than restating the enum.

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 ('Stop using a reference video') and immediately distinguishes the two behavioral branches: a linked reference is unlinked while a reference under media/ is deleted. An agent can tell this apart from delete_asset or link_reference/relink_reference without opening the schema.

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?

Clear context for when this applies (you want to stop using a reference) and the internal branching rule that selects behavior based on where the file lives. It stops short of naming alternatives such as delete_asset for removing the underlying file, so the agent must infer that distinction.

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