Skip to main content
Glama
aplavin
by aplavin

julia_eval

Evaluate Julia code in a persistent REPL session. State is preserved across calls, reducing startup costs and keeping variables alive.

Instructions

ALWAYS use this tool to run Julia code. NEVER run julia via command line.

Persistent REPL session with state preserved between calls. Each env_path gets its own session, started lazily. Do not type Pkg.activate() explicitly in your code; instead, specify the env_path argument to select the environment.

Args: code: Julia code to evaluate. Use display(...)/println(...) to see output. env_path: Julia project directory path. Omit for a temporary environment. timeout: Seconds (default: 60). Auto-disabled for Pkg operations. julia_cmd: Custom Julia command, should be used rarely, only when explicitly requested. Examples: "julia +1.11", "julia --check-bounds=yes", "/path/to/julia".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
env_pathNo
timeoutNo
julia_cmdNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully discloses behavior: persistent REPL session with state preserved, lazy session creation per env_path, timeout auto-disabled for Pkg operations, and the need for display/println to see output. It lacks details on error handling or side effects, but covers key behavioral traits adequately.

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: a bold directive first, then a line about session behavior, then a bullet-point list for arguments. Every sentence adds value, and there is no redundant information.

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 4 parameters, no annotations, and an existing output schema, the description covers purpose, usage guidelines, behavior, and parameter details comprehensively. It explains session persistence, environment management, and special timeout behavior, making the tool easy to use correctly.

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?

Schema coverage is 0%, but the description explains every parameter's purpose and usage: code requires display/println, env_path defaults to a temporary environment, timeout auto-disables for Pkg, and julia_cmd is rarely used with examples. This adds significant meaning beyond the schema's field names and types.

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 explicitly states 'ALWAYS use this tool to run Julia code' and explains it as a persistent REPL session. The verb 'run' and resource 'Julia code' are specific, and the instruction 'NEVER run julia via command line' distinguishes it from command-line execution, setting it apart from siblings like julia_list_sessions and julia_restart.

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?

The description provides clear directives: 'ALWAYS use this tool to run Julia code' and 'NEVER run julia via command line.' It also advises against typing Pkg.activate() explicitly, recommending the env_path argument instead. This explicitly communicates when to use this tool and how to use it correctly.

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