Skip to main content
Glama

chem_ph

Read-only

pH calculator — pH, pOH, [H3O+] and [OH-] for strong/weak acids and bases (exact quadratic, water autoionization for very dilute solutions), buffers (Henderson-Hasselbalch via acid_conc + base_conc) or a plain pH conversion (ph=). Built-in pKa/pKb table for ~50 common solutes (acetic acid, HCl, NaOH, ammonia, citric acid...); or pass type=strong-acid|strong-base|weak-acid|weak-base with pka/ka/pkb/kb. Params concentration= (mol/L), solute=. Price: $0.002 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "concentration": "<concentration>",
      "solute": "<solute>"
    },
    "name": "chem_ph"
  }
}

Input Schema

NameRequiredDescriptionDefault
soluteYese.g. acetic acid
concentrationYese.g. 0.1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, destructiveHint=false, openWorldHint=true), and the description adds genuinely useful behavior: exact quadratic treatment, water autoionization for very dilute solutions, Henderson-Hasselbalch for buffers, and a ~50-solute pKa/pKb table. It also discloses the external cost ($0.002 USDC on Base via x402), which is valuable for an open-world paid call. It stops short of describing the response shape, but the behavioral layer above annotations is solid.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the opening clause, which is good. But the single dense paragraph mixes pricing, solute table size, math method, and a long list of non-existent parameter names, making it heavier than needed for a two-parameter tool.

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 computational two-param tool with no output schema, the definition covers method accuracy, supported chemistry, and cost. The one real gap is that it never explains how buffer or pH-conversion use cases map onto the only available inputs (solute, concentration), leaving the agent unable to select those modes.

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

Parameters2/5

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

The description adds meaning for concentration ('mol/L') and solute, but it also references parameters absent from the schema (acid_conc, base_conc, ph=, type, pka, ka, pkb, kb) while both schema properties are required. That mismatch can lead an agent to construct calls the schema rejects, so the added text is partially misleading rather than purely additive.

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?

States a concrete verb+resource ('pH calculator') and enumerates the supported computation modes (strong/weak acids and bases, buffers, plain pH conversion), plus the built-in pKa/pKb solute table. An agent can tell this apart from chem_solution or chem_gas_law without opening either 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 describes mode selection at a conceptual level — buffers via acid_conc + base_conc, plain conversion via ph=, or type=strong-acid|strong-base|weak-acid|weak-base with pka/ka/pkb/kb — which is real usage guidance. However, none of those discriminating parameters exist in the schema, so the guidance cannot be operationalized by the caller and there is no explicit 'when not to use' or alternative-tool routing.

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