Skip to main content
Glama

Save file

save_text_file
Destructive

Save text as a file the user can download from their Second Brain, most often a CSV: a contact list, an export, a table they want in a spreadsheet or another tool. Also .tsv, .txt, .md and .json. Files written anywhere else (a sandbox, a temp folder) are gone when you finish and the user never sees them, so this is the only way to hand over a file. Never tell the user a file is ready unless this returned saved: true. Link it in your reply as filename.

Input Schema

NameRequiredDescriptionDefault
contentYesThe whole file. For a CSV, a header row then one row per line.
filenameYesThe name with its extension, e.g. contacts.csv.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations mark this as a mutation (readOnlyHint=false, destructiveHint=true) and the description does not contradict that. It adds real behavioral context annotations can't convey: the return contract (saved: true, download_url) and the instruction to link it as [filename](download_url). It does not say what happens if a file of the same name already exists, which matters for a destructiveHint tool.

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 core action and the most likely case (CSV) in the first sentence, then layers extensions, the failure caveat, and the success contract. Every sentence carries distinct information; nothing repeats the schema.

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?

For a two-parameter tool with no output schema, the description covers the return payload (saved flag, download_url) and how to present it, which is exactly the gap structured fields leave. The only omission is overwrite/collision behavior, which is worth a sentence given destructiveHint=true.

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 baseline is 3. The description still adds value beyond the schema by constraining the accepted extensions and sketching the CSV layout (header row then one row per line), which tells the agent how to shape content before calling.

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 text as a downloadable file in the Second Brain) plus the concrete artifact types it produces (CSV, TSV, TXT, MD, JSON), which distinguishes it from generate_pdf, generate_markdown and save_file_from_url. An agent can tell what it produces 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?

Gives clear positive conditions (a contact list, export, table for a spreadsheet) and a strong negative one: files written to a sandbox or temp folder disappear, so this is the only way to hand a file over. No sibling tool is named as an alternative, which keeps it short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.