Skip to main content
Glama

files_write

Destructive

File management operations that create or modify state: create a new file, open an existing file to start an editing session, or close a session. Requires authentication.

Actions: • open_file(file_id?, file_name?) — Open a spreadsheet, document or presentation by UUID or name and start an editing session. Returns the file's kind and web URL. Use read_data / write_data on a spreadsheet, doc_read / doc_write on a document and slide_read / slide_write on a presentation. The open is remembered for your user across MCP sessions (last open wins) — clients that use a new session per request do not need to re-open after auth(confirm_login). • create_file(file_name, team_uuid?, kind?) — Create a new blank spreadsheet (kind "GRID", the default), document (kind "DOC") or presentation (kind "SLIDE"). If team_uuid is omitted, the user's first team is used. Returns the new file's UUID and web URL; the file must be opened with open_file before it can be edited. • close_file(file_id) — Close an active editing session.

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform: open_file, create_file, or close_file
paramsNoParameters for the action (see tool description)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: authentication is required, open state persists per user across MCP sessions with last-open-wins semantics, and callers using per-request sessions need not re-open after auth(confirm_login). It also documents return values (kind, web URL, UUID) and the team defaulting behavior. It does not explain why destructiveHint=true (what closing a session loses or whether create is reversible), leaving one annotation unexplained.

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 summary sentence followed by per-action bullets, which is well suited to a multiplexed tool. Each bullet carries actionable information, though the open_file bullet is dense and could be split so the sibling routing is easier to scan.

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 three-action multiplexed tool with a generic envelope schema and no output schema, the description covers prerequisites, defaults, return values, session persistence and auth. The only minor omission is what close_file returns, which an agent is unlikely to need.

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?

The input schema is only a generic action/params envelope, so the description carries essentially all parameter meaning: it names file_id, file_name, team_uuid and kind per action, states kind defaults to GRID with DOC/SLIDE alternatives, and explains that an omitted team_uuid falls back to the user's first team. This is meaning the schema alone cannot provide.

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?

The opening sentence names a specific domain (file management) and enumerates the three concrete actions: create a file, open a file to start an editing session, close a session. It is clearly different from the sibling files_read. It loses a point because bundling a non-mutating session-open under a tool named 'files_write' slightly blurs what the tool really is.

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?

Strong routing: after open_file it explicitly tells the agent to use read_data/write_data for spreadsheets, doc_read/doc_write for documents and slide_read/slide_write for presentations, and it states the prerequisite that a file must be opened before editing. It does not explicitly state when to prefer files_write over files_read, but the read/write split is obvious from the action list.

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.