Skip to main content
Glama

AI SDR Kit by Zevari

media_assets_attach_from_url

Attach an image (JPG/PNG/GIF, max 8MB) or PDF (max 100MB) already hosted at a public HTTPS URL to a draft post. Only for files the user explicitly provides a public URL for. For a file uploaded in Settings > Media use media_assets_attach with its ma_ id instead; for a local file or an image attached in the chat, direct the user to https://zevari.ai/dashboard/content/{contentId} where they can upload directly. Only valid while content is in 'draft' state.

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>",
      "url": "<url>",
      "kind": "<kind>"
    },
    "name": "media_assets_attach_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL to fetch
kindYes'image' for JPG/PNG/GIF; 'document' for PDF
positionNo
content_idYesDraft content row to attach to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses accepted formats, size limits (8MB image / 100MB PDF), the HTTPS-public accessibility requirement, and the draft-only state constraint. It stops short of describing failure behavior (e.g., unreachable URL, non-draft content) or what the successful attach returns, but the core operating envelope is clear.

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 action and the hard constraints, then routing advice, then the state precondition – no filler sentences. It is dense and slightly packed into one long opening sentence, but every clause carries actionable constraint 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 4-parameter mutation tool with no annotations and no output schema, the definition covers formats, size limits, access requirements, state preconditions, and alternatives to sibling tools. The remaining gaps – the position parameter's meaning and error/return behavior – are minor but real.

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 75%, and the description adds real meaning beyond it: it clarifies that url must be a public HTTPS URL the user explicitly provided, that kind maps image→JPG/PNG/GIF and document→PDF, and that content_id must reference a draft. Only position is left unexplained in both schema and description.

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 (attach an image/PDF to a draft post), plus scope constraints (public HTTPS URL, file types, size caps). It explicitly distinguishes itself from the sibling media_assets_attach, which handles ma_ ids from Settings > Media, so an agent can route without opening either 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 explicit when-to-use ('files the user explicitly provides a public URL for'), when-not, and named alternatives: media_assets_attach for uploaded files with an ma_ id, and a dashboard URL for local files or chat-attached images. The draft-state precondition is also stated, leaving little to inference.

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.