Skip to main content
Glama

Portada de la colección

set_collection_banner

Upload, replace, or remove a collection banner by providing an image path or public URL; the image is optimized and saved as a lightweight WebP.

Instructions

Sube o reemplaza la portada de una colección tuya (o la quita con remove). La imagen se optimiza y se guarda como WebP liviano. Envía image_path (archivo en este equipo) o image_url (https público). Confirma con la persona antes de reemplazar una portada existente.

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": {
      "collection_id": "<collection_id>"
    },
    "name": "set_collection_banner"
  }
}

Input Schema

NameRequiredDescriptionDefault
removeNotrue quita la portada actual en lugar de subir una
image_urlNoEnlace https público de la imagen
image_pathNoRuta de la imagen en este equipo (JPG, PNG, WEBP, GIF o AVIF)
collection_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.7.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / collection_id / description
      Removed value: -"Colección"
    • removedInput schema / properties / collection_id / format
      Removed value: -"uuid"
    • removedInput schema / properties / collection_id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / image_path / maxLength
      Removed value: -1024
    • removedInput schema / properties / image_path / minLength
      Removed value: -1
    • removedInput schema / properties / image_url / maxLength
      Removed value: -2000
    • removedInput schema / properties / image_url / minLength
      Removed value: -1
  2. Addedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the single destructiveHint=false annotation, the description discloses that the image is optimized and stored as lightweight WebP, that an existing cover is overwritten, and that human confirmation is advised before replacement. That last point sits in mild tension with destructiveHint=false since the tool can also erase the current cover, but the change is recoverable by re-uploading, so it is a nuance rather than a contradiction.

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 short sentences, front-loaded with the action and scope, then the storage behavior, the input choice, and the confirmation caveat. No filler and nothing repeated from the schema verbatim beyond necessary parameter callouts.

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 output schema and a thin annotation set, the description covers action, side effects on stored files, input sources, removal mode, and a safety caution. It could be tighter on precedence between image_path and image_url and on the ownership implied by "tuya", but nothing critical is missing.

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?

With 75% schema coverage the schema already documents image_path (local file, accepted formats), image_url (public https link) and remove. The description adds the either/or semantics of the two image sources, which is modest value over the schema itself, and says nothing about what happens if both are supplied.

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+resource ("Sube o reemplaza la portada de una colección") and even covers the inverse operation ("la quita con remove"). The word "colección" implicitly separates it from the sibling set_course_banner, but no sibling is named explicitly, so an agent must infer the course/collection distinction from the names alone.

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?

Gives clear operating context: use it to set or replace a collection cover, pass remove=true to delete instead, and confirm with the person before overwriting an existing cover. It does not name an alternative tool for course banners or for other collection mutations, so routing between siblings is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools