Raw Canvas Request
raw_canvas_requestCall any Canvas REST API endpoint under /api/v1 not covered by other tools, using GET for reads and confirmed POST, PUT, or DELETE requests for changes.
Instructions
Call a Canvas REST API endpoint directly, for anything the other tools don't cover. Requests only go to your Canvas, inside /api/v1. GET is read-only. POST, PUT and DELETE can change data: they are blocked when CANVAS_ALLOW_WRITES=false and need confirmation. Quiz-submission writes and endpoints that hand out sign-ins or tokens are always refused. [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": {
"method": "<method>",
"path": "<path>"
},
"name": "raw_canvas_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST/PUT | |
| path | Yes | API path after /api/v1, e.g. '/users/self/enrollments' | |
| method | Yes | HTTP method | |
| params | No | Query parameters | |
| confirm | No | Set to true together with confirm_token to carry out a request you already previewed. | |
| paginate | No | Follow Link headers and collect all pages (GET only) | |
| max_items | No | With paginate=true, stop after this many items. Default 200. | |
| confirm_token | No | The one-time token from the preview. Only use it after the user has said yes. |