Skip to main content
Glama

canvas_extract_links_from_content

Extract all URLs from a Canvas assignment, page, or announcement to locate embedded resources and linked content.

Instructions

Extract all URLs/links from an assignment description, page, or announcement. Useful for finding embedded resources.

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": {
      "course_id": "<course_id>",
      "content_type": "<content_type>",
      "content_id": "<content_id>"
    },
    "name": "canvas_extract_links_from_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
course_idYesThe Canvas course ID
content_idYesThe content ID (assignment_id, page_url, or announcement_id)
content_typeYesType of content to extract links from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: it does not confirm the operation is read-only (only implied by "extract"), state whether links are deduplicated or returned as absolute vs relative URLs, or describe what happens when the content has no links or the caller lacks access. For a tool with zero annotation coverage and no output schema, one sentence of purpose is thin.

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, purpose front-loaded, zero filler. Nothing needs to be cut.

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?

The schema fully covers inputs and the tool is simple, but with no output schema the description should say roughly what comes back (a list of URLs? with link text?) and it does not. Missing return-shape detail is the main gap for an otherwise small, well-specified 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 100%, so all three parameters are already documented, including the enum of content types. The description restates the content_type values in prose but adds no new meaning (e.g., that content_id is a page slug for type=page but a numeric ID otherwise) beyond 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?

"Extract all URLs/links from an assignment description, page, or announcement" gives a specific verb plus the exact resource set, and the three named content types match the enum. It is distinguishable from the surrounding get_* retrieval tools, though it never names a sibling to contrast with.

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?

"Useful for finding embedded resources" implies the use case but gives no when-not-to-use condition and no routing advice relative to canvas_get_page or canvas_get_assignment, which an agent may need to call first to even know a page exists. Usage is implied rather than prescribed.

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