Skip to main content
Glama

emacs_eval

Run Emacs Lisp code directly and retrieve the evaluated result, enabling automated scripting and real-time interaction with Emacs state.

Instructions

Execute Emacs Lisp code and return the result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesElisp code to evaluate
timeoutNoTimeout in milliseconds (default: 5000)
Install Server

TDQS

B3.2/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 states that code is executed and the result returned, but it does not disclose that arbitrary Lisp evaluation can mutate Emacs state, run side effects, or behave dangerously based on the evaluated code.

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 one short sentence with no filler. It front-loads the main action and directly communicates the core behavior.

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

Completeness2/5

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

For a powerful arbitrary-code-execution tool, this is too thin. It omits safety warnings, error behavior, result serialization details, timeout semantics beyond the schema default, and the fact that evaluation can have persistent side effects on the Emacs environment.

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%, so both parameters are already documented in the schema. The description adds no additional meaning beyond saying that the code is executed and a result returned.

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?

The description specifies a clear verb-resource pair: execute Emacs Lisp code and return the result. It is immediately distinguishable from all sibling tools, none of which perform arbitrary Lisp evaluation.

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 given about when to use this tool versus the many dedicated Emacs operations available among siblings. It does not state that this is for arbitrary Lisp evaluation not covered by specialized tools, nor does it warn about cases where dedicated tools would be safer.

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