Skip to main content
Glama

Send an upload page (the user uploads the files)

create_upload_link

Get an upload page for the user, who picks the files on their phone or computer (PDF / PPTX / images / large files). Which upload route: terminal ⇒ SPACE CLI (create_cli_token first); no terminal and text files up to 2 MB in total ⇒ publish_file; anything else or unsure ⇒ create_upload_link. Use this when you have NO terminal and the page is not text files within 2 MB (PDF, PPTX, images, large files), or when you are not sure: the platform creates an upload page link; give it to the user and they pick the files on their phone (WeChat works) or computer. The link is valid for 2 hours, succeeds only once, uploads only into this one page, and needs no login. To add a version to existing pages pass proposal_id (find it with list_proposals first); to create new pages pass title (optional folder_id). hold defaults to true: on a page others can already open, the approved version is NOT released until the user confirms the preview and you call publish_version; on a page only workspace members can open, it becomes current directly. After calling, hand the url to the user unchanged, say exactly which file to upload and ask them to come back and say “uploaded” when done; then call get_version with version_id every 15–30 seconds until it is no longer uploading: preview_ready or approved ⇒ show the user the receipt's preview_url to confirm (the live link once current; before publishing a single-use author link, never forward it to readers); converting ⇒ keep polling; review ⇒ tell the user it is under manual review. After upload, the page also links to the page details for preview and sharing; keep following up through get_version and do not publish a version that is waiting to publish before the user confirms. For a single HTML or Markdown file whose content you already have, use publish_file instead — the user does not need to do anything. Keywords: publish · web page · webpage · link · share · share to WeChat · WeChat link · html · pdf · markdown · upload · LivePage · proposal.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_upload_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
holdNo默认 true:传完过审后先不切给客户看,确认后调 publish_version。false = 过审即自动发布 Only takes effect once the page has readers outside the workspace (passcode, public, a folder link or a named link); on a page only workspace members can open it is ignored, and the approved version becomes current directly without notifying anyone.
noteNoWhat changed this time: one line for subscribers and teammates, 20 characters or fewer, for example “Revised pricing after client feedback”. It appears in the update reminder; without it the reminder only says the version number, and the platform will not make one up.
titleNo新建一份时的标题
folder_idNoOnly when creating a new page: destination folder; omit to keep it out of any folder.
proposal_idNo给已有页面传新版本时传;与 title 二选一

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / hold / description
      Previous value: -"默认 true:传完过审后先不切给客户看,确认后调 publish_version。false = 过审即自动发布"New value: +"默认 true:传完过审后先不切给客户看,确认后调 publish_version。false = 过审即自动发布 Only takes effect once the page has readers outside the workspace (passcode, public, a folder link or a named link); on a page only workspace members can open it is ignored, and the approved version becomes current directly without notifying anyone."
  2. Changed1 schema field changed
    • changedInput schema / properties / note / description
      Previous value: -"Version note, for example: V2, revised pricing after client feedback."New value: +"What changed this time: one line for subscribers and teammates, 20 characters or fewer, for example “Revised pricing after client feedback”. It appears in the update reminder; without it the reminder only says the version number, and the platform will not make one up."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, non-idempotent), while the description adds real behavioral detail: the link is valid 2 hours, succeeds exactly once, uploads into only this page, and requires no login. It also explains the non-obvious hold semantics on public vs workspace-only pages and prescribes the post-call loop (hand url unchanged, poll get_version every 15–30 s, map each state to an action, never forward the single-use author link).

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 routing rule and the 'anything else or unsure' fallback are stated twice in near-identical form, and the polling paragraph is a long run-on of nested conditionals. Content is front-loaded correctly, but several clauses could be merged or cut without losing information.

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 multi-step, stateful workflow with no output schema, the description covers almost everything an agent needs, including the get_version status-to-action mapping. The remaining gap is that it never says where version_id and url come from — the response payload itself is only implied ('give it to the user', 'receipt's preview_url').

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 baseline is 3, but the description adds genuine meaning: proposal_id means 'add a version to an existing page' and is discoverable via list_proposals, while title+folder_id are for creating a new page. That clarification of the proposal_id/title either-or is the main value-add above the schema, which already documents hold and note well.

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 first sentence states a specific verb and resource — 'Get an upload page for the user, who picks the files' — and immediately scopes it to PDF/PPTX/images/large files. It explicitly names the two siblings it is not (SPACE CLI via create_cli_token, and publish_file), so an agent can route without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives a full decision tree: terminal ⇒ create_cli_token first; no terminal plus text files ≤2 MB total ⇒ publish_file; anything else or unsure ⇒ this tool. It repeats the fallback for the unclear case and again tells the agent to use publish_file for a single HTML/Markdown file whose content is already in hand.

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