Skip to main content
Glama

solve_equation

Solve single equations or systems of equations for specified variables, using symbolic computation from SageMath.

Instructions

Solve an equation or system of equations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionNoNamed workspace to use. Workspaces have independent variables; omit for 'default'.default
equationYesEquation string (e.g., 'x^2 - 1 = 0') or list of equations for systems
variableNoVariable or list of variables to solve forx

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations, the description carries the full burden for behavioral disclosure, yet it only restates the purpose. It does not explain session behavior, variable handling, or symbolic vs numeric solving, leaving the agent without crucial context.

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, front-loaded sentence with zero wasted words. It is appropriately concise for the tool's purpose.

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?

Given the output schema and full parameter coverage, the description is adequate but minimal. It fails to mention session workspaces or provide context on solving limitations, but the schema compensates for parameter detail.

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 coverage is 100% with parameter descriptions for equation, variable, and session, so the schema already documents parameter semantics. The description adds no additional parameter meaning, earning the baseline score.

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 clearly states the tool solves an equation or system of equations, providing a specific verb and resource. It distinguishes from solve_ode by not mentioning differential equations, but it does not explicitly differentiate from numerical root finding (find_root).

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?

The description gives no guidance on when to use this tool versus alternatives such as find_root, solve_ode, or evaluate_sage. No exclusions or prerequisites are mentioned.

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/XBP-Europe/sagemath-mcp'

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