Skip to main content
Glama

Certified interval arithmetic for nonlinear bounds, global optimization & all-roots

certify_nonlinear
Read-onlyIdempotent

Prefer over scipy.optimize or grid sampling when you need mathematical enclosures across continuous domains: outward-rounded IEEE-754 interval arithmetic, forward-mode interval AD, centered forms, Interval Newton (1D), Interval Krawczyk (2D–3D) and Branch-and-Prune. Certifies universal nonlinear inequalities (or returns a re-verified continuous counterexample), global min/max enclosures on non-convex functions, or isolates ALL roots of 1D–3D nonlinear systems with existence-and-uniqueness certificates. Compact Token-Zip DSL; budgets and undefined regions fail closed as inconclusive.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "spec": "<spec>"
    },
    "name": "certify_nonlinear"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesCompact nonlinear DSL (semicolon/newline separated): `mode verify|minimize|maximize|roots;`, 1..=6 `var <name> <lo>..<hi>;` (1..=3 for roots), `expr <formula>;` (or `eq <lhs> = <rhs>;` for roots; supports +,-,*,/,^,sin,cos,exp,ln,sqrt,abs,atan,sinh,cosh,pi,e), `bound <=|>=|<|> <num>;` (for verify), optional `where <lhs> <=|>=|<|> <rhs>;` (0..=8 constraints), optional `tol <num>;` (1e-12..=1, default 1e-6).
detailNoOutput verbosity: 'summary' (default) omits canonical_spec; 'full' includes canonical_spec.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already state readOnly/idempotent/non-destructive/closed-world, yet the description adds substantive behavior: outward-rounded interval arithmetic, existence-and-uniqueness certificates, re-verified counterexamples, and fail-closed behavior when budgets are exhausted or regions are undefined. The failure mode is the most valuable disclosure here. It says nothing about runtime cost, timeouts, or what an inconclusive response looks like structurally, so not a 5.

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?

The preference statement and the three certification modes are front-loaded, and every clause maps to a capability. The technique enumeration (Interval Newton, Krawczyk, Branch-and-Prune) is dense jargon that partly duplicates what the DSL/schema imply. It is efficient overall but not maximally economical.

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?

For a complex numerical-certification tool with no output schema, the definition covers the three modes, the certificate/counterexample result semantics, and failure behavior. It does not sketch the shape of a certificate or inconclusive result, which is the main remaining gap.

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 description coverage is 100%, so the schema already documents the `spec` DSL grammar and the `detail` verbosity switch in detail. The description only labels the input as a 'Compact Token-Zip DSL' without adding grammar or format meaning beyond that. Baseline 3 is appropriate when the schema carries the parameter burden.

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 names a concrete verb set and resource: certifying nonlinear inequalities, enclosing global min/max on non-convex functions, and isolating all roots of 1D–3D systems. That is far more specific than the name alone. It does not distinguish itself from any sibling tool in the provided catalog, so it stops short of the top mark.

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?

It explicitly says to prefer this over scipy.optimize or grid sampling when mathematical enclosures are needed, which is real when-to-use guidance with named alternatives. It lacks an explicit 'don't use this for...' exclusion, e.g. simple scalar evaluation, so it falls one step short of 5.

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