Skip to main content
Glama

Portada del curso

set_course_banner

Upload, replace, or remove a course cover image; images are optimized and saved as lightweight WebP from a local path or public HTTPS URL.

Instructions

Sube o reemplaza la portada de un curso que puedes editar (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": {
      "course_id": "<course_id>"
    },
    "name": "set_course_banner"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv0.7.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / classroom_id / description
      Removed value: -"Aula"
    • removedInput schema / properties / classroom_id / format
      Removed value: -"uuid"
    • removedInput schema / properties / classroom_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 / course_id / description
      Removed value: -"Curso"
    • removedInput schema / properties / course_id / format
      Removed value: -"uuid"
    • removedInput schema / properties / course_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
    • changedInput schema / required
      Previous value: -[
      -  "classroom_id",
      -  "course_id"
      -]New value: +[
      +  "course_id"
      +]
  2. Addedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

With only destructiveHint=false supplied, the description does real work: it discloses that the image is optimized and stored as lightweight WebP, that the course must be one you can edit (an edit-permission requirement), and that replacing an existing cover warrants human confirmation. There is a mild tension between 'reemplaza/quita una portada existente' and destructiveHint=false, but a banner swap is reversible and the confirmation warning already signals the impact.

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?

Four short sentences, front-loaded with the primary action before the removal variant, then the image-handling behavior, then the input options, then the caution. Each sentence carries information; only the WebP detail is arguably secondary.

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?

For a 5-parameter mutation tool with no output schema and a single annotation, the description covers the main paths but omits what the call returns (e.g. banner URL or confirmation) and what classroom_id does. An agent could invoke it correctly for the common cases but would be guessing on the scoping parameter.

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?

The description adds the either/or relationship between image_path and image_url and restates their formats, which the schema already largely documents at 60% coverage. course_id and classroom_id carry no explanation in either place, and the role of classroom_id (whether the banner is scoped to a classroom) is left entirely unclear.

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?

The description states a concrete verb set (sube / reemplaza / quita) on a specific resource (la portada de un curso), so the agent immediately knows what the tool changes. It does not explicitly distinguish itself from the similar sibling set_collection_banner, leaving the scope difference to be inferred from 'curso' 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?

It gives concrete operational guidance: use remove to delete the cover, send image_path for a local file or image_url for a public https link, and confirm with the person before replacing an existing cover. What is missing is any explicit comparison to alternatives (e.g. when to use this versus set_collection_banner).

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