Skip to main content
Glama

ScorpTech x402 Tools

Equation Solve

equation_solve
Read-onlyIdempotent

Solve equations exactly where possible. Polynomials of any degree up to 100: exact rational roots, exact surd forms for quadratic factors ("(3 + √5)/2", complex "(-1 + i√3)/2"), multiplicities via square-free factorisation, and high-precision numeric roots (Aberth–Ehrlich + Newton polishing) for the rest. Any other single-variable equation ("cos(x) = x", "2^x = x^2 + 1", "ln(x) + x = 5") is solved numerically over a range with sign scanning + Brent's method, rejecting poles. Systems of linear equations ("2x + 3y = 7", "x - y = 1") are solved with exact rational Gaussian elimination, reporting unique, none, or infinitely many solutions in parametric form. Returns JSON with: equation, variable, type, degree, polynomial, realRoots, complexRootCount, roots. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/equation-solve

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "equation_solve"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoNumeric mode: search range end
minNoNumeric mode: search range start
angleNorad
equationNoOne equation, e.g. "x^2 - 5x + 6 = 0" (no "=" means "= 0")
variableNoVariable to solve for (auto-detected)
equationsNoLinear system, e.g. ["2x + 3y = 7", "x - y = 1"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the numerical methods (Aberth–Ehrlich, Brent's method, sign scanning, pole rejection), the pricing model ($0.002 USDC per successful call via x402 on Base or Solana), and an equivalent HTTPS endpoint. Cost and billing semantics are exactly the kind of behavioral detail annotations cannot express.

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

Conciseness4/5

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

Dense but front-loaded: the solving-mode taxonomy comes first, return fields and pricing last. Every clause carries information, though the parenthetical algorithm names and the full endpoint URL make it longer than strictly needed for tool selection.

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?

With no output schema, the description compensates by listing the returned keys (equation, variable, type, degree, polynomial, realRoots, complexRootCount, roots). For a six-parameter, multi-mode tool it is nearly complete, with only error/precedence behavior left unspecified.

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 coverage is 83%, so the schema already documents each field; the description still adds mode-level meaning by tying min/max to the numeric search range and by contrasting the single "equation" field with the "equations" array for linear systems. It doesn't explain the rad/deg enum or precedence when both equation and equations are supplied.

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?

States a specific verb and resource (solve an equation) and then enumerates three distinct solving modes with concrete input examples ("x^2 - 5x + 6 = 0", "cos(x) = x", "2x + 3y = 7"). An agent can tell exactly what class of problem this handles without opening the schema.

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?

Gives clear routing rules between modes: polynomials go one way, any other single-variable equation is solved numerically over a range, and linear systems go through Gaussian elimination. It never names a sibling tool as an alternative, and it doesn't say what happens for unsupported forms (e.g. nonlinear systems), so it stops short of the 5 bar.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources