Skip to main content
Glama

Update Link

update_link
DestructiveIdempotent

Update an existing short link — change destination, expiry, click cap, password, routing rules, OG meta, geo-restriction, or ad-click-ID passthrough.

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

Input Schema

NameRequiredDescriptionDefault
urlNoNew destination URL
og_metaNoUpdate OG meta (Pro+), or null to remove it
passwordNoSet a new password (min 4 chars), or empty string "" to remove password protection
expires_atNoNew ISO-8601 expiry datetime, or null to remove
max_clicksNoNew click cap, or 0 to remove limit
short_codeYesThe short code of the link to update
routing_rulesNoReplace all routing rules (Pro+), or null to remove all rules
geo_restrictionNoUpdate geo-restriction (Pro+), or null to remove it entirely
pass_ad_click_idsNoEnable/disable gclid/fbclid passthrough
expire_fallback_urlNoOptional URL to redirect visitors to when this link expires, instead of showing the expiry error page. Set to null or empty string to remove. Pro+ only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the description's job is to add behavior beyond that. Instead it mostly restates the parameter list from the schema: it never warns that routing_rules and geo_restriction are wholesale replacements, never confirms that omitted fields are left untouched, and says nothing about permissions or Pro+ gating consequences.

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?

A single front-loaded sentence with the verb and resource first and the mutable fields following; no filler, no restated title, nothing that could be cut without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 parameters, nested objects, a required short_code, no output schema, and a destructive annotation, the definition should say more about partial-update and replace-vs-merge semantics. The schema covers per-field details and the null-to-remove conventions, so the description is not inadequate, but it leaves a real gap for a destructive mutation 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 baseline is 3. The description adds a useful framing that this is a partial-field update ("change destination, expiry, ..."), but it does not add syntax, format, or interaction semantics beyond what each schema property description already provides.

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 gives a specific verb and resource ("Update an existing short link") plus an enumeration of the mutable fields, which makes it clearly distinct from create/shorten operations in the sibling list. It stops short of naming any sibling tool (e.g. delete_link, get_link) as an alternative, so it lands 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 Guidelines3/5

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

Usage is only implied by the verb "update" — an agent can infer this modifies an existing link rather than creating one, but there is no explicit when-not guidance, no mention of how it relates to delete_link or shorten_url, and no statement about partial-update behavior (what happens to fields that are omitted).

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