Skip to main content
Glama

Update Notification Preference

update_notification_preference
Idempotent

Change how often Canvas emails or texts you about a single event category, such as grading or announcements, with a preview and confirmation before updating your own preferences.

Instructions

Change how often Canvas emails or texts you about one kind of event, e.g. "grading" only weekly, or "announcement" immediately. Only affects your own notifications. [NEEDS CONFIRMATION: call it once for a preview and a confirm_token, show the preview to the user, and only if they say yes call it again with the same arguments, confirm=true and that confirm_token. Apps that can ask the user directly show a confirmation instead.]

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "channel_id": "<channel_id>",
      "category": "<category>",
      "frequency": "<frequency>"
    },
    "name": "update_notification_preference"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to true together with confirm_token to carry out a request you already previewed.
categoryYesCategory name from list_notification_categories, e.g. "due_date", "grading", "announcement", "conversation_message".
frequencyYes"immediately", "daily", "weekly" or "never".
channel_idYesCommunication channel ID (numeric string). Get it from get_communication_channels.
confirm_tokenNoThe one-time token from the preview. Only use it after the user has said yes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.0
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true to actually execute. Omit or set false to get a dry-run preview first."New value: +"Set to true together with confirm_token to carry out a request you already previewed."
    • addedInput schema / properties / confirm_token
      Added value: +{
      +  "description": "The one-time token from the preview. Only use it after the user has said yes.",
      +  "type": "string"
      +}
  2. Addedv1.2.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare non-read-only, non-destructive, idempotent, open-world behavior, yet the description adds the crucial two-phase preview/confirm-token mechanic that an agent cannot infer from the schema alone. It also discloses the blast radius ('Only affects your own notifications'), which is exactly the kind of context annotations do not convey.

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

Conciseness3/5

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

Purpose is front-loaded in the first sentence, but the second half is a single dense run-on sentence about the confirm flow that is harder to parse than a short numbered sequence would be. The '[NEEDS CONFIRMATION: ...]' bracket tag reads as an internal authoring marker rather than tool documentation and slightly muddies the structure.

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 mutation tool with no output schema, the description covers safety scope, the confirmation protocol, and the affected entity, which is most of what an agent needs. It stops short of saying what is returned after a successful change or a preview, leaving the agent to infer the response shape.

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 100%, so the baseline is 3, but the description adds meaning by coupling category and frequency into a single conceptual unit ('one kind of event') and illustrating the frequency scale with realistic pairs. It does not clarify the preview-call behavior regarding confirm/confirm_token beyond what the schema property descriptions already say.

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 ('Change how often') plus resource ('Canvas emails or texts you about one kind of event') and grounds it with concrete examples ('grading' weekly, 'announcement' immediately). The scope word 'one kind of event' plus 'Only affects your own notifications' clearly separates it from the read-only sibling get_notification_preferences.

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

Usage Guidelines4/5

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

The description gives an explicit operating procedure: call once for a preview, show it to the user, then re-call with the same arguments plus confirm=true and confirm_token only after approval, with a note that capable apps may prompt directly. It does not name an alternative sibling for reading current settings (get_notification_preferences) or for discovering valid categories, so the when-to-use picture is clear but not fully routed.

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

Deploy Server

Other Tools