Skip to main content
Glama

get_forum_discussions

Read-only

Retrieves open discussion topics from a specific Moodle forum, including author and ISO 8601 dates, using a forum URL from list_forums or a numeric module ID.

Instructions

Obtiene la lista de temas / discusiones abiertas dentro de un foro específico, con autor y fechas (ISO 8601 cuando el Campus las informa). Usá la url que devuelve list_forums.

Input Schema

NameRequiredDescriptionDefault
forum_idYesURL del foro tal como la devuelve list_forums (…/mod/forum/view.php?f=… o ?id=…), o el ID numérico del módulo (ej: "16227")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.1
    • changedInput schema / properties / forum_id / description
      Previous value: -"ID numérico del módulo del foro (ej: /mod/forum/view.php?id=16227 o \"16227\")"New value: +"URL del foro tal como la devuelve list_forums (…/mod/forum/view.php?f=… o ?id=…), o el ID numérico del módulo (ej: \"16227\")"
    • addedInput schema / properties / forum_id / maxLength
      Added value: +2048
    • addedInput schema / properties / forum_id / minLength
      Added value: +1
  2. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description usefully discloses the return contents (author and dates, ISO 8601 when available), but says nothing about pagination, ordering, or behavior with an invalid/expired forum URL, which matters for an open-world read.

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?

A single front-loaded sentence for purpose plus one short directive for input sourcing. No filler; only the parenthetical about ISO 8601 dates is slightly tangential but still informative.

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 one-parameter read tool with no output schema and annotations covering safety, the description supplies the essential pieces: what it returns, that dates are ISO 8601, and where the id comes from. Only pagination/ordering behavior is left unstated.

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 100% and the forum_id schema entry already explains both accepted forms (URL from list_forums or numeric module ID). The description reinforces the provenance of the URL but adds no new syntax or format detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource (retrieves the list of open topics/discussions within a given forum) and the fields shown. It is distinguishable from siblings like get_discussion_posts (posts inside a discussion) and forum_post_topic (a write), though it never names those siblings explicitly.

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 clear chaining guidance: 'Usá la url que devuelve list_forums', establishing the prerequisite step and the expected input source. No explicit when-not-to-use or exclusion versus get_discussion_posts, which keeps it from a 5.

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