Skip to main content
Glama

session-download

Download specific artifacts from sessions by storage key. Retrieves base64-encoded PDFs, documents, and images or plain text for generated resumes, cover letters, and files.

Instructions

Download a specific artifact from a session by its storage key. Returns base64-encoded content for binary files (PDF, DOCX, images) or plain text for text files. Use this to retrieve individual generated files like a rendered PDF resume or cover letter. Get artifact keys from session-hydrate first. Read-only, no side effects. Requires scope: sessions:read. For downloading by storage path instead of session context, use document-download.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSession ID
keyYesArtifact storage key from session hydration
Behavior4/5

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

Compensates for absent annotations by disclosing return encoding (base64 for binary, plain text), safety profile ('Read-only, no side effects'), and auth requirements ('Requires scope: sessions:read'). Missing only error behavior or rate limit details.

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?

Four well-structured sentences cover: operation/return format, use case, prerequisite/auth/safety, and alternative tool. Information is front-loaded with no redundant phrases.

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

Completeness5/5

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

Comprehensive for a download tool: explains return encoding (compensating for missing output schema), documents auth scope, states prerequisites, and provides sibling differentiation. No gaps given the complexity.

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 has 100% coverage establishing baseline 3. Description adds workflow context explaining that 'key' comes from session hydration and the relationship between parameters and the prerequisite session-hydrate call.

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?

Specifies exact operation (Download), resource (artifact from session), and mechanism (by storage key). Explicitly distinguishes from sibling document-download by contrasting 'session context' vs 'storage path', and references session-hydrate as the key source.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit workflow prerequisite ('Get artifact keys from session-hydrate first'), concrete use cases ('rendered PDF resume or cover letter'), and clear alternative selection guidance ('For downloading by storage path... use document-download').

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ebenezer-isaac/llmconveyors-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server