Skip to main content
Glama

Forum thread

get_forum_posts
Read-only

Reads one Moodle forum discussion with its first post and all replies—author, date, and text—so you can find what an instructor said in a specific thread.

Instructions

Answers 'what did the instructor answer in that thread?' Reads one forum discussion with the first post and every reply, each with author, date and text, up to 50 posts of up to 2000 characters each. Input: discussion_id, the number shown as discussion_id in get_forum_discussions. Ask: 'What did the instructor answer in the Lab 3 thread?'

Input Schema

NameRequiredDescriptionDefault
discussion_idYesDiscussion ID shown in get_forum_discussions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.10

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the read-only and open-world annotations, it discloses the single-discussion scope, returned fields, and limits of 50 posts and 2000 characters per post. It does not explain ordering, which posts are selected when a thread exceeds 50 posts, or whether additional pages can be retrieved.

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?

The description is compact and front-loads the intended task, followed by behavior, input provenance, and an example. The opening quoted question and final example are somewhat redundant, but neither is excessively verbose.

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 simple one-parameter read tool without an output schema, the description supplies enough information to select it, obtain the required ID, invoke it, and anticipate the returned content and size limits. The remaining uncertainty about threads over 50 posts does not prevent correct invocation.

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 description largely repeats that discussion_id comes from get_forum_discussions. Calling it 'the number' adds little and is slightly narrower than the schema's string-or-number type, though the schema makes the accepted input clear.

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 clearly states that the tool reads one forum discussion, including the first post and replies, and identifies the returned author, date, and text fields. This distinguishes it from get_forum_discussions, which supplies the discussion ID rather than reading the thread.

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?

The opening instructor-answer question and closing Lab 3 example provide a concrete use case, while the input sentence points agents to get_forum_discussions as the ID source. It does not explicitly say to discover the discussion first when the ID is unknown or clarify that this tool is not for listing or searching discussions.

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