Skip to main content
Glama

emacs_file_save

Save the current or specified Emacs buffer to its associated file, persisting any edits.

Instructions

Save the current or specified buffer to file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bufferNoBuffer name to save (optional, uses current buffer if not specified)
Install Server

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It indicates a write operation but does not mention overwriting behavior, error conditions (e.g., buffer not visiting a file), or side effects like modifying the buffer's saved state. This is thin for a mutating 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?

The description is a single sentence with no wasted words, and the main scoping detail ('current or specified buffer') is front-loaded. It is appropriately sized for a tool with one optional parameter.

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

Completeness3/5

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

The tool is simple, with one optional parameter and no output schema, so the description covers the essential calling context. However, for a save operation with no annotations, missing details about overwrite behavior and failure cases leave it slightly incomplete.

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

Parameters3/5

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

Schema description coverage is 100%, and the single 'buffer' parameter is already documented as optional with 'uses current buffer if not specified'. The description's wording 'current or specified buffer' aligns with the schema but adds no additional semantic detail, so the baseline of 3 is appropriate.

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 description states a specific action ('Save') and a clear resource ('the current or specified buffer to file'), so an agent knows what the tool does. It does not explicitly distinguish itself from sibling emacs_file_save_as, but the phrase 'to file' and the optional buffer parameter make the core purpose unambiguous.

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

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives like emacs_file_save_as or emacs_buffer_write. The description implies a save action, but it does not state prerequisites, exclusion cases, or when the sibling save-as tool should be chosen instead.

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

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/mandoo180/emacs-mcp'

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