Skip to main content
Glama

Convertir un curso en biblioteca de módulos

set_course_library

Marks a course as a shared module library or restores it to a normal catalog course, with conflict checks and confirmation before changing public visibility.

Instructions

Marca un curso del aula como biblioteca (guarda módulos compartidos y deja de verse en el catálogo) o lo devuelve a curso normal. No se puede si hay conflictos: una biblioteca no puede usar módulos compartidos, y no puede volver a curso mientras otros cursos usen sus módulos. Cambia lo que ve el público: pide confirmación.

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>",
      "is_library": "<is_library>",
      "confirm": "<confirm>"
    },
    "name": "set_course_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesDebe ser true: la persona confirmó esta acción
course_idYes
is_libraryYes
classroom_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4/5.0
Behavior3/5

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

Annotations only declare destructiveHint=false, so the description carries most of the weight. It adds real behavioral context: the change alters public visibility and requires confirmation. However, it never addresses permissions/authorization, whether data is preserved when the course disappears from the catalog, or what a failed conflict check returns — gaps that matter for a state-changing operation.

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?

Three tight sentences: what it does, when it is blocked, and the consequence plus confirmation requirement. Effects and constraints are front-loaded with no filler, and the parenthetical is used efficiently to pack effect details.

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 four-parameter mutation tool with no output schema and sparse schema descriptions, the definition covers the core behavior, side effects, and preconditions well. The remaining gap is the undefined `classroom_id` and the absence of any statement about the outcome of a successful vs. rejected call.

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 only 25%, with just `confirm` documented, so the description must compensate. It does clarify the toggle semantics behind `is_library` (librarify vs. revert) and reinforces the confirmation requirement, but `course_id` and especially `classroom_id` are never explained, leaving a quarter of the parameter surface unaddressed in both schema and prose.

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 concrete verb and resource ("Marca un curso del aula como biblioteca ... o lo devuelve a curso normal") and spells out both directions of the toggle, so an agent knows this is a reversible state flip rather than a generic update. The parenthetical states the concrete effects (stores shared modules, disappears from the catalog), which distinguishes it from siblings like set_published or update_course.

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 explicit blocking conditions for use: a library cannot use shared modules, and it cannot revert to a course while other courses use its modules. That is strong when-to-use/when-not guidance. What is missing is naming an alternative tool or stating what to do instead when those conflicts exist, so it falls short of a 5.

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