Skip to main content
Glama

mcp-piazza

CI PyPI Python OpenSSF Scorecard License: MIT

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

  1. Install uv.

  2. Log in one time. The command opens a login page in your browser:

    uvx mcp-piazza login

    You can also skip this step. If the server has no session, the first tool call opens the same page and shows its link.

  3. Add the server to your client. The server command is uvx with the argument mcp-piazza. For example:

    claude mcp add --scope user --transport stdio piazza -- uvx mcp-piazza   # Claude Code
    codex mcp add piazza -- uvx mcp-piazza                                   # Codex CLI

    See docs/clients.md for Claude Desktop, Cursor, VS Code, Windsurf, Zed, Gemini CLI, and other clients.

  4. Ask: "List my Piazza courses."

Related MCP server: Horizon

Tools, prompts and resources

Tool

Purpose

list_courses

List your courses with ID, course number, term, role, active status, and folders.

get_course_info

Get the course page: description, syllabus, office hours, general information, and staff with emails.

get_unread_counts

Count unread posts in each active course.

recent_activity

List posts with new activity since a time (24h, 7d, 2026-10-01), in all active courses or one course.

list_posts

List post summaries. Filters: all, unread, following, unresolved, unanswered, mine, starred. Optional folder and paging.

search_posts

Search posts by keywords in one course or in all active courses.

get_post

Read one full thread: question, instructor answer, student answer, followups, replies, and poll data.

get_posts

Read up to 20 full threads in one call.

get_post_history

Show every version of a post, with a diff between versions.

list_instructor_notes

List notes and polls written by instructors.

get_attachment

Open an image or file from a post. The model can see images.

get_course_stats

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

catch_up

Read all posts since a time and summarize them, with actions for you.

before_asking

Find out if a question was already asked and answered.

exam_prep

Read all posts about an exam or topic and collect the facts.

Many clients show prompts as slash commands.

Skill

Purpose

piazza-catch-up

The catch_up steps, for agents that use skills.

piazza-exam-prep

The exam_prep steps.

piazza-before-asking

The before_asking steps.

Skills work in Claude Code, Cursor, Codex, opencode, and other agents. They need the server. To install them:

npx skills add jadenpxrk/mcp-piazza

Resource

Content

piazza://courses

Your courses

piazza://courses/{course_id}/posts/{number}

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

mcp-piazza login, or the link from the first tool call

Most people. The page offers the three methods below.

Browser session

mcp-piazza login --browser

You are logged in to piazza.com in Chrome, Arc, Brave, Edge, Firefox, Safari, Chromium, Vivaldi, or Opera. This works with school SSO.

Password

mcp-piazza login --password

You want to type your email and password in the terminal.

Session cookie

mcp-piazza login --cookie

You want to paste the session_id cookie from the browser developer tools.

Environment variables

PIAZZA_EMAIL, PIAZZA_PASSWORD

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

PIAZZA_EMAIL

none

Account email for automatic login.

PIAZZA_PASSWORD

none

Account password for automatic login.

PIAZZA_COOKIE_FILE

~/.config/mcp-piazza/cookies.json

Path of the saved session.

PIAZZA_ANONYMIZE_STUDENTS

false

Replace student names with pseudonyms.

PIAZZA_FENCE_CONTENT

true

Mark post text as untrusted data.

PIAZZA_KEEP_UNREAD

false

Mark unread posts unread again after the server reads them.

PIAZZA_MIN_INTERVAL

0.5

Minimum seconds between Piazza requests.

PIAZZA_CACHE_TTL

60

Seconds to keep feeds and posts in memory. 0 turns off the cache.

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_UNREAD restore.

  • 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 as Student 3f2a1c. Staff keep their names. Your own posts show as you.

  • 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 src

See 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=true to mark unread posts unread again.

  • The course page files and links (the Resources tab) are not available. get_course_info shows the names of the resource sections only.

  • Piazza does not document the poll format. get_post returns the poll data as Piazza sends it.

  • Some instructors hide the Statistics page. For those courses, get_course_stats returns an error.

License

MIT. This project is not affiliated with Piazza.

Available Tools

12 tools
get_attachmentGet AttachmentA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYes

TDQS

A4.1/5.0
Behavior4/5

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.

Conciseness4/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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 InfoA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
courseYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
idNo
urlNo
nameNo
termNo
staffNo
activeNo
numberNo
schoolNo
foldersNo
end_dateNo
studentsNo
syllabusNo
departmentNo
start_dateNo
descriptionNo
office_hoursNo
resource_sectionsNo
general_informationNo

TDQS

A3.9/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters2/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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 StatsB
Read-onlyIdempotent

Get the data from the course Statistics page. Some instructors hide this page from students.

ParametersJSON Schema
NameRequiredDescriptionDefault
courseYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

B3/5.0
Behavior3/5

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.

Conciseness4/5

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.

Completeness3/5

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.

Parameters2/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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 PostB
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
courseYes
numberYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
urlNo
pollNo
tagsNo
typeNo
editsNo
errorNo
viewsNo
authorNo
courseNo
numberNo
statusNo
contentNo
createdNo
foldersNo
subjectNo
updatedNo
discussionNo
endorsed_byNo
student_answerNo
instructor_answerNo

TDQS

B3.2/5.0
Behavior3/5

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.

Conciseness4/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

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 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 HistoryA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
diffNo
courseYes
numberYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
urlNo
courseNo
numberNo
versionsNo

TDQS

A4/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines4/5

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 PostsB
Read-onlyIdempotent

Read up to 20 full threads from one course in one call. A post that cannot be read has an "error" field.

ParametersJSON Schema
NameRequiredDescriptionDefault
courseYes
numbersYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
postsYes

TDQS

B3.3/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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 CountsA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
include_inactiveNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
totalYes
coursesYes

TDQS

A3.8/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines3/5

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 CoursesA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
refreshNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.1/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose4/5

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.

Usage Guidelines4/5

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 NotesB
Read-onlyIdempotent

List notes and polls written by instructors, such as announcements and logistics, most recent first.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
courseYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
countYes
postsYes
queryNo
courseYes
offsetNo
has_moreNo

TDQS

B3.2/5.0
Behavior3/5

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.

Conciseness4/5

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.

Completeness3/5

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.

Parameters2/5

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.

Purpose4/5

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.

Usage Guidelines3/5

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 PostsA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
courseYes
filterNoall
folderNo
offsetNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
countYes
postsYes
queryNo
courseYes
offsetNo
has_moreNo

TDQS

A4.3/5.0
Behavior4/5

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.

Conciseness4/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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 ActivityB
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
sinceNo7d
courseNo
include_inactiveNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
queryNo
sinceNo
coursesNo

TDQS

B3.4/5.0
Behavior3/5

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.

Conciseness4/5

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.

Completeness3/5

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.

Parameters2/5

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.

Purpose4/5

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.

Usage Guidelines4/5

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 PostsA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes
courseNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
queryNo
sinceNo
coursesNo

TDQS

A4/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

  1. 12 tool updatesv0.1.0
    • First observedget_attachment
    • First observedget_course_info
    • First observedget_course_stats
    • First observedget_post
    • First observedget_post_history
    • First observedget_posts
    • First observedget_unread_counts
    • First observedlist_courses
    • First observedlist_instructor_notes
    • First observedlist_posts
    • First observedrecent_activity
    • First observedsearch_posts

TDQS

A3.7/5.0

Scored across 12 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers