Skip to main content
Glama

Save file

save_text_file

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

TableJSON 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.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, so the description carries real weight and delivers: it discloses the return contract (saved: true, download_url), the persistence semantics that distinguish it from writing to a sandbox/temp folder, and the user-facing handoff requirement. This is behavioral context an agent cannot get from the schema or annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then formats, then the critical persistence rationale, then the output contract — a sensible ordering with no wasted sentences. The illustrative list ('a contact list, an export, a table...') is slightly padded, but nothing is off-topic.

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?

For a two-parameter write tool with no output schema and only a readOnlyHint annotation, the description supplies the missing pieces: supported formats, the return contract, and the user-visible consequence of the write. An agent has everything needed to call it and to report the result correctly.

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, but the description adds meaning the schema lacks: the accepted extension set (.csv, .tsv, .txt, .md, .json) and the dominant CSV shape. It does not add further syntax detail for content/filename beyond the schema's own descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 file the user can download from their Second Brain') and illustrates the typical use case with concrete examples (contact list, export, spreadsheet table). It implies but never explicitly names the near-siblings it must be distinguished from, e.g. save_file_from_url, generate_pdf and generate_markdown, so an agent must infer the boundary.

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 when-to-use ('hand over a file'), an exclusion rationale ('files written anywhere else... are gone when you finish and the user never sees them'), and the required post-call behavior (only claim a file is ready when saved: true; link as [filename](download_url)). This is close to a complete usage contract.

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.