Skip to main content
Glama
sdiehl
by sdiehl

solve_nonlinear_system

Solve systems of nonlinear equations symbolically using SymPy. Input expression keys and variable names to generate LaTeX-formatted solutions across specified domains like complex or real numbers.

Instructions

Solves a system of nonlinear equations using SymPy's nonlinsolve.

Args:
    expr_keys: The keys of the expressions (previously introduced) forming the system.
    var_names: The names of the variables to solve for.
    domain: The domain to solve in (Domain.COMPLEX, Domain.REAL, etc.). Defaults to Domain.COMPLEX.

Returns:
    A LaTeX string representing the solution set. Returns an error message string if issues occur.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainNocomplex
expr_keysYes
var_namesYes
Behavior4/5

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

With no annotations provided, the description carries full burden and discloses key behavioral traits: it uses SymPy's nonlinsolve, returns a LaTeX string or error message, and mentions dependencies on 'previously introduced' expressions. However, it doesn't cover rate limits, computational complexity, or specific error conditions.

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 front-loaded with the core purpose, followed by structured Args and Returns sections. Every sentence adds value: the first states the action and method, and the subsequent lines explain parameters and output without redundancy.

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?

Given no annotations, 0% schema coverage, and no output schema, the description is fairly complete: it explains purpose, parameters, and return behavior. However, it could improve by detailing error cases or computational limits, and it doesn't fully address sibling tool differentiation.

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?

Schema description coverage is 0%, so the description must compensate. It adds meaning for all parameters: expr_keys are 'keys of the expressions (previously introduced)', var_names are 'names of the variables to solve for', and domain is 'the domain to solve in' with examples. This clarifies semantics beyond the bare 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 the specific action ('Solves a system of nonlinear equations'), the method ('using SymPy's nonlinsolve'), and the resource ('expressions previously introduced'). It distinguishes from siblings like solve_linear_system and solve_algebraically by specifying nonlinear equations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for nonlinear equations but doesn't explicitly state when to use this tool versus alternatives like solve_linear_system or solve_algebraically. It mentions 'previously introduced' expressions, suggesting a prerequisite, but lacks clear exclusions or comparative 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

Related 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/sdiehl/sympy-mcp'

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