Skip to main content
Glama

update_link

Modify an existing short link's destination, slug, note, UTM fields, or disabled flag; only provided fields are changed.

Instructions

Change an existing link: its destination, slug, note, UTM fields or the disabled flag. Only the fields you pass are changed. Changing the slug changes the short URL, so old copies of it stop working.

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": {
      "id": "<id>"
    },
    "name": "update_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesLink id (UUID) as returned by shorten_url, shorten_urls or list_links.
noteNoNew private note.
slugNoNew slug. The short URL changes with it.
disabledNotrue stops the redirect, false turns it back on.
utm_termNoUTM term (paid keyword). Added to the destination URL.
utm_mediumNoUTM medium, e.g. email. Added to the destination URL.
utm_sourceNoUTM source, e.g. newsletter. Added to the destination URL.
destinationNoNew destination URL.
utm_contentNoUTM content (ad or link variant). Added to the destination URL.
utm_campaignNoUTM campaign name. Added to the destination URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv1.0.5
    • addedInput schema / properties / destination / description
      Added value: +"New destination URL."
    • addedInput schema / properties / disabled / description
      Added value: +"true stops the redirect, false turns it back on."
    • addedInput schema / properties / id / description
      Added value: +"Link id (UUID) as returned by shorten_url, shorten_urls or list_links."
    • addedInput schema / properties / note / description
      Added value: +"New private note."
    • addedInput schema / properties / slug / description
      Added value: +"New slug. The short URL changes with it."
    • addedInput schema / properties / utm_campaign / description
      Added value: +"UTM campaign name. Added to the destination URL."
    • addedInput schema / properties / utm_content / description
      Added value: +"UTM content (ad or link variant). Added to the destination URL."
    • addedInput schema / properties / utm_medium / description
      Added value: +"UTM medium, e.g. email. Added to the destination URL."
    • addedInput schema / properties / utm_source / description
      Added value: +"UTM source, e.g. newsletter. Added to the destination URL."
    • addedInput schema / properties / utm_term / description
      Added value: +"UTM term (paid keyword). Added to the destination URL."
  2. First observedv1.0.4

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety baseline is given. The description adds genuinely non-obvious behavior beyond that: it discloses partial-update semantics and warns that changing the slug breaks old copies of the short URL — a destructive consequence not conveyed by destructiveHint=false. It does not say whether empty strings clear note/UTM fields.

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 tight sentences with zero filler, front-loading the mutable field set, then the partial-update rule, then the highest-risk caveat. Each sentence carries distinct information an agent needs.

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 10-parameter mutation tool with no output schema and no enum constraints, the description covers what is being changed, the partial-update rule, and the main risk. It leaves open how to clear fields and what the call returns, gaps that are small but real given no output schema exists.

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 schema already documents all 10 parameters, including examples for utm_medium and utm_source and the meaning of disabled. The description groups the UTM fields conceptually but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb (change) and resource (an existing link), then enumerates the mutable fields: destination, slug, note, UTM fields, disabled flag. That clearly separates it from creation tools like shorten_url and from delete_link. It stops short of naming a sibling, so an agent must still infer that disable_link exists for toggling the disabled flag.

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?

'Only the fields you pass are changed' implicitly tells the agent to use this for partial updates rather than rewriting the whole link. However, there is no guidance on when to prefer this tool over disable_link for the disabled flag, nor on any prerequisites or rate limits. Usage context is implied rather than stated.

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