Skip to main content
Glama

Update link · 更新链接(短.在线)

update_link
Destructive

修改自有短链的标题或目标地址。需要 links:update。未验证邮箱或注册未满 7 天只能改标题。不会重新启用短链。PREMIUM_ALIAS_FROZEN。 Change the title or destination of a link you own. Requires links:update. Unverified email or an account under 7 days old can change the title only. Does not re-enable a link. PREMIUM_ALIAS_FROZEN.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "example",
      "title": "Notes"
    },
    "name": "update_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesShort code or link id you own.
titleNoTitle, at most 256 characters. Stored on the short link.
destinationNoNew http(s) destination. Refused when the email is unverified, the account is under 7 days old, the link is disabled, quarantined, or reported, or the 24 hour cap is used.

Output Schema

NameRequiredDescriptionDefault
idNo
okYes
codeNo
toolNo
typeNo
errorNo
stateNo
titleNo
aliasesNo
featureNo
messageNo
acceptedNo
retryableNo
short_urlNo
created_atNo
expired_atNo
request_idYes
status_urlNo
destinationNo
resend_pathNo
short_url_asciiNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / accepted
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / aliases
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Added
  3. Removed
  4. Changed4 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "destination": "https://example.com/notes",
      +    "id": "example",
      +    "title": "Notes"
      +  }
      +]
    • changedInput schema / properties / destination / description
      Previous value: -"Destination HTTPS/HTTP URL to shorten. Required. Do not send longUrl."New value: +"Optional destination URL (lowercase http or https, no surrounding whitespace). update_link is not available yet; this call does not update the link."
    • addedInput schema / properties / id / description
      Added value: +"Short code / link id. update_link is not available yet; this call does not update the link."
    • addedInput schema / properties / title / description
      Added value: +"Optional link title, at most 256 characters. update_link is not available yet; this call does not update the link."
  5. Changed18 schema fields changed
    • changedInput schema / properties / destination / description
      Previous value: -"New destination URL"New value: +"Destination HTTPS/HTTP URL to shorten. Required. Do not send longUrl."
    • removedInput schema / properties / id / description
      Removed value: -"Short code / link id you own"
    • addedOutput schema / properties / code / const
      Added value: +"FEATURE_NOT_AVAILABLE"
    • removedOutput schema / properties / created_at
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / destination
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / error / const
      Added value: +"FEATURE_NOT_AVAILABLE"
    • addedOutput schema / properties / feature
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / id
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / ok / const
      Added value: +false
    • addedOutput schema / properties / retryable / const
      Added value: +false
    • removedOutput schema / properties / short_url
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / short_url_ascii
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / state
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / status_url
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / title
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / tool
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / type
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "request_id"
      -]New value: +[
      +  "ok",
      +  "error",
      +  "code",
      +  "feature",
      +  "tool",
      +  "message",
      +  "request_id",
      +  "retryable"
      +]
  6. Changed18 schema fields changed
    • changedInput schema / properties / destination / description
      Previous value: -"Destination HTTPS/HTTP URL to shorten. Required. Do not send longUrl."New value: +"New destination URL"
    • addedInput schema / properties / id / description
      Added value: +"Short code / link id you own"
    • removedOutput schema / properties / code / const
      Removed value: -"FEATURE_NOT_AVAILABLE"
    • addedOutput schema / properties / created_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / destination
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / error / const
      Removed value: -"FEATURE_NOT_AVAILABLE"
    • removedOutput schema / properties / feature
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / id
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / ok / const
      Removed value: -false
    • removedOutput schema / properties / retryable / const
      Removed value: -false
    • addedOutput schema / properties / short_url
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / short_url_ascii
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / state
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / status_url
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / title
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / tool
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / type
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "error",
      -  "code",
      -  "feature",
      -  "tool",
      -  "message",
      -  "request_id",
      -  "retryable"
      -]New value: +[
      +  "ok",
      +  "request_id"
      +]
  7. Changed3 schema fields changed
    • changedInput schema / properties / destination / description
      Previous value: -"http(s) destination URL — Soft C SSRF no-fetch applies"New value: +"Destination HTTPS/HTTP URL to shorten. Required. Do not send longUrl."
    • removedOutput schema / properties / soft_c_state
      Removed value: -{
      -  "const": "not_live",
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "error",
      -  "code",
      -  "feature",
      -  "tool",
      -  "message",
      -  "soft_c_state",
      -  "request_id",
      -  "retryable"
      -]New value: +[
      +  "ok",
      +  "error",
      +  "code",
      +  "feature",
      +  "tool",
      +  "message",
      +  "request_id",
      +  "retryable"
      +]
  8. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the mutation risk profile is covered; the description usefully adds the permission scope, the eligibility gating, and the guarantee that it will not re-enable a link. However, it never explains what makes the operation destructive (overwriting existing title/destination) and leaves 'PREMIUM_ALIAS_FROZEN' as an unexplained token, so added context is partial rather than rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The English text is front-loaded and tight, but the full Chinese and English versions are verbatim duplicates, roughly doubling length without adding information for an agent. The trailing 'PREMIUM_ALIAS_FROZEN' code is unexplained and reads as noise at the end of the description.

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 3-parameter mutation with an output schema, the description covers the essential callable facts: required scope, eligibility gates, and the no-re-enable side effect. The remaining gap is the undefined PREMIUM_ALIAS_FROZEN marker and no statement of whether a partial update leaves untouched fields intact.

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% and the destination property already spells out the refusal conditions, so the description adds no format, syntax, or per-parameter meaning beyond the schema. The one useful addition is that under the restricted states only the title may be changed, which is a constraint on parameter combination rather than new semantics.

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?

The description states a specific verb and resource ('Change the title or destination of a link you own'), scopes it to owned links, and explicitly bounds it against adjacent behavior ('Does not re-enable a link'), which separates it from disable_link. An agent can distinguish it from siblings such as disable_link or get_link without opening a 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?

It gives concrete when-you-cannot conditions (unverified email, account under 7 days, and in the schema also disabled/quarantined/reported links, 24-hour cap) and a scope prerequisite (links:update). It stops short of naming a sibling to use instead for re-enabling, so the alternative is only implied by negation.

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