Science & Education
能斯特方程 E = E⁰ − (RT/nF)·lnQ,温度任意:输入标准电势、转移电子数、反应商 Q 与温度(K 或 °C),输出热学因子 RT/F、每十倍 Q 的电位变化 2.303RT/nF、电极电势 E 以及 ΔG = −nFE。锚点:25 °C 时 RT/F = 25.693 mV,单电子电极每十倍 Q 移动 59.16 mV、双电子 29.58 mV;丹尼尔电池(E⁰ = 1.10 V,n = 2)在 Q = 100 时降到 1.041 V。
用三种语言从你的代码中调用此工具。
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/nernst-equation-calculator' \
-H 'Content-Type: application/json' \
-d '{"e0":1.1,"n":2,"q":100,"temperature":298.15,"tUnit":"K"}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/nernst-equation-calculator| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| e0 | number | 是 | — |
| n | number | 是 | — |
| q | number | 是 | — |
| temperature | number | 是 | — |
| tUnit | select | 是 | — |
文本结果
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-nernst-equation-calculator": {
"name": "nernst-equation-calculator",
"description": "能斯特方程 E = E⁰ − (RT/nF)·lnQ,温度任意:输入标准电势、转移电子数、反应商 Q 与温度(K 或 °C),输出热学因子 RT/F、每十倍 Q 的电位变化 2.303RT/nF、电极电势 E 以及 ΔG = −nFE。锚点:25 °C 时 RT/F = 25.693 mV,单电子电极每十倍 Q 移动 59.16 mV、双电子 29.58 mV;丹尼尔电池(E⁰ = 1.10 V,n = 2)在 Q = 100 时降到 1.041 V。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=nernst-equation-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "nernst-equation-calculator",
"arguments": {
"e0": 1.1,
"n": 2,
"q": 100,
"temperature": 298.15,
"tUnit": "K"
}
}
}有问题或反馈?请联系 [email protected]