Skip to main content
Glama

Engine Heart

study.physics_calc

中学物理公式计算器(力学+电学):传入已知物理量,自动匹配公式求未知量。覆盖公式族:牛顿第二定律 F=ma(F力N/m质量kg/a加速度m/s²)、重力 G=mg(g默认9.8N/kg,可传g=10)、压强 p=F/S(Pa/N/m²)、欧姆定律 I=U/R(A/V/Ω)、电功 W=UIt(J/V/A/s)、电功率 P=UI(W/V/A)、动能 Ek=½mv²(J/kg/m·s⁻¹)、匀变速直线运动 v=v0+at 与 s=v0t+½at²。用法:直接传参如 m=2,a=3 求 F;或传 expr="m=2,a=3" / "质量=50";也可用 formula 指定公式族。全部使用国际单位制,结果带单位与解题步骤。

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.physics_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
FNo
GNo
INo
PNo
RNo
SNo
UNo
WNo
aNo
gNo
mNo
pNo
sNo
tNo
vNo
EkNo
v0No
exprNo可选,已知量字符串,如 "m=2,a=3"、"U=220,I=0.5"
formulaNo可选,指定公式族(如 "F=ma"、"欧姆定律"、"动能")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description must carry the full behavioral burden and it does substantially: it declares the SI-unit contract, the default g=9.8 N/kg with an override to 10, and that results come back with units plus solution steps. It omits failure behavior (unknown/missing quantities, cross-family ambiguity), which is the main residual gap for a zero-annotation tool.

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?

Purpose is front-loaded in the first clause, followed by the formula inventory and then usage modes — a sensible order. The formula list is dense but each entry carries a quantity-to-unit mapping that has no other home given the 11% schema coverage, so the length is earned rather than padded.

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-parameter, zero-required, no-annotation, no-output-schema tool, the definition covers the essentials: what it solves, what units apply, defaults, and what the response contains. What is missing is edge-case guidance — which inputs resolve which formula family when several overlap, and how errors or missing quantities are surfaced.

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 parameters, so the description must compensate and largely does: nearly every input symbol is tied to a named quantity and unit (F in N, m in kg, a in m/s², S in m², U in V, I in A, R in Ω, W in J, t in s, v0/v in m/s, Ek in J). It also disambiguates lowercase p (pressure) from uppercase P (electric power) and G (gravity) from g (gravitational acceleration), and documents expr and formula with examples.

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?

Names a specific verb+resource: computing unknowns from known physics quantities, scoped to mechanics and electricity. The enumerated formula families (F=ma, G=mg, p=F/S, I=U/R, W=UIt, P=UI, Ek=½mv², v=v0+at, s=v0t+½at²) make it unmistakable versus siblings like study.math_solve or study.chemistry_calc.

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 three concrete invocation modes: direct named args (m=2,a=3), an expr string ("m=2,a=3" / "质量=50"), or an explicit formula selector. It states the auto-matching assumption (supply knowns, tool solves the unknown), but never says when to prefer a general solver such as study.math_solve, nor what happens when inputs are insufficient or ambiguous.

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