Skip to main content
Glama

get_choice

Read-only

Retrieves available options for a Moodle choice activity or group enrollment by choice ID, enabling users to view selection choices.

Instructions

Consulta las opciones de una elección o inscripción de grupos (mod_choice) en Moodle.

Input Schema

NameRequiredDescriptionDefault
choice_idYesID numérico de la consulta/elección en Moodle (mod/choice/view.php?id=...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true. The description adds the Moodle module context (mod_choice) but does not disclose return shape, whether results are paginated, what an empty result means, or any permissions nuance—low added behavioral value beyond annotations.

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?

It is a single front-loaded sentence with no waste. However, the sentence does not structure any usage or return-value information, so it is concise but minimal.

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 simple one-parameter read-only tool with full schema coverage and safety annotations, this is minimally adequate. It lacks explicit routing to submit_choice and gives no hint about the returned options/results, which matters because no output schema exists.

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 schema has 100% description coverage and explains choice_id as the numeric Moodle choice ID with a view.php URL pattern. The description adds no additional meaning beyond the schema, so baseline 3 is appropriate.

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 specific verb (consulta) and resource (opciones de una elección/inscripción de grupos, mod_choice), so the agent knows this is a read of choice options. It does not explicitly differentiate from the sibling submit_choice, but the verb contrast makes the distinction reasonably clear.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusion, and no mention of the sibling submit_choice as the alternative for answering a choice. Usage is only implied by the verb 'consulta'.

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