Skip to main content
Glama

PostReach

Add a file

attach_media
Read-only

Gives a link for the person to add an image, a video or a PDF to a draft in their browser, because you can't read files on their computer. The link opens that draft ready for a file: they add it and press Save changes, which saves it on the draft as a new version, and approving there is optional. For several drafts that need files, pass draft_ids: the same link opens the next one after each Save, so it's one trip. Use it when a post needs a file, such as Instagram. Don't re-encode a file the person gave you unless they ask. If you're making a video yourself, get_publishing_context's video_format goes straight through. Attach whatever there is, and PostReach converts it. When they're back, call open_review: it shows the new version, with each file's media_id. A file that's already in PostReach can go on another post by passing its media_id in media_ids to create_draft or update_draft, with no link. Example: draft_id "drf_1".

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": "attach_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idNo
draft_idsNoSeveral drafts, such as a week of photo posts: one link opens each in turn, so the person adds every file in one trip

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / draft_ids
      Added value: +{
      +  "description": "Several drafts, such as a week of photo posts: one link opens each in turn, so the person adds every file in one trip",
      +  "items": {
      +    "pattern": "^[A-Za-z0-9_-]{1,64}$",
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "draft_id"
      -]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=true, openWorldHint=false, destructiveHint=false), the description discloses that the tool itself only returns a link and that the human's Save action is what creates a new draft version, with approval optional — important context given the read-only hint despite an eventual write. It omits link lifetime/expiry and any permission prerequisites, which is a modest gap for a hand-off flow.

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 purpose is front-loaded, but the paragraph then unrolls as a rambling chain of run-on clauses covering the browser flow, batch behavior, re-encoding, format passthrough, conversion, and follow-up. Almost every fact is useful, yet the lack of grouping or structure makes it slower to scan than it needs to be.

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?

With no output schema, the description usefully says what is returned (a link) and what the agent should do next (open_review to surface the new version and media_ids). What remains unstated — link expiry, what happens if the person abandons the flow, or validation when draft_ids exceeds 20 — are edge cases rather than core gaps.

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 only 50%, but the description compensates by explaining that draft_ids produces a single link that walks through drafts sequentially after each Save ("one trip"), which is behavioral meaning the array schema alone does not convey. The singular draft_id is only illustrated by a bare example ("drf_1") and it never says whether both parameters can be supplied together or which wins.

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 names the concrete action (produce a link the person opens in their browser) and the resource (a draft's image/video/PDF), plus the reason (the agent can't read local files). It also distinguishes the tool from the media_ids path on create_draft/update_draft, so an agent can tell which route to take without inspecting schemas.

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?

It states when to use it ("Use it when a post needs a file, such as Instagram"), when not to (an already-uploaded file should go through media_ids on create_draft or update_draft, with no link), and what to do afterwards (open_review to get each file's media_id). Alternatives are named explicitly rather than inferred.

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