Skip to main content
Glama
genesis-plan

lingshu-solver

by genesis-plan

solve

Find certified real solutions to equation systems with up to six variables, using interval analysis and Krawczyk verification. Returns reproducible results and flags incomplete searches.

Instructions

求解实数方程组的确定性数值引擎(非大模型,无随机、同输入输出可复现)。适用:需可验证、可复现的实数解(代数或 sin/cos/tan/log/exp/sqrt/abs 等常见超越函数),尤其给 AI Agent 当"不会胡说"的数学后端。不适用:纯符号推导/闭式证明、微分方程初值问题、整数/必不等于等强制约束(暂不支持)。输入:equations 为含 "=" 的方程字符串数组,如 ["x^2+y^2=25","x+y=7"];variables 可选(不填自动识别,最多6个);domain 可选(如 {"x":[-30,30]}),否则默认每变量 ±1e6。硬限制:变量 ≤6;方程 1–64 条且数量须 ≥ 变量数;单次方程文本 ≤100KB;输出固定 6 位小数(不可切换)。输出(JSON):resultType=empty(严格证无实数解)/finite(有限已验证解)/infinite(无限解集,仅给距原点最近推荐解);summary=中文一句话总览;solutions[] 每解含 values、tier(proven=Krawczyk已认证/likely/candidate)、certified、text(人类可读如"x=4.000000, y=3.000000"),残差等内部数值收在 internals 子块(机器可跳过);certified=是否全proven;recommended=距原点最近解的精简结构。truncated=true:预算内未完成全局分支判定、未证明已穷尽——不等于一定漏解,多数情况全部真解已找到;极端病态下可能遗漏个别解,可缩 domain 或提高 budget 重试。错误返回 error.type(invalid_input=输入不合法/超限,internal_error=内部异常)。遇卡点或认为结果有误,请调用 give_feedback(内容仅落本地日志,不外传)。相同输入永远返回完全相同结果,可安全缓存与重复调用。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainNo显式搜索域(可选)。形如 {"x":[-30,30],"y":[-30,30]}。对"有限解·部分"演示或快增长函数(exp/sinh)建议显式给定,否则默认 ±1e6 可能剪枝失效并触发 truncated。
optionsNo高级选项(可选),如 {budget:500000, maxDepth:28}
fastModeNo快速模式(默认 false)
equationsYes方程字符串数组,如 ["x^2 + y^2 = 25", "x + y = 7"]。支持 + - * / ^ sqrt log sin cos tan exp abs,以及 in-text 域约束 "x ∈ [-30,30]"。
variablesNo变量名数组(可选)。不填则由方程文本自动识别,顺序按出现。最多 6 个。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and delivers: determinism/reproducibility, fixed 6-decimal output (not switchable), hard limits (≤6 variables, 1–64 equations, ≥ variable count, ≤100KB), default domain ±1e6, honest truncated=true semantics (not proven exhaustive, may miss solutions in pathological cases), certification tiers (proven/likely/candidate), and error.type values. This is exemplary disclosure with no contradiction.

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?

Every clause earns its place—there is no filler—and the text is front-loaded with the core purpose and determinism guarantee before moving to inputs and outputs. The only weakness is that it is one dense unbroken paragraph; section breaks or bullets would materially improve scannability for an agent.

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?

There is no output schema, so the description correctly carries the full return contract: resultType enum with meanings, solutions[] structure (values/tier/certified/text/internals), certified, recommended, truncated semantics, and error types. Minor gaps remain: fastMode's trade-offs and the semantics of budget/maxDepth in options are only hinted at via the schema example.

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 100%, so the baseline is 3; the description adds value beyond the schema by stating hard limits (variable/equation counts, equation-text size), the default domain of ±1e6, the constraint that equation count must be ≥ variable count, and the link between domain choice and truncation. The schema already documents formats and examples, and the description complements rather than repeats it.

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 opens with a specific verb and resource — '求解实数方程组的确定性数值引擎' (deterministic numerical engine for solving real equation systems) — and explicitly contrasts itself with LLMs ('非大模型,无随机'), positioning it as a hallucination-free math backend for AI agents. It also names give_feedback as the sibling for feedback, so an agent can tell them apart 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 Guidelines5/5

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

Provides explicit '适用' (suitable for) and '不适用' (not suitable for) lists: verifiable real solutions with common transcendental functions vs. symbolic derivation, ODE initial value problems, and integer/hard constraints. It further routes feedback to give_feedback, advises narrowing domain or raising budget on truncation, and endorses safe caching.

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

Deploy Server

Other Tools