Skip to main content
Glama

export

Save generated PDF artifacts to real files on disk by specifying a destination path and optional filename template. Use at the end to persist results beyond temporary artifact IDs.

Instructions

Save one or more results to a real location on disk.

The only tool that writes to the user's filesystem, so call it once at the end, when they have said where the output should go. Never hand an artifact id back as if it were a finished file; artifacts expire.

Args: refs: Artifact id, or list of artifact ids, to export. dest: Where to write. For a single artifact this may be a full file path. For several artifacts, or when name is given, this is a directory and is created if missing. name: Filename template used when writing into a directory. Placeholders: {n} 1-based index (e.g. "page_{n:03d}{ext}"), {ext} extension, {id} artifact id, {stem} id without extension. Defaults to "{n:03d}{ext}". overwrite: Replace existing files instead of failing. Defaults to False so nothing is destroyed by accident.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
destYes
nameNo
refsYes
overwriteNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that artifacts expire, that dest is created if missing, and that overwrite defaults to False 'so nothing is destroyed by accident,' which tells the agent exactly what the destructive path is. Nothing about the mutation's safety profile is left to inference.

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?

Front-loads the purpose and routing constraint in the first two sentences, then uses a compact Args block for parameters. Every sentence carries information an agent needs; no filler or restatement of the name.

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?

An output schema exists, so return values need not be explained. For a 4-parameter write tool with zero schema coverage and no annotations, the description covers purpose, timing, safety, destination semantics, naming, and overwrite behavior — nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and it does, documenting all four parameters: refs accepts a single id or list, dest shifts meaning between file path and directory depending on arity, name documents its {n}/{ext}/{id}/{stem} placeholders plus the default, and overwrite explains its default and rationale.

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 ('Save one or more results to a real location on disk') and immediately differentiates itself from siblings by declaring it is 'the only tool that writes to the user's filesystem.' An agent can distinguish it from list_artifacts, discard, and the pdf_* readers without opening any schema.

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?

Gives explicit timing ('call it once at the end, when they have said where the output should go') and a concrete anti-pattern ('Never hand an artifact id back as if it were a finished file; artifacts expire'). This is precisely the when-to-use and when-not-to-use guidance the dimension asks for.

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