Skip to main content
Glama

evaluate

Execute Wolfram Language scripts and retrieve computed results, including output from Print statements and the last line's value.

Instructions

Evaluate a Wolfram Language script by running the wolframscript -print -file <script> command.

Documentation for Wolfram Language: https://context7.com/websites/reference_wolfram_language/llms.txt

IMPORTANT: The tool is returning the result of the last line executed in the script, and any expression printed explicitly with Print[].

Arguments: script (str): Wolfram Language script to execute.

Returns: str: The result of the Wolfram Language script as a string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses that it runs wolframscript command, returns last line of execution and Print[] outputs. No annotations provided, so description carries burden, and it does so adequately though it omits potential side effects or error handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Includes multiple examples and documentation link, which are helpful but make the description longer than necessary. Could be more concise while retaining clarity.

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

Completeness4/5

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

Covers the essential behavior for a single-parameter tool with a string return. Lacks details on error handling or timeouts, but is sufficient given the tool's simplicity and presence of an output schema (though not shown explicitly).

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

Parameters4/5

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

The single 'script' parameter is explained as a Wolfram Language script, with examples illustrating usage. Schema description coverage is 0%, so description adds significant value beyond the schema.

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 it evaluates a Wolfram Language script by running a specific command, distinguishing it from sibling tools (licensetype, version_*) that handle license/version queries.

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?

Provides clear guidance on output behavior (last line result and Print[] outputs) and includes a documentation link. Does not explicitly state when not to use or compare to alternatives, but siblings are distinct enough.

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/lars20070/mathematica-mcp'

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