Skip to main content
Glama

PostReach

Get a link to send a file

get_upload_link
Idempotent

Gives a one-time link to send a file from your own code tool, such as an image you generated or a PDF you made for LinkedIn, so it can go on a post. PUT the file's exact bytes to the link with exactly the headers it gives, call finish_upload for its media_id, then pass that in media_ids on create_draft or update_draft. Use it when the file is in a code tool that can reach the internet. Don't use it for a file on the person's computer: that's attach_media. Up to 64 MB. PDFs post to LinkedIn only. Example: filename "a1b2c3.jpg", bytes 183021, type "image/jpeg".

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": {
      "filename": "<filename>",
      "bytes": "<bytes>",
      "type": "<type>"
    },
    "name": "get_upload_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesThe file's type, such as image/jpeg, image/png or video/mp4. PostReach takes JPEG, PNG, GIF, WebP, HEIC, AVIF, MP4, MOV and PDF
bytesYesThe file's exact size in bytes, as your code tool reads it
filenameYesThe file's name, such as a1b2c3.jpg. Folders are left off
workspace_idNoThe workspace the post is for, from get_publishing_context. Left out, the person's only workspace
idempotency_keyNoA unique value for this file, such as a UUID. Asking again with the same key gives the same upload, with a new link if the first ran out

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / type / description
      Previous value: -"The file's type, such as image/jpeg, image/png or video/mp4. PostReach takes JPEG, PNG, GIF, WebP, HEIC, AVIF, MP4 and MOV"New value: +"The file's type, such as image/jpeg, image/png or video/mp4. PostReach takes JPEG, PNG, GIF, WebP, HEIC, AVIF, MP4, MOV and PDF"
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety and retry semantics are covered structurally. The description adds genuinely useful constraints beyond them: a 64 MB cap, PDFs posting to LinkedIn only, and the requirement to PUT exact bytes with the exact headers returned. It stops short of describing the link's lifetime beyond "one-time", but the added context is well above the annotation baseline.

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 core purpose, then the required call sequence, then the exclusion, then limits and an example. Every sentence carries a distinct operational fact with no restatement of the name or title.

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 5-parameter tool with no output schema, the description covers the full call chain and the hard limits. A brief note on the shape of the returned link/headers object and its expiry would make it fully self-sufficient.

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; the description goes further with concrete example values (filename "a1b2c3.jpg", 183021 bytes, type "image/jpeg") and the 64 MB ceiling that maps the abstract bytes parameter to a real limit. The workspace_id and idempotency_key semantics are left entirely to the schema.

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 and resource ("Gives a one-time link to send a file") plus the scope ("from your own code tool"), which distinguishes it immediately from attach_media for local files. An agent can identify it without opening the 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?

Explicitly states when to use ("Use it when the file is in a code tool that can reach the internet") and when not ("Don't use it for a file on the person's computer: that's attach_media"). It also names the downstream steps and the sibling tools to call after (finish_upload, create_draft, update_draft).

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