Skip to main content
Glama

relink_reference

Idempotent

Update a video's references after its linked video is moved or renamed by replacing the old path with the new absolute path and returning the updated video.

Instructions

A linked video was moved or renamed: from is the path the project knows it by, to where it is now (absolute). The link and every video layer that used from now use to. Returns the video as list_references does.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "relink_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesWhere the video is now, absolute
fromYesThe old absolute path
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
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. Changed1 schema field 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"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (not read-only, idempotent, not destructive, closed-world), so the description's job is to add beyond that — and it does, disclosing the cascading rewrite of every video layer that used the old path. It also points at the return shape by analogy to list_references. It does not say what happens if the target path is missing or already linked, which keeps it below 5.

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?

Three tight sentences with no filler: trigger, mechanics, return shape, in that order. The phrasing around 'to where it is now' is slightly compressed but still parseable, and nothing is redundant.

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 six-parameter mutation tool with no output schema, the description covers the operation, its cascading effect, and the return format, while the schema fully documents the optional metadata fields. The remaining gap is failure behavior — whether the new path must already exist and what happens on a stale reference.

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 baseline is 3; the description's gloss on from ('the path the project knows it by') and to ('where it is now, absolute') largely restates the schema's own 'old absolute path' and 'where the video is now, absolute'. The four optional provenance parameters (basis, message, feedback, confidence) get no mention in the description at all, though the schema documents them thoroughly.

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 names a specific operation and its trigger: a linked video was moved or renamed, and this rebinds the reference from the old path to the new one. The effect ('the link and every video layer that used from now use to') makes the operation unmistakable. It does not explicitly contrast itself with siblings like link_reference or delete_reference, which keeps it at 4 rather than 5.

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?

'A linked video was moved or renamed' is an explicit precondition that tells the agent exactly when to reach for this tool rather than re-linking from scratch. There is no stated when-not case or named alternative, so the guidance is clear but not complete.

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