Skip to main content
Glama

download_evidence_file

Download a portfolio evidence file to the local review folder so you can open and review it directly.

Instructions

Download a file attached to an evidence version into the local review folder (//bestanden/), so you can open it yourself. file_id comes from get_evidence → latest_version.files[].id.

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": {
      "portfolio_id": "<portfolio_id>",
      "file_id": "<file_id>",
      "assignment": "<assignment>",
      "student": "<student>"
    },
    "name": "download_evidence_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesId (getal)
studentYesstudent_label uit list_submissions
filenameNoOptional file name to save as
assignmentYesOpdrachtnaam, bv. 'Portfolio S3 eindbeoordeling'
portfolio_idYesId (getal)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false; the description usefully adds where the write lands on disk, which is genuine context beyond the structured data. It does not say whether an existing file is overwritten, nor how filename affects the saved path, leaving the non-idempotent hint unexplained.

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 sentences, front-loaded with the action and destination, then the identifier's source. Nothing is padded and both sentences carry load-bearing information.

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?

With no output schema, the description correctly explains the observable outcome (a file placed in the local review folder) and the prerequisite lookup for file_id. The only gap is the absence of any statement about overwrite or filename collision behavior for a non-idempotent write.

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 schema already documents all five parameters, but the description adds real provenance: file_id must come from get_evidence → latest_version.files[].id, which the bare schema label 'Id (getal)' does not convey. It also ties assignment/student implicitly to the folder layout.

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 and resource ('Download a file attached to an evidence version') plus the exact destination ('<opdracht>/<student>/bestanden/'), and names get_evidence as the origin of the identifier, so an agent can separate it from read-only evidence tools without opening the schema.

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 clause 'so you can open it yourself' gives a clear condition for choosing this tool over the listing/getter siblings, and the pointer to get_evidence → latest_version.files[].id establishes the required preceding step. It stops short of stating when not to use it or what happens on repeated downloads.

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