Skip to main content
Glama
chrischall
by chrischall

ic_download_document

Destructive

Download a student's PDF to a local path using the document ID from list results. Works with Infinite Campus; returns FeatureDisabled when the district disables this feature.

Instructions

Download a student's document (PDF) to disk. documentId is the url field returned by ic_list_documents. Returns FeatureDisabled if the district has the module turned off.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
districtYes
overwriteNo
documentIdYesThe url field returned by ic_list_documents
destinationPathYesAbsolute path where the PDF should be written

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv2.8.3

TDQS

A4.1/5.0
Behavior4/5

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

The description discloses a specific failure mode: 'Returns FeatureDisabled if the district has the module turned off.' With destructiveHint=true already present, the description adds useful error-condition context beyond the annotation without contradicting it.

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?

Three sentences, each earning its place: the action is front-loaded, documentId provenance is clarified, and a relevant error is disclosed. No filler or redundant restatement.

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?

For a side-effecting tool with destructiveHint=true and no output schema, the description covers the main action and one notable error but leaves overwrite semantics and district selection implicit. This is functional but has clear gaps an agent would need to resolve.

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 50%, so the description must compensate for under-documented parameters. It clarifies documentId's provenance, but district and overwrite receive no additional semantic guidance beyond their bare schema types.

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 action ('Download'), a specific resource ('a student's document (PDF)'), and a target ('to disk'). It further ties documentId to ic_list_documents, making the tool's role distinct from the list-oriented siblings.

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 description clearly implies this is the follow-up to ic_list_documents by explaining that documentId comes from that tool's url field. It does not explicitly name alternatives or state when not to use it, but the workflow context is clear.

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