Skip to main content
Glama

Import an image from a web address into the media library

colliedesk_kb_image_import
Idempotent

Fetch a PNG, JPEG, GIF or WebP image (at most 5 MiB) from its public http or https address and store it like colliedesk_kb_image_upload, so the article never loads it from the other site. Private, loopback and internal addresses are refused. The same bytes give the same image.

Needs: kb_media:create.

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

Input Schema

NameRequiredDescriptionDefault
altNoAlt text the editor offers when it inserts the image.
urlYesThe image's full http or https address.
keepNoKeep it in the library even if no article ever uses it.
nameNoWhat the media library shows; the file name when left out.

Output Schema

NameRequiredDescriptionDefault
imageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations it discloses a hard size ceiling, the accepted MIME set, an SSRF-style refusal policy for private/loopback/internal hosts, a required permission scope (kb_media:create), and content-addressed dedup behavior ('the same bytes give the same image'), which sharpens the idempotentHint into a concrete rule.

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?

Four tight sentences, front-loaded with the action and format/size constraints, followed by the security refusal, the idempotency note, and the permission requirement. No sentence is filler and the telegraphic phrasing stays readable.

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 a 4-parameter schema, full schema coverage, an output schema, and rich annotations, the description covers the risky and non-obvious parts (size, host policy, auth, idempotency). What it omits is the outcome on a duplicate import (whether an existing asset is returned or a new one created) and any explanation of the 'keep' flag's effect on library retention.

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?

Schema description coverage is 100%, so all four parameters (url, name, alt, keep) are already documented in the schema and the description adds no parameter-level meaning. The non-obvious 'keep' flag and the 'name' default are left entirely to the schema, which is acceptable at full coverage but not additive.

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 description names a specific verb and resource ('Fetch a PNG, JPEG, GIF or WebP image ... and store it') and explicitly ties the result to the sibling upload tool ('store it like colliedesk_kb_image_upload'), so an agent can distinguish remote-import from local-upload 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 Guidelines4/5

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

It supplies clear preconditions that function as selection criteria: the address must be public http/https, formats are restricted, size is capped at 5 MiB, and private/loopback/internal addresses are refused. The only gap is that it never states the inverse routing rule (use colliedesk_kb_image_upload for a local file) in so many words.

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