Skip to main content
Glama

Physics Calc

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": "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"、"欧姆定律"、"动能")

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose useful behavior: SI units throughout, results returned with units and solution steps, and the default g=9.8N/kg with an override to g=10. What it does not address is failure behavior — what happens with under-determined inputs, contradictory values, or an unknown formula family name.

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?

It is a single dense block, but it is front-loaded with purpose, then coverage, then usage, and the long formula enumeration is doing genuine work by defining parameter symbols and units. Little filler is present, though the '力学+电学' framing and the formula list could have been visually separated for faster scanning.

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?

An output schema exists, so the description needn't explain return shape, and it correctly adds only the unit-and-steps note. For a 19-parameter, zero-required, non-destructive calculator this is close to sufficient; the missing piece is conflict handling when multiple parameters or expr are supplied at once.

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 description coverage is only 11% (just expr and formula), but the description compensates strongly by binding each bare symbol to a physical quantity and unit inside the formula list (F 力 N, m 质量 kg, U 电压 V, R 电阻 Ω, Ek 动能 J, v0 初速度 m·s⁻¹). That is a real addition over the schema's 19 undocumented properties, with the main remaining gap being that case sensitivity and precedence between symbol params and expr are unstated.

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 names a specific verb and resource ('中学物理公式计算器(力学+电学)') and enumerates exactly which formula families it covers, from F=ma through v=v0+at and s=v0t+½at². That enumeration makes it unmistakable against domain siblings like chemistry_calc or math_solve without needing to open 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 Guidelines3/5

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

It gives concrete calling patterns ('直接传参如 m=2,a=3 求 F;或传 expr="m=2,a=3";也可用 formula 指定公式族'), which tells the agent how to invoke but only implicitly when to prefer the structured params over expr or formula. There is no statement of when not to use it, nor of overlap with the other calculators beyond the physics domain.

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