Skip to main content
Glama
aplavin
by aplavin

julia_restart

Restart a Julia session to clear all state when it becomes broken. Use only as a last resort since Revise.jl automatically updates code changes.

Instructions

Restart a Julia session, clearing all state.

IMPORTANT: Restarting is slow and loses all session state. Very rarely needed. Revise.jl is loaded automatically in every session, so code changes to loaded packages are picked up without restarting. Only restart as a last resort when the session is truly broken, or code changes that Revise cannot fix. Do NOT restart just because source files were edited between script or test runs — Revise picks up those changes automatically.

Args: env_path: Environment to restart. If omitted, restarts the temporary session (NOT every active session) — most callers should pass the same env_path they used in julia_eval.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
env_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Without annotations, the description fully discloses behavioral traits: restarting is slow, loses all state, Revise.jl is loaded automatically, and the default behavior of env_path restarts only the temporary session.

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 concise and well-structured. It starts with the core purpose, then provides crucial context in an IMPORTANT note, and includes a clear Args section for the parameter. Every sentence adds value.

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?

Given the presence of an output schema (which can describe return values), the description covers all other aspects: purpose, behavior, parameter semantics, and usage context. It is complete for the tool's complexity.

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 schema has 0% coverage for the single parameter env_path. The description adds essential meaning: environment to restart, default behavior (restarts temporary session, not all active), and recommends using the same env_path from julia_eval.

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 clearly states 'Restart a Julia session, clearing all state,' which is a specific verb-resource pair. It distinguishes from siblings julia_eval and julia_list_sessions, which evaluate code and list sessions respectively.

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?

Explicitly says 'Only restart as a last resort' and explains that Revise.jl automatically picks up code changes, so restarting is rarely needed. Provides clear when-to-use and when-not-to-use guidance.

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

Install Server

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/aplavin/julia-mcp'

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