Skip to main content
Glama

Engine Heart

study.math_solve

中小学数学求解器,支持五类问题(结果尽量给出分数/根式精确形式+小数近似):① kind='quadratic' 一元二次方程求根:传 expr 如 "x²-5x+6=0"、"2x^2+3x-2=0",或系数 a,b,c(ax²+bx+c=0),返回判别式 Δ 分析(两实根/重根/无实根)与精确根、复数根提示;② kind='linear2' 二元一次方程组:传 eq1/eq2 如 eq1='2x+3y=8', eq2='x-y=1',或系数 a1,b1,c1,a2,b2,c2;③ kind='combination' 组合数 C(n,k):传 n,k 或 expr='C(5,2)';④ kind='permutation' 排列数 A(n,k):传 n,k 或 expr='A(5,2)';⑤ kind='sequence' 数列:seq_type='arithmetic'/'geometric',传 first(首项)、common(公差d/公比q)、terms(项数n),返回第 n 项与前 n 项和。不传 kind 直接传 expr 可自动识别题型。

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": "study.math_solve"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNo
bNo
cNo
kNo
nNo
a1No
a2No
b1No
b2No
c1No
c2No
eq1No
eq2No
exprNo表达式字符串,如 "x²-5x+6=0"、"2x+3y=8;x-y=1"、"C(5,2)"、"等差数列 a1=2,d=3,n=10"
kindNoquadratic / linear2 / combination / permutation / sequence,留空则按 expr 自动识别
firstNo
termsNo
commonNo
seq_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/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 burden, and it does disclose output semantics: exact fraction/radical forms plus decimal approximations, discriminant analysis with real/double/complex-root branches, nth term and partial sums. It says nothing about error behavior, validation rules (e.g. n/k must be non-negative integers), or what happens when expr conflicts with explicit coefficients, so the safety/edge-case profile remains opaque.

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 numbered ①–⑤ enumeration is front-loaded and scannable, and every clause carries usable information. It is a single dense paragraph, however, and the parenthetical asides (Chinese/ASCII example variants, fraction/radical note) make it heavier than it needs to be.

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 19-param, zero-required, no-output-schema, no-annotation tool, the description covers both the input combinations and the shape of results well. Remaining gaps are precedence rules (expr vs explicit coefficients), integer/domain constraints on n, k and terms, and failure modes, none of which block correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 11% across 19 optional parameters, yet the description supplies meaning for essentially all of them: a,b,c as ax²+bx+c, a1/b1/c1/a2/b2/c2 as the two linear equations, n/k as the combinatorics operands, first/common/terms/seq_type as sequence fields, plus eq1/eq2 and expr. This compensates almost fully for the sparse schema and maps each parameter to the mode that consumes 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?

Opens with a concrete verb+resource (中小学数学求解器) and then enumerates the five supported problem classes with worked input examples, so an agent knows exactly what it computes and in what shape. It also implicitly separates itself from study.physics_calc/chemistry_calc by confining scope to pure math solving.

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?

Each mode carries its own invocation recipe (kind='quadratic' with expr or a,b,c; kind='linear2' with eq1/eq2 or a1..c2; n,k for C and A; seq_type/first/common/terms for sequences), and the fallback 'omit kind and pass expr for auto-detection' is stated explicitly. It lacks any statement of when to prefer a sibling tool, but the per-mode routing is unusually clear.

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