Skip to main content
Glama

process_file

Reads a Canvas file and generates a summary, key points, or Q&A-ready content for discussion.

Instructions

Process a Canvas file for discussion and Q&A. Reads the file content and provides a summary with key points that can be discussed.

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": {
      "fileId": "<fileId>"
    },
    "name": "process_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe Canvas file ID to process
courseIdNoThe Canvas course ID (optional, for context)
courseNameNoThe course name (optional, for context)
analysisTypeNoType of analysis to perform (default: qa_ready)qa_ready

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior3/5

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

There are no annotations, so the description carries full disclosure burden. It does disclose the core behavior — read the file, produce a summary with key points — which is meaningful context, but it says nothing about permissions, failure modes, size limits, or how the non-summary analysis modes behave.

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 sentences with the purpose front-loaded and no padding. Nothing is wasted, though there is also very little content to structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with no annotations and no output schema, the description is thin. It does not explain the four analysis modes, what the returned summary looks like, or how courseId/courseName affect the result, so an agent lacks the information needed to invoke it with the right analysisType.

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 fileId, courseId, courseName, and analysisType are all documented in the schema, establishing a baseline of 3. The description adds no interpretation beyond that and never mentions the analysisType enum values (summary, key_points, full_content, qa_ready), leaving the schema to do all the work.

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?

The description uses a specific verb and resource ('Process a Canvas file') and states that it reads content and returns a summary with key points. It does not distinguish this from sibling tools like read_file or read_file_by_id, which also read Canvas file content, so an agent cannot tell from the description alone why it should pick this tool.

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?

'For discussion and Q&A' gestures at a use case but gives no explicit when-to-use or when-not-to-use guidance, and no comparison to the file-reading siblings in the catalog. The agent must infer the choice entirely.

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