Science & Education
Ksp 与摩尔溶解度双向互算,支持任意化学计量类型 A_mB_n:Ksp = (m·s)ᵐ·(n·s)ⁿ = mᵐ·nⁿ·s^(m+n)。1:1 型为 Ksp = s²,1:2/2:1 型为 4s³,1:3/3:1 型为 27s⁴,2:3/3:2 型为 108s⁵。可选填摩尔质量把 s 换算成 g/L。锚点:AgCl 的 Ksp = 1.8×10⁻¹⁰ → s = 1.34×10⁻⁵ mol/L = 1.92×10⁻³ g/L;CaF₂ 的 s = 0.25 mmol/L → Ksp = 4s³ = 6.25×10⁻¹¹。
用三种语言从你的代码中调用此工具。
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/solubility-product-ksp' \
-H 'Content-Type: application/json' \
-d '{"direction":"ksp-to-s","saltType":"ab","ksp":1.8e-10,"solubility":0.0000134,"sUnit":"M","molarMass":143.32}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/solubility-product-ksp| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| direction | select | 是 | — |
| saltType | select | 是 | — |
| ksp | number | 否 | — |
| solubility | number | 否 | — |
| sUnit | select | 是 | — |
| molarMass | number |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-solubility-product-ksp": {
"name": "solubility-product-ksp",
"description": "Ksp 与摩尔溶解度双向互算,支持任意化学计量类型 A_mB_n:Ksp = (m·s)ᵐ·(n·s)ⁿ = mᵐ·nⁿ·s^(m+n)。1:1 型为 Ksp = s²,1:2/2:1 型为 4s³,1:3/3:1 型为 27s⁴,2:3/3:2 型为 108s⁵。可选填摩尔质量把 s 换算成 g/L。锚点:AgCl 的 Ksp = 1.8×10⁻¹⁰ → s = 1.34×10⁻⁵ mol/L = 1.92×10⁻³ g/L;CaF₂ 的 s = 0.25 mmol/L → Ksp = 4s³ = 6.25×10⁻¹¹。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=solubility-product-ksp",
"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": "solubility-product-ksp",
"arguments": {
"direction": "ksp-to-s",
"saltType": "ab",
"ksp": 1.8e-10,
"solubility": 0.0000134,
"sUnit": "M",
"molarMass": 143.32
}
}
}有问题或反馈?请联系 [email protected]
| — |
文本结果
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}