Skip to main content
Glama

Get Announcement Files

get_announcement_files

Read the text of files an instructor attached to an announcement, such as a rubric or schedule. Call with courseId to list attachments, then newsId and fileId to read one; returns the extracted text.

Instructions

Read the files an instructor attached to an announcement: prompt questions, a rubric, an updated schedule, slides. Call it with just courseId to see which announcements have attachments, then with newsId and fileId to read one. Use this when the user asks what a file attached to an announcement says. Returns the text itself. Use download_file (newsId + fileId) instead when the user wants the file saved to disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileIdNoAttachment file ID to read. Requires newsId. Omit to list the files without reading them.
newsIdNoAnnouncement (news item) ID. Omit to list every announcement in the course that has attachments.
courseIdYesCourse ID whose announcement attachments to look at.
maxCharsNoMaximum characters of extracted text to return. The response reports whether it was truncated.
extractTextNoExtract readable text from the file. Works for PDF, DOCX, XLSX, PPTX, and plain text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.9.7

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden, and it does much of that: it discloses the dual behavior (listing vs reading), that the response is the extracted text itself, and that a sibling should be used for on-disk saving. It omits prerequisites/permissions and rate considerations, so it stops short of full transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The usage rule and the two-step protocol are front-loaded, and every sentence contributes new information (what it reads, how to call it, when to use it, what it returns, when to use the alternative). No filler.

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 read tool with no output schema and no annotations, the description covers the return value ('Returns the text itself'), the listing behavior, and the sibling routing. Only minor gaps remain, such as permissions or what the listing mode returns in detail.

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%, so each parameter (including the omit-to-list semantics of newsId/fileId and truncation via maxChars) is already documented in the schema. The description reinforces the mode-dependent usage but adds no syntax or format detail beyond the schema, which is the baseline-3 case.

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?

States a specific verb and resource ('Read the files an instructor attached to an announcement') and gives concrete examples of such files. It is clearly distinguishable from the sibling get_assignment_files (assignments vs announcements) and download_file.

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

Usage Guidelines5/5

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

Explicitly states when to use it ('Use this when the user asks what a file attached to an announcement says'), names the alternative download_file and the exact condition that selects it ('when the user wants the file saved to disk'). It also documents the two-step call pattern (courseId to list, newsId+fileId to read).

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