Skip to main content
Glama

Resolve a share link

resolve_share_link
Read-onlyIdempotent

Use this when the user pastes a cloud drive share link (Google Drive, Baidu Netdisk 百度网盘) or a social post link (YouTube, X or Twitter, Reddit, TikTok, Pinterest, Instagram, Threads, Facebook, LinkedIn, Telegram, Bilibili) and wants the files, a direct download or the canonical link. Pass url, or the whole share message; password is the Baidu extraction code (提取码) when sent apart from the link. A drive link returns its files with name, size and date, and Google Drive a direct_url with ready curl, aria2c and Aria2 or Motrix hand-off. A social link returns canonical_url: the platform's own form of the link, tracking parameters dropped, short links followed once. Public links only; private files are refused. Nothing stored.

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": {
      "url": "https://drive.google.com/file/d/1oRRGuq_eDWEjauZZmowLu4m_57W3xqCc/view?usp=sharing"
    },
    "name": "resolve_share_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe share link as the owner sent it, such as https://drive.google.com/file/d/<id>/view or https://pan.baidu.com/s/1<code>?pwd=abcd.
passwordNoThe share's extraction code (Baidu 提取码), when the owner sent one apart from the link. A pwd= in the link is read on its own.

Output Schema

NameRequiredDescriptionDefault
as_ofYesISO 8601 time the data was published by its source or fetched from it. A cached answer keeps the time of its fetch.
filesYes
titleYes
sourceYesWho the data comes from, to cite and to check it against.
statusYes
messageYesOne plain sentence on what was found or what to do next.
downloadYesdirect: direct_url works with curl. sign_in_required: the drive lists the files but serves bytes only to a signed-in account.
providerYesThe registry id of the drive, such as google_drive or baidu.
truncatedYesTrue when the share holds more entries than the answer lists.
canonical_urlYesThe link in the provider's own canonical form, read from a social share link or a short link's redirect. Null for a drive share, which resolves to files instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • removedOutput schema / properties / canonical_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / canonical_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / files / items / properties / direct_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / files / items / properties / direct_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / files / items / properties / modified / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / files / items / properties / modified / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / files / items / properties / path / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / files / items / properties / path / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / provider / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provider / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / title / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / title / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed12 schema fields changed
    • addedOutput schema / properties / canonical_url / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / canonical_url / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / files / items / properties / direct_url / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / files / items / properties / direct_url / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / files / items / properties / modified / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / files / items / properties / modified / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / files / items / properties / path / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / files / items / properties / path / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / provider / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / provider / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / title / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / title / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
  3. Changed12 schema fields changed
    • removedOutput schema / properties / canonical_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / canonical_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / files / items / properties / direct_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / files / items / properties / direct_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / files / items / properties / modified / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / files / items / properties / modified / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / files / items / properties / path / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / files / items / properties / path / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / provider / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provider / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / title / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / title / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), and the description adds substantial behavior beyond them: drive links return file name/size/date, Google Drive adds a direct_url plus ready curl/aria2c/Aria2-Motrix hand-off, social links return a normalized canonical_url with tracking params stripped and short links followed once. It also discloses the refusal case for private files and that nothing is stored.

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?

Front-loaded with the trigger condition, then inputs, then returns, then constraints — a natural call-decision order. The long platform enumeration is dense but load-bearing, since it is how an agent matches an arbitrary pasted link.

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

Completeness5/5

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

Two simple parameters, an output schema that already documents return shape, and yet the description still covers inputs, both return variants, and the public-only limit. Nothing an agent needs in order to call it correctly or interpret the response is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: you may pass either a bare `url` or 'the whole share message', and that `password` is the Baidu extraction code only when sent apart from the link (a pwd= inside the link is read automatically). That resolves the main ambiguity of when to populate `password`.

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?

States a specific verb (resolve) and the two resource classes it handles (cloud drive share links and social post links), enumerating concrete platforms. An agent knows exactly what comes back — files, a direct download, or a canonical link — so it is distinguishable from list_share_providers 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?

The trigger condition is explicit: 'Use this when the user pastes a cloud drive share link ... or a social post link ... and wants the files, a direct download or the canonical link.' It also states a hard exclusion — public links only, private files refused. It does not name an alternative tool for the cases it declines (e.g., pointing at list_share_providers for discovery), which is the only missing piece for 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.