Skip to main content
Glama

Change a link

update_link

Change a link’s destination or settings: a field left out keeps its value, a value sets it, an empty string clears it where clearing is allowed (never url). The domain, back-half and path never change after creation. clearPassword removes the password.

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
idYesThe link’s id.
urlNoThe destination: a public http(s) URL.
tagsNoTags as "kind:name" tokens (kinds: PERSON, TEAM, CAMPAIGN, CHANNEL, PRODUCT, REGION, CUSTOM); a bare name is CUSTOM. At most 10.
titleNoThe link’s name, shown above the back-half and found by the list’s search.
liveOnNoWhen it starts answering: an ISO 8601 instant; blank or now makes it live at once. Fixed once live.
maskedNoMasked link: show the destination in a frame under the short link’s address instead of redirecting (a plan feature; own domains only; the destination must be https and allow framing).
expiresNoWhen the link stops answering: an ISO 8601 instant (UTC).
ogImageNoThe preview image, an https URL.
ogTitleNoThe preview title a chat or social app shows (a plan feature).
passwordNoProtect the link with a password (a plan feature).
utm_termNoUTM term.
maxClicksNoA click limit; the link expires once it is reached.
utm_mediumNoUTM medium.
utm_sourceNoUTM source added to the destination.
utm_contentNoUTM content.
utm_campaignNoUTM campaign.
clearPasswordNoRemove the password.
ogDescriptionNoThe preview description.
idempotency_keyNoAny unique value of yours (a UUID): a retry with the same value and the same arguments within 24 hours answers the first call’s result again instead of making a second link or change. The same value with other arguments is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load. It does well on mutation semantics and immutability (domain, back-half and path are fixed after creation) and explains clearPassword, but says nothing about required permissions, plan gating for password/masked/ogTitle, or whether the call returns the updated link.

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 compact sentences with no filler, and the most important fact (omission means no change) is front-loaded. The final sentence on clearPassword is slightly orphaned but still 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?

For a 19-parameter mutation with no annotations and no output schema, the description covers the highest-risk ambiguity — what happens to unspecified fields and what is permanently fixed — which is the main thing an agent could get wrong. Missing pieces such as auth/plan requirements are partially covered inside the schema descriptions.

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 every one of the 19 parameters in detail; the baseline is 3. The description adds a genuine cross-parameter rule (omit vs set vs empty-string) that the schema cannot express per-field, but it does not touch individual parameters like tags limits or idempotency_key.

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 and resource ("Change a link's destination or settings") and enumerates what is mutable versus immutable, which lets an agent separate it from create_link or set_link_status. It stops short of explicitly naming a sibling, but the mutate-in-place framing is unambiguous.

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?

The patch contract — omitted field keeps its value, a provided value sets it, an empty string clears it except for url — is exactly the guidance an agent needs to invoke this correctly, and the "never url" exclusion prevents a destructive mistake. It gives no guidance on when to prefer this over alternatives or on preconditions, which keeps it below a 5.

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