Skip to main content
Glama
Upload-Post

Upload-Post

Official

Upload document (LinkedIn)

upload_document

Publishes PDF, PPT, PPTX, DOC, or DOCX documents to LinkedIn with a required title, optional first comment, preview approval, and scheduling or queueing.

Instructions

Publish a document (PDF / PPT / PPTX / DOC / DOCX) to LinkedIn. Title is required. firstComment posts a comment under the document right after it is published. LinkedIn mentions: write @Exact Page Name, @Name or @company-vanity in the LinkedIn text. A company name must match the Page's name on LinkedIn exactly, capitals included, or it is published as plain text. Publishing now needs the user's approval: call it first without confirmed to get a preview (nothing is sent), show the user exactly what will go out, and repeat the call with confirmed: true only after they approve. Calls with scheduledDate or addToQueue run straight away, since the post can still be reviewed and cancelled before it goes out.

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": {
      "documentPathOrUrl": "<documentPathOrUrl>",
      "title": "<title>",
      "user": "<user>"
    },
    "name": "upload_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYes
titleYes
timezoneNoIANA timezone for scheduled date, e.g. 'Europe/Madrid'.
confirmedNoSet to true only after the user has seen the preview this tool returns without it and approved it. Without it nothing is sent.
addToQueueNoInsert into the user's posting queue instead of publishing now.
asyncUploadNoReturn immediately with request_id (default true).
descriptionNo
firstCommentNoComment posted under the document post right after publishing (e.g. the link you kept out of the post text). Cannot be changed once the post is scheduled.
scheduledDateNoISO 8601 date for scheduled publishing, e.g. '2026-12-25T10:00:00Z'. Omit for immediate post.
maxPostsPerSlotNo
documentPathOrUrlYes
linkedinVisibilityNo
targetLinkedinPageIdNo

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.23.0
    • addedInput schema / properties / firstComment
      Added value: +{
      +  "description": "Comment posted under the document post right after publishing (e.g. the link you kept out of the post text). Cannot be changed once the post is scheduled.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.17.2
    • addedInput schema / properties / confirmed
      Added value: +{
      +  "description": "Set to true only after the user has seen the preview this tool returns without it and approved it. Without it nothing is sent.",
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changedv0.11.1
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  4. Changed4 schema fields changedv0.7.0
    • removedInput schema / properties / autogenerate
      Removed value: -{
      -  "description": "If true, AI generates native per-platform title/description from the media and fills any field left empty.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / autogenerateDescription
      Removed value: -{
      -  "description": "Generate only the description with AI.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / autogenerateLanguage
      Removed value: -{
      -  "description": "Force the AI output language (ISO code); omit to auto-detect from the media.",
      -  "type": "string"
      -}
    • removedInput schema / properties / autogenerateTitle
      Removed value: -{
      -  "description": "Generate only the title with AI.",
      -  "type": "boolean"
      -}
  5. First observedv0.4.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description explains the two-phase approval gate and that an unconfirmed call sends nothing, that `firstComment` is immutable once scheduled, that scheduled/queued calls bypass the preview gate because they can still be cancelled, and the exact-match rule for organization mentions.

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 critical scoping and approval information is front-loaded, and no sentence is pure filler. The mention-syntax passage is dense and slightly detail-heavy relative to the rest, but it is actionable rather than repetitive.

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?

An output schema exists, so return-value explanation is unnecessary, and the description covers the risky parts of a 13-parameter publishing tool: approval gating, scheduling behavior and comment immutability. Gaps remain around page targeting, visibility levels and queue slot semantics that an agent would have to guess at.

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 only 46% across 13 parameters, and the description compensates for some (`firstComment`, `confirmed`, `scheduledDate`, `addToQueue`, `title` requiredness). It adds nothing about `linkedinVisibility`, `targetLinkedinPageId`, `maxPostsPerSlot`, `asyncUpload` or `documentPathOrUrl`, which remain undocumented in both places.

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 opens with a specific verb and resource ('Publish a document ... to LinkedIn') and enumerates supported formats (PDF/PPT/PPTX/DOC/DOCX), which distinguishes it from upload_photos, upload_video and upload_text by media type without needing the schemas.

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 explicit sequencing rules: call first without `confirmed` for a preview, show the user the output, then repeat with `confirmed: true` only after approval, and it carves out an exception for `scheduledDate`/`addToQueue`. It does not point at any named alternative tool for non-document posts, so routing guidance is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools