Skip to main content
Glama

Disable link · 停用短链(短.在线)

disable_link
DestructiveIdempotent

停用你拥有的短链,停用后短链和二维码将停止跳转。需要 links:disable。幂等。 Disable a link you own: its short link and QR code stop redirecting. Requires links:disable. Idempotent.

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"
    },
    "name": "disable_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesShort code or link id for a link you own.

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. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": "example"
      +  }
      +]
    • addedInput schema / properties / id / description
      Added value: +"Short code / link id. disable_link is not available yet; this call does not disable the link."
  5. Changed17 schema fields changed
    • 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. Changed17 schema fields changed
    • 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. Changed2 schema fields changed
    • 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.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description's 'idempotent' remark is redundant. However it does add value beyond the annotations by naming the required auth scope (links:disable) and spelling out the concrete blast radius: both the short link and its QR code stop redirecting. It is silent on reversibility (whether re-enabling via update_link is possible) and on failure modes such as an already-disabled or non-owned 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?

The verb and effect are front-loaded and each language version is a tight two-to-three sentence block with no filler. The only cost is that the bilingual duplication doubles the token footprint for identical content, which is a convention rather than padding.

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 single-parameter mutation tool with an output schema present, the definition covers ownership, required permission, idempotency and the resulting effect. Missing only the reversibility story and whether an already-disabled link errors or succeeds silently.

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% and the single 'id' parameter is already documented as 'Short code or link id for a link you own.' The description echoes the ownership constraint but adds no new syntax, format, or resolution guidance, so the schema is doing the work.

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 verb+resource pair ('Disable a link' / 停用短链) and scopes it to links the caller owns, plus states the concrete outcome (short link and QR code stop redirecting). It is clearly distinct from read-oriented siblings like get_link, though it never explicitly contrasts itself with update_link, which could also alter a link's state.

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?

Usage context is clear: only for links you own, requires the links:disable scope, and safe to retry (idempotent). It does not explicitly say when to prefer this over update_link or a delete-style operation, so the 'when not to use' side is left implicit.

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