Skip to main content
Glama

MySaaS Blog

Import media from URL

media_import_from_url

Import a public HTTPS image into the user's media library.

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": {
      "url": "<url>"
    },
    "name": "media_import_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
idempotencyKeyNoOptional retry key. Reuse the same key with the same payload to deduplicate agent retries.
originalFilenameNo

Output Schema

NameRequiredDescriptionDefault
mediaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare the write nature (readOnlyHint=false, destructiveHint=false) and idempotentHint=false, so the description's main added value is the source restriction to public HTTPS images and the destination (user's media library). It says nothing about size/type limits, failure modes, or what happens on re-import, which are the behaviors an agent would want for a write tool.

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?

A single front-loaded sentence with zero wasted words; the source constraint and destination arrive in the right order. It is arguably terse to the point of underspecification, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 values need not be explained, and annotations carry the safety profile. Still, for a write tool with three parameters and only 33% schema coverage, the description leaves file constraints, retry semantics beyond the schema, and the choice against media_import unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%: idempotencyKey is documented in the schema, but originalFilename has no description anywhere, and url is only implied ('public HTTPS image') without added format or constraint detail. The description does not compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Import), resource (media library), and input constraint (public HTTPS image), which lets an agent tell it apart from the sibling media_import without opening a schema. It stops short of naming that sibling or stating the distinction explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the precondition 'public HTTPS image', which rules out non-HTTPS sources and private assets, but there is no explicit when-to-use versus media_import, no prerequisite or permission guidance, and no exclusions.

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