Skip to main content
Glama

Editar o crear elementos en bloque

edit_items

Edits or creates up to 200 Chispa classroom items—exam/quiz questions, flashcards, criteria, lessons, or modules—in one validated call, with dry-run preview before saving.

Instructions

Edita (y crea) hasta 200 elementos en una llamada. kind: exam_question, quiz_question, self_check, flashcard, scenario_criterion, lesson o module.

  • lines (preguntas, tarjetas, autoevaluación): una por línea, con el ID delante para editar: «@id | enunciado | op | *correcta | explicación: … | tema: … | lección: 2», «@id | anverso | reverso», «@id | pregunta | respuesta». Sin ID se crea en parent_id. Lo que no aparezca en la línea no cambia.

  • items: [{id, …solo los campos a cambiar}]. Campos: preguntas prompt, options, correct (desde 1), explanation, topic, lesson (número; 0 la quita), difficulty; self_check question, answer; flashcard front, back, published; scenario_criterion label, if_met, if_missed, topic, weight; lesson title, summary, key_idea, format, content, published; module title, objective, published, locked. "" borra un texto opcional. Todo se valida antes de guardar; dry_run=true solo valida. Confirma antes de publicar.

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": {
      "kind": "<kind>"
    },
    "name": "edit_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
itemsNo
linesNo
dry_runNo
parent_idNoExamen, lección o escenario donde crear (solo para elementos nuevos)
classroom_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the single destructiveHint=false annotation, the description discloses the 200-item batch limit, that everything is validated before saving, that dry_run performs validation only, that fields omitted from a line remain unchanged, and that an empty string clears an optional text field. It also warns to confirm before publishing. The field-clearing behavior is disclosed explicitly rather than hidden, so it supports the non-destructive hint rather than contradicting it.

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?

Front-loads the verb, batch limit, and kind list, then moves into mode-specific detail. Density is high but nearly every clause carries operational information (formats, field names, validation, dry_run). The run-on layout of the kind list and line examples makes it harder to scan than it needs to be.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter bulk mutation tool with no output schema and minimal annotations, the definition covers input grammar, per-kind fields, partial-update semantics, validation, dry_run, and the confirm-before-publish safeguard. An agent has enough to construct a correct call for any kind, with classroom_id the sole undocumented element.

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

Parameters4/5

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

Schema coverage is only 17%, so the description must carry the load, and it does: it documents the line grammar per kind, the items array shape ('solo los campos a cambiar'), the field vocabulary for each kind, the meaning of lesson:0, and the 1-based 'correct' index. Only classroom_id is left unexplained, which keeps it short of a 5.

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?

Starts with a specific verb and scope: 'Edita (y crea) hasta 200 elementos en una llamada', then enumerates the seven addressed kinds (exam_question, quiz_question, self_check, flashcard, scenario_criterion, lesson, module). That distinguishes it clearly from delete_items and list_lesson_items, though it does not explicitly name which sibling to use for single-item adds.

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 concrete selection logic between the two input modes (per-line 'lines' text for questions/cards/self-check, structured 'items' for partial field updates) and states that no ID means creation inside parent_id. It also defines when to use dry_run ('solo valida') and requires confirmation before publishing. The only gap is the lack of explicit routing to alternative add_* sibling tools.

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