Skip to main content
Glama

update-page-content

Idempotent

Replace the entire body of a Canvas course page or create a new page with provided title, body, and editing roles. If no content is given, returns guidance for creating content.

Instructions

Update or create a page with new content, replacing the entire body. If no body/title/editingRoles is provided, nothing is written and guidance is returned (set showStyleguidePreview to also inline the styleguide). For targeted edits to existing content, use patch-page-content instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoThe new HTML body for the page (optional)
titleNoThe new title for the page (optional)
pageUrlYesThe page's URL slug (e.g., 'syllabus')
courseIdYesThe ID of the course
editingRolesNoComma-separated roles allowed to edit (optional)
ignoreStyleguideNoSkip styleguide reference (not recommended)
showStyleguidePreviewNoWhen no body is provided, inline the full course styleguide HTML for reference (off by default to save tokens; use get-styleguide to fetch it on demand)
Behavior4/5

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

The description discloses important behavioral nuances beyond the idempotentHint annotation: it states that if no body/title/editingRoles is provided, nothing is written and guidance is returned, and that showStyleguidePreview can inline the styleguide. This adds value beyond the annotation, though it doesn't detail permissions or return structure.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the primary purpose, followed by a conditional behavior note and an explicit alternative. Every word earns its place with no fluff or repetition.

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?

Given the tool has 7 parameters, no output schema, and moderate complexity, the description covers the core behavior, the no-op case, and the alternative tool. It doesn't explain what the returned 'guidance' looks like or the exact effect of partial parameters, but for an update/create operation this is reasonably complete.

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 coverage is 100%, so the baseline is 3. The description adds some meaning by tying body/title/editingRoles together as the set triggering no-op behavior, but it doesn't provide significantly more than the schema already does. It does not fully compensate for the lack of parameter examples or additional context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Update or create a page with new content, replacing the entire body.' This uses a specific verb and resource, and distinguishes it from the sibling patch-page-content by noting it replaces the entire body rather than making targeted edits.

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?

Explicit guidance is provided: 'For targeted edits to existing content, use patch-page-content instead.' This gives a clear alternative and also explains the conditional behavior when no body/title/editingRoles are provided, offering both when-to-use and when-not-to-use direction.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/r-huijts/canvas-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server