Skip to main content
Glama

AI SDR Kit by Zevari

media_assets_attach

Attach a file the user already uploaded in Settings > Media to a draft post, by its library id (ma_…). This is the normal way to add an image or PDF to a post: the user uploads in Settings > Media, clicks Copy ID, and gives you the id. Only valid while the content is in 'draft' state — for a scheduled post call content_cancel first, attach, then content_schedule again. If the user has a local file but no id yet, tell them to upload it at https://zevari.ai/dashboard/settings?section=media (or directly on https://zevari.ai/dashboard/content/{contentId}).

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": {
      "content_id": "<content_id>",
      "media_asset_id": "<media_asset_id>"
    },
    "name": "media_assets_attach"
  }
}

Input Schema

NameRequiredDescriptionDefault
positionNo
content_idYesDraft content row to attach to
media_asset_idYesLibrary asset id (ma_…) from Settings > Media 'Copy ID'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the draft-state constraint and the reschedule workflow, which is valuable, but says nothing about permissions, whether attaching replaces or appends to existing media, idempotency, or error behavior for an invalid/stale id.

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?

Front-loaded with the core action and the id requirement before the edge cases. Slightly heavy with two full URLs and a repeated upload path, but every sentence conveys actionable routing 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 3-param mutation tool with no annotations and no output schema, it covers the state constraint, the alternative workflow, and the missing-input recovery path. The notable hole is position ordering and what the call returns or overwrites.

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?

It explains media_asset_id well (ma_… prefix, 'Copy ID' from Settings > Media) and clarifies content_id as the draft row, but the third parameter position is never mentioned in either schema or description, leaving 33% of the schema coverage gap unaddressed.

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?

Specific verb and resource: "Attach a file the user already uploaded in Settings > Media to a draft post, by its library id (ma_…)". It also implicitly distinguishes itself from the URL-based sibling by requiring an existing library id, so an agent can tell the two apart.

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 framed as "the normal way to add an image or PDF to a post", with a state precondition (only valid in 'draft'), a concrete fallback workflow for scheduled content (content_cancel → attach → content_schedule), and an instruction for the no-id case (send the user to the upload URL).

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.