piazza-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@piazza-mcpWhat did I miss on Piazza this week?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-piazza
A read-only Model Context Protocol server for Piazza. It works with every MCP client: Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed, Cline, Codex, Gemini CLI, Goose, opencode, JetBrains, LM Studio, Continue, and others.
Ask your assistant about your courses:
"What did I miss on Piazza this week?"
"Are there unresolved questions about HW3 in CSE 12?"
"Did anyone already ask about the midterm room?"
"When are the TA office hours?"
"What did the instructor change in @142?"
The server only reads data. It cannot post, edit, endorse, or delete.
Quick start
Install uv.
Log in one time. The command opens a login page in your browser:
uvx mcp-piazza loginYou can also skip this step. If the server has no session, the first tool call opens the same page and shows its link.
Add the server to your client. The server command is
uvxwith the argumentmcp-piazza. For example:claude mcp add --scope user --transport stdio piazza -- uvx mcp-piazza # Claude Code codex mcp add piazza -- uvx mcp-piazza # Codex CLISee docs/clients.md for Claude Desktop, Cursor, VS Code, Windsurf, Zed, Gemini CLI, and other clients.
Ask: "List my Piazza courses."
Related MCP server: Horizon
Tools, prompts and resources
Tool | Purpose |
| List your courses with ID, course number, term, role, active status, and folders. |
| Get the course page: description, syllabus, office hours, general information, and staff with emails. |
| Count unread posts in each active course. |
| List posts with new activity since a time ( |
| List post summaries. Filters: |
| Search posts by keywords in one course or in all active courses. |
| Read one full thread: question, instructor answer, student answer, followups, replies, and poll data. |
| Read up to 20 full threads in one call. |
| Show every version of a post, with a diff between versions. |
| List notes and polls written by instructors. |
| Open an image or file from a post. The model can see images. |
| Get the data from the course Statistics page. |
Every tool accepts a course ID, a course number such as CSE 12 or cse12, or part of the course name.
Prompt | Purpose |
| Read all posts since a time and summarize them, with actions for you. |
| Find out if a question was already asked and answered. |
| Read all posts about an exam or topic and collect the facts. |
Many clients show prompts as slash commands.
Skill | Purpose |
| The |
| The |
| The |
Skills work in Claude Code, Cursor, Codex, opencode, and other agents. They need the server. To install them:
npx skills add jadenpxrk/mcp-piazzaResource | Content |
| Your courses |
| One full thread |
See docs/tools.md for parameters and output fields, and docs/workflows.md for examples.
Authentication
Piazza has no public API. This server uses piazza-api, which logs in as the Piazza website does.
Method | How | Use it when |
Login page |
| Most people. The page offers the three methods below. |
Browser session |
| You are logged in to piazza.com in Chrome, Arc, Brave, Edge, Firefox, Safari, Chromium, Vivaldi, or Opera. This works with school SSO. |
Password |
| You want to type your email and password in the terminal. |
Session cookie |
| You want to paste the |
Environment variables |
| You want automatic login when the session expires. |
All methods save only the session cookies to ~/.config/mcp-piazza/cookies.json with file mode 600. They do not save your password.
When the session expires, the next tool call opens the login page again. mcp-piazza logout deletes the session.
Configuration
Variable | Default | Purpose |
| none | Account email for automatic login. |
| none | Account password for automatic login. |
|
| Path of the saved session. |
|
| Replace student names with pseudonyms. |
|
| Mark post text as untrusted data. |
|
| Mark unread posts unread again after the server reads them. |
|
| Minimum seconds between Piazza requests. |
|
| Seconds to keep feeds and posts in memory. |
See docs/configuration.md for examples and the command line.
Privacy and safety
Read-only. The server has no tools that change Piazza data. The only write is the optional
PIAZZA_KEEP_UNREADrestore.Prompt-injection fencing. Other course members write the post text. The server puts that text between
<<<UNTRUSTED PIAZZA TEXT ...>>>markers, and the server instructions tell the model to treat it as data.Student pseudonyms. When
PIAZZA_ANONYMIZE_STUDENTS=true, other students show asStudent 3f2a1c. Staff keep their names. Your own posts show asyou.Local only. The server runs on your computer. It sends your cookies only to
piazza.com.
See docs/privacy.md for the full model and its limits.
Development
uv sync
uv run pytest # offline tests, no Piazza account needed
uv run ruff check src tests
uv run ruff format src tests
uv run mypy srcSee AGENTS.md for the project layout and rules.
Limitations
Piazza can change its internal API at any time. If tools fail after a Piazza update, see docs/troubleshooting.md.
When the server reads a full post, Piazza marks the post as read and counts a view, as the website does. Set
PIAZZA_KEEP_UNREAD=trueto mark unread posts unread again.The course page files and links (the Resources tab) are not available.
get_course_infoshows the names of the resource sections only.Piazza does not document the poll format.
get_postreturns the poll data as Piazza sends it.Some instructors hide the Statistics page. For those courses,
get_course_statsreturns an error.
License
MIT. This project is not affiliated with Piazza.
Available Tools
12 toolsget_attachmentGet AttachmentARead-onlyIdempotent
Open a file or image that a post links to, such as an [image: ...] link or a piazza.com upload link.
Images come back as images that the model can see. Text files come back as text. Other files, such as PDFs, come back as an embedded file if the client supports it. The maximum size is 10 MB.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations cover the read-only/idempotent/open-world profile, but the description adds real behavioral context the annotations cannot: per-type return rendering (images as viewable images, text as text, PDFs as embedded files depending on client) and a hard 10 MB size limit. That is genuine value beyond structured fields.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Four short sentences, front-loaded with the action and examples, then the return behavior and the size cap. No filler; the multi-sentence structure is justified by the different return types.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-param fetch tool with no output schema, the description covers accepted inputs, return modality per file type, and the 10 MB limit. Only minor gaps remain (what happens on oversized/failing fetches, pagination not applicable).
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% for the single 'url' param, so the description must carry the meaning, and it does via concrete accepted URL formats ([image: ...], piazza.com upload links). It stops short of format/encoding details, but the examples are useful compensation for the coverage gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource ('Open a file or image that a post links to') and gives concrete examples of acceptable URL shapes. No sibling does this, so it is clearly distinguished from the listing/reading tools in the sibling set.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied by the examples (an [image: ...] link or a piazza.com upload link) but the description never says explicitly when to use this vs. reading a post directly, nor any preconditions. Adequate but not routing-level guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_course_infoGet Course InfoARead-onlyIdempotent
Get the course page: description, syllabus, office hours, general information, dates, and the staff list with names, roles and emails. Use it to find who teaches the course or when office hours are.
| Name | Required | Description | Default |
|---|---|---|---|
| course | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| id | No | |
| url | No | |
| name | No | |
| term | No | |
| staff | No | |
| active | No | |
| number | No | |
| school | No | |
| folders | No | |
| end_date | No | |
| students | No | |
| syllabus | No | |
| department | No | |
| start_date | No | |
| description | No | |
| office_hours | No | |
| resource_sections | No | |
| general_information | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds that staff names, roles and emails are returned, but says nothing about auth needs, rate limits, or missing-course behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, zero filler, with the returned content front-loaded and the usage scenario second.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return values need not be explained, and annotations carry the safety profile. The only real gap is the ambiguous format of the course identifier, which an agent needs to call it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There is one required parameter (course) with 0% schema description coverage. The description never clarifies whether "course" is an ID, a code, or a title, so it fails to compensate for the schema gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (get) and resource (course page) and enumerates the exact content returned: description, syllabus, office hours, dates, staff list. This clearly separates it from get_course_stats (numbers) and the post-related siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
"Use it to find who teaches the course or when office hours are" gives a concrete selecting scenario. It provides no exclusions or named alternatives, but the context is clear enough for routing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_course_statsGet Course StatsBRead-onlyIdempotent
Get the data from the course Statistics page. Some instructors hide this page from students.
| Name | Required | Description | Default |
|---|---|---|---|
| course | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, openWorld behavior, so the safety profile is covered. The description adds a genuine access caveat — instructors may hide the Statistics page from students — but does not say whether that yields an error, empty data, or a permission denial, so the behavioral disclosure is incomplete.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short, front-loaded sentences with no wasted words. The caveat is placed after the core purpose, which is appropriate. Brevity is good, though it comes partly at the cost of specificity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return values need not be described. However, for a single-parameter tool with zero parameter documentation and an ambiguous access caveat, the description should say more about the identifier and the failure mode when the page is hidden.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There is one required parameter ('course') with 0% schema description coverage, and the description does nothing to clarify it — no indication of whether it is an ID, short name, or display name. The description's reference to 'the course Statistics page' does not explain identifier format.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a clear verb+resource: fetch data for a course's Statistics page. An agent can distinguish it from get_course_info or list_courses. However, 'the data' is vague about what statistics are actually returned, leaving the specifics unclear.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this versus any sibling tool, nor any prerequisites. The note that instructors may hide the page hints at when a call might be futile, but it is framed as a caveat rather than usage routing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_postGet PostBRead-onlyIdempotent
Read one full thread: the question or note, both answers, and followups with replies.
number is the post number that Piazza shows as @123.
| Name | Required | Description | Default |
|---|---|---|---|
| course | Yes | ||
| number | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| url | No | |
| poll | No | |
| tags | No | |
| type | No | |
| edits | No | |
| error | No | |
| views | No | |
| author | No | |
| course | No | |
| number | No | |
| status | No | |
| content | No | |
| created | No | |
| folders | No | |
| subject | No | |
| updated | No | |
| discussion | No | |
| endorsed_by | No | |
| student_answer | No | |
| instructor_answer | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds the read's content scope (answers, followups, replies), which is mild context, but it says nothing about pagination, truncation of long threads, or access requirements for private courses.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two compact lines with the payload description front-loaded and the parameter hint second, no filler. The only wobble is the Piazza-specific 'both answers' phrasing, which presumes a domain convention rather than stating it.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return structure need not be described, but with 0% schema coverage and an undocumented 'course' parameter, plus no differentiation from get_posts and get_post_history, the definition is only minimally complete for selecting the tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must carry the load; it usefully explains that 'number' is the Piazza post number displayed as @123. However, 'course' is left entirely unexplained – no indication of whether it is a slug, numeric id, or network identifier – leaving one of two required parameters ambiguous.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Read one full thread') and enumerates the returned content: question/note, both answers, followups with replies. The singular 'one full thread' implicitly separates it from the plural siblings get_posts/list_posts, but it never explicitly names get_post_history or explains how it differs.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance, no prerequisites, and no alternatives named; the agent must infer that this is the single-post lookup chosen over list_posts or search_posts. The one hint given ('number is the post number that Piazza shows as @123') is parameter clarification, not usage guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_post_historyGet Post HistoryARead-onlyIdempotent
Show every version of a post, oldest first, with author and time.
With diff=true, version 1 has the full text and each later version has only a diff from the version before. Use it to see what an instructor changed in an announcement or a question.
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | ||
| course | Yes | ||
| number | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| url | No | |
| course | No | |
| number | No | |
| versions | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The diff=true semantics are materially useful behavior the annotations cannot express: version 1 carries full text, later versions only carry deltas. Ordering and included fields are also disclosed. Missing are error/edge behavior (nonexistent number, deleted posts) and volume limits, which matters given openWorldHint=true.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences, zero padding, and the core capability is front-loaded before the diff nuance. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return values need not be re-explained, and the description still usefully previews shape (author, time, diffs). What is missing for a history/read tool is guidance on error cases and whether history is bounded or truncated.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must carry the load and it only explains 'diff' — the one non-obvious parameter. 'course' and 'number' are left undefined; 'number' in particular is ambiguous (post number vs. version number) and is not clarified anywhere in the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Show every version of a post') plus the ordering ('oldest first') and payload ('author and time'), which implicitly distinguishes it from the single-version get_post. It never names a sibling explicitly, so sibling differentiation is left to inference.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
'Use it to see what an instructor changed in an announcement or a question' gives a concrete triggering scenario, which is stronger than nothing. It stops short of contrasting with get_post/list_posts or stating when history is unnecessary, so no exclusions or alternatives are offered.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_postsGet PostsBRead-onlyIdempotent
Read up to 20 full threads from one course in one call. A post that cannot be read has an "error" field.
| Name | Required | Description | Default |
|---|---|---|---|
| course | Yes | ||
| numbers | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| posts | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered. The description usefully adds the partial-failure contract ('A post that cannot be read has an "error" field') and the batch ceiling of 20, but says nothing about pagination, truncation when more than 20 numbers are supplied, or per-post error causes.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the core capability and immediately followed by the failure-mode note. Every clause carries information; nothing is redundant filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists so return-shape detail is not required, and the description does add the error-field behavior on top of it. However, the batching edge case (what happens beyond 20 numbers, whether excess are dropped or rejected) and the identifier formats are unresolved for a two-required-parameter read tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% for both parameters, so the description must compensate. It partially does: 'one course' maps to the course parameter and 'up to 20 full threads' implies numbers is a bounded list of post identifiers, but the format of course (name vs ID) and the meaning/ordering of the integers are never stated.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb ('Read'), resource ('full threads'), scope ('from one course') and batching behavior ('in one call', 'up to 20'). An agent can distinguish it from single-post readers like get_post, though no sibling is named explicitly, which is what separates this from a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit when-to-use guidance and no alternatives are named. The phrase 'in one call' hints that this is the batch variant versus a single-thread reader, but the selection rule (when to batch versus call get_post or search_posts) is left entirely to inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_unread_countsGet Unread CountsARead-onlyIdempotent
Count the posts with unread content in each course. Sends one request per course.
By default only active courses are counted. Courses with no unread posts are left out.
| Name | Required | Description | Default |
|---|---|---|---|
| include_inactive | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| total | Yes | |
| courses | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover readOnlyHint, idempotentHint and openWorldHint, yet the description adds genuinely non-derivable behavior: 'one request per course' (a cost/latency signal an agent should plan around) and the fact that zero-unread courses are omitted from the result. It does not, however, discuss auth requirements or the shape/ordering of the per-course result.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short sentences with zero filler, and the core purpose is front-loaded before the request-cost and default-filtering details. Every sentence carries information the agent cannot get from the schema or annotations.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present, return values need not be explained, and the annotations carry the safety profile, so the remaining burden is the default behavior and cost, both of which are covered. The main residual gap is the absence of any routing hint relative to the many sibling listing tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the single include_inactive parameter is undocumented in the schema; the description partially compensates by stating 'By default only active courses are counted,' which lets the agent infer that overriding the default includes inactive courses. It never names the parameter or states the explicit value needed, so compensation is only partial.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (count) and resource (posts with unread content, per course), which clearly separates it from retrieval siblings like get_posts or list_posts. However, it never names or contrasts itself with any sibling, so the agent must infer the distinction from the verb alone rather than being routed explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied by the purpose ('count unread content in each course' tells you to reach for this when you want an unread overview), but there is no explicit when-to-use, when-not-to-use, or alternative (e.g., use get_posts for the actual unread posts rather than counts).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_coursesList CoursesARead-onlyIdempotent
List the user's Piazza courses with ID, course number, term, role, active status, and post folders.
Other tools accept the ID, the course number, or part of the name. Set refresh=true to reload from Piazza.
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered. The description adds real behavioral context beyond them: the default path is served without hitting Piazza, and refresh=true forces a reload from the remote source. It does not mention cache staleness windows or latency tradeoffs.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences with no filler. The primary behavior and returned fields come first, followed by downstream usage and the optional flag, which is the right front-loading order.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple listing tool with an output schema, the description covers purpose, returned content, identifier handoff to other tools, and refresh semantics. Only minor operational details (whether courses are paginated, how authoritative the cached list is) are absent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% for the single optional parameter, but the description compensates by explaining that refresh=true triggers a reload from Piazza, which implies the default (false) serves cached data. That is the essential semantic an agent needs for the only parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Specific verb ("List") plus a bounded resource ("the user's Piazza courses") and an enumeration of the fields returned (ID, course number, term, role, active status, post folders). It is clearly a bulk-listing tool rather than a per-course lookup, but it never names or contrasts with the closest sibling, get_course_info, so the differentiation is only implied.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
"Other tools accept the ID, the course number, or part of the name" effectively explains this tool's role as the identifier-discovery step, and "Set refresh=true to reload from Piazza" gives a concrete condition for using the option. No explicit when-not or named alternative is given, but the usage context is clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_instructor_notesList Instructor NotesBRead-onlyIdempotent
List notes and polls written by instructors, such as announcements and logistics, most recent first.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| course | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| posts | Yes | |
| query | No | |
| course | Yes | |
| offset | No | |
| has_more | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is covered. The description adds the useful ordering behavior ('most recent first'), which the annotations do not convey, but says nothing about pagination, result volume, or what the openWorld flag implies in practice.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One front-loaded sentence with verb first, scope in the middle, and ordering last. No wasted words, though it is terse enough that parameter guidance is absent rather than merely compressed.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return-value explanation is not required and the annotations cover safety. However, for a tool with a required 'course' parameter and 0% schema coverage, the description leaves a real gap: an agent gets no guidance on supplying or formatting the required argument.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% and the description does not mention either parameter. The required 'course' parameter — the one an agent must supply to call the tool at all — is completely undocumented, as is the 'limit' default of 20. The description only hints at the author-type scope, not how to scope a query.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (List) and resource (notes and polls written by instructors) and clarifies content scope with examples ('announcements and logistics'). It implicitly separates itself from generic siblings like list_posts/search_posts by restricting to instructor-authored content, but never names an alternative explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase 'written by instructors' implies when this tool is appropriate versus general post tools, but there is no explicit when-to-use, when-not-to-use, or named alternative. Usage is left to inference from the sibling set.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_postsList PostsARead-onlyIdempotent
List post summaries for a course, most recent activity first.
filter: "unread" = posts with content the user has not read. "following" = posts the user follows. "unresolved" = unanswered questions and posts with unresolved followups. "unanswered" = questions with no answer. "mine" = the user's own posts that show their name. "starred" = posts the user starred. folder: only posts in this folder, for example "hw1". list_courses shows the folder names. Summaries have a short snippet only. Call get_post or get_posts for full threads.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| course | Yes | ||
| filter | No | all | |
| folder | No | ||
| offset | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| posts | Yes | |
| query | No | |
| course | Yes | |
| offset | No | |
| has_more | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, and open-world behavior, so safety is covered. The description adds real context beyond them: results are ordered by recent activity, each summary carries only a short snippet, and full content requires a different call. It does not mention pagination behavior, though limit/offset exist.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loads the one-line purpose before drilling into filter/folder semantics, then closes with the escalation pointer. Dense but every sentence does work; the filter block is a little list-like but not wasteful.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return shape needn't be restated, yet the description usefully warns the summaries are snippet-only. With annotations covering safety, the only real omission is the meaning/defaults of limit and offset.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must carry the load. It does well on filter (seven modes enumerated and explained, except the default "all") and folder (with an example), but says nothing about limit, offset, or course syntax. The remaining gaps cap it at a solid-but-incomplete 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ("List post summaries for a course") plus scope and ordering ("most recent activity first"). It clearly distinguishes itself from siblings get_post/get_posts, which it says return "full threads" instead of summaries.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly routes the agent: enumerates what each filter value selects, explains the folder constraint, tells the agent that list_courses reveals folder names, and names the alternatives (get_post/get_posts) for complete threads. The when-to-use boundary is unambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
recent_activityRecent ActivityBRead-onlyIdempotent
List posts with new activity since a time, in all active courses or in one course.
since: a relative age such as 24h, 7d or 2w, or an ISO date such as 2026-10-01. The default is 7d. Use this tool for questions such as "what did I miss this week". Courses without activity are left out.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| since | No | 7d | |
| course | No | ||
| include_inactive | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| query | No | |
| since | No | |
| courses | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, openWorld, so safety is covered. The description adds two useful behaviors: the default window is 7d and courses with no activity are omitted. It says nothing about how limit truncates results or what include_inactive changes.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the core purpose, then the parameter detail and the use-case trigger. Compact with little waste, though the line-break layout is slightly choppy and the ordering of the 'courses without activity' note is a bit arbitrary.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return values need not be explained, and the purpose plus the `since` semantics are clear. However, half the input surface (limit, course, include_inactive) is unexplained, and the interaction between 'courses without activity are left out' and include_inactive is left for the agent to infer.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% across 4 parameters, so the description carries the full burden. It documents only `since` (relative age format like 24h/7d/2w, or ISO date) and its default; `limit`, `course`, and `include_inactive` are left entirely undefined in both schema and prose.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource with a qualifying scope: list posts with *new activity* since a time, across all active courses or one course. The 'new activity' qualifier meaningfully separates it from plain list_posts/get_posts, though the description never names those siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives a concrete usage trigger ('what did I miss this week'), which tells the agent the intended question shape. It stops short of naming alternatives (list_posts, get_post_history) or stating when this tool is the wrong choice.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_postsSearch PostsARead-onlyIdempotent
Search posts by keywords, like the Piazza search box, in one course or in all active courses.
Use it before the user asks a new question, to find duplicates. Returns post summaries grouped by course.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| course | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| query | No | |
| since | No | |
| courses | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds useful scope behavior (searches one course or all active courses by default) and states that results are post summaries grouped by course, but return shape overlaps with the existing output schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences: purpose and scope first, usage trigger immediately after, followed by the return granularity. No filler or restated name/title content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema handling return values and annotations handling safety, the description supplies the missing pieces: when to invoke, search scope, and result grouping. Only the undocumented 'limit' parameter remains a small gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must carry parameter meaning. It clarifies 'query' (keywords) and 'course' (single course vs. all active courses, matching the null default), but never mentions 'limit' or its pagination/result-count effect.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (search) plus resource (posts) and scopes it precisely: keyword matching, constrained to one course or all active courses. The 'like the Piazza search box' analogy and keyword framing cleanly separate it from sibling listers such as list_posts and get_posts.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives a concrete trigger ('use it before the user asks a new question, to find duplicates'), which is real actionable guidance. It stops short of naming an explicit alternative or a when-not condition, but the intended situation is unambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
12 tool updates
v0.1.0- First observed
get_attachment - First observed
get_course_info - First observed
get_course_stats - First observed
get_post - First observed
get_post_history - First observed
get_posts - First observed
get_unread_counts - First observed
list_courses - First observed
list_instructor_notes - First observed
list_posts - First observed
recent_activity - First observed
search_posts
TDQS
Scored across 12 tools
Most tools have distinct purposes (e.g., get_course_stats vs get_course_info vs list_courses), but there is potential overlap between get_post and get_posts, and between list_posts and recent_activity; however, descriptions clarify their differences. The main ambiguity is that get_posts can read multiple threads, which might be confused with get_post or list_posts, but it's minor because of clear guidance.
All tool names follow a consistent snake_case pattern with verb_noun structure (e.g., get_course_stats, list_courses, get_post_history). No deviations or mixed conventions are present.
12 tools is well-scoped for a Piazza client, covering courses, posts, search, activity, and attachments without being excessive or too thin. Each tool appears to earn its place.
The tool surface covers many key operations: listing courses/posts, searching, reading threads, getting attachments, and instructor notes. However, obvious gaps exist: there is no tool to create or reply to posts, and no way to mark posts as read/unread or star/unstar, which are common Piazza actions. These gaps are minor but could limit agent workflows.
Maintenance
Related MCP Connectors
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Read-only MCP server for RZ AI Labs — query its services, workshops, and contact info.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Read-only MCP server: let AI agents read your ORANO saved-video library, tasks, and memory.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for Piazza Q&A platform, enabling course management, post creation, search, and user interactions via reverse-engineered API.22MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that connects AI assistants to university D2L Brightspace and Piazza, enabling query of courses, grades, assignments, deadlines, files, and Piazza posts.7MIT
- AlicenseAqualityAmaintenanceRead-only MCP server for Canvas LMS that exposes tools to list courses, assignments, grades, submissions, syllabi, announcements, modules, pages, and files, without any write operations.118 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables read-only access to University of Waterloo Learn and Piazza, allowing users to view courses, assignments, grades, submissions, discussions, and more through an MCP server.MIT