Skip to main content
Glama

Crear o editar una encuesta

save_survey

Save classroom survey details—title, question, options, and publish status—to create or edit a poll for a class. Confirm publication before students see it.

Instructions

Encuesta del aula. options: una opción por línea (mínimo 2 si no se permiten sugerencias). Al editar, enviar options reemplaza las opciones (salvo que ya tenga votos o sugerencias: entonces solo añade las nuevas). Confirma antes de publicar.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_survey"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoTítulo
promptNoPregunta
optionsNo
period_idNo
publishedNo
survey_idNo
classroom_idNo
allows_suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare destructiveHint=false, so the description must carry the weight, and it does add substantive behavior: replace-vs-append semantics on options, the vote/suggestion exception that protects existing data, and a publish-time confirmation requirement. It still omits permission/auth needs and what an unpublished save means, keeping it from a 5.

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?

Short, front-loaded, and every clause carries information — the options format and the edit-replacement rule are the highest-value facts and come early. It is telegraphic to the point of fragmentary ("Encuesta del aula."), which slightly hurts readability but wastes nothing.

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

Completeness2/5

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

With 8 parameters, zero required fields, no output schema, and 25% schema coverage, this mutation tool needs far more than a sentence on options. An agent still cannot tell which fields are needed to create a new survey, how survey_id vs classroom_id select the target, or what happens when published is false.

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 coverage is only 25%, so the description should compensate more than it does. It thoroughly explains the trickiest parameter, options (one per line, minimum 2 when suggestions are disallowed), but leaves survey_id vs classroom_id vs period_id, published, and allows_suggestions undefined in both schema and description.

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 title states create-or-edit of a classroom survey and the body identifies the resource ("Encuesta del aula"), so an agent can infer a create/update upsert on a survey. The description itself never states the verb explicitly and offers no differentiation from sibling save_* tools, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

It gives real edit-time guidance (sending options replaces them, except when votes/suggestions exist, in which case it appends) and a workflow rule ("Confirma antes de publicar"). It never says when to use this versus alternatives, nor what minimum inputs are needed to create a new survey versus update an existing one.

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