Skip to main content
Glama

poly_roots

All real roots of a polynomial, each individually Krawczyk-certified with a strict error box. Coefficients are highest degree first: [1,-2,-5,6] means x^3-2x^2-5x+6. Use it instead of letting a language model estimate roots. Complex roots are not returned (real only).

Input Schema

NameRequiredDescriptionDefault
toleranceNoTolerance used to decide a root (optional; internal precision is used by default).
coefficientsYesPolynomial coefficients, highest degree first. [1,-2,-5,6] means x^3-2x^2-5x+6.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / coefficients / description
      Previous value: -"多项式系数,最高次在前。如 [1,-2,-5,6] 对应 x³−2x²−5x+6。"New value: +"Polynomial coefficients, highest degree first. [1,-2,-5,6] means x^3-2x^2-5x+6."
    • changedInput schema / properties / tolerance / description
      Previous value: -"根的判定容差(可选,默认内部精度)"New value: +"Tolerance used to decide a root (optional; internal precision is used by default)."
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It usefully discloses the certification method, strict error box, and real-only output, but says nothing about failure modes (no real roots, degenerate input), multiplicity handling, or determinism.

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?

Three tight sentences with the core behavior front-loaded; the coefficient convention and exclusions are placed after the main statement. The 'instead of letting a language model estimate roots' line is slightly promotional but still earns its place as a usage cue.

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?

There is no output schema, so the description must describe the return value; it only implies a list of roots with error boxes and never specifies the structure (e.g., intervals vs. points) or ordering. Adequate for a simple two-param tool, but the return contract is left partly implicit.

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%, so both parameters are already documented, and the description's coefficient-ordering example duplicates the schema text verbatim. The optional tolerance parameter is never mentioned in the description, so no value is added 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?

States a specific verb and resource ('All real roots of a polynomial') plus the method guarantee ('Krawczyk-certified with a strict error box'), which an agent can distinguish from generic solvers like solve/verify. It also explicitly bounds scope by excluding complex roots.

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 a clear when-to-use directive ('Use it instead of letting a language model estimate roots') and states the exclusion (complex roots not returned). It does not contrast against the plausible sibling tools solve or verify, so the routing guidance is incomplete.

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.