Skip to main content
Glama

chem_gas_law

Read-only

Gas law solver — Ideal gas PV = nRT: give any three of p, v, n (or mass_g + formula), t with units (atm, kPa, Pa, bar, mmHg, torr, psi; L, mL, m3, gal; K, C, F) and get the fourth, plus molar volume and gas density when a formula is given. Combined gas law with p1, v1, t1, p2, v2, t2 (give five). 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": {
      "p": "<p>",
      "t": "<t>",
      "n": "<n>"
    },
    "name": "chem_gas_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYese.g. 1
pYese.g. 1atm
tYese.g. 25C

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered; the description usefully adds the pay-per-call cost ($0.002 USDC via x402 on Base) and discloses the extra derived outputs (molar volume, gas density). However, it advertises capabilities absent from the schema (a `v` variable, `mass_g`+`formula`, combined-law parameters p1..t2), which would lead an agent to attempt invalid calls.

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?

Front-loaded with the core operation and kept to one dense sentence plus a cost note; every clause carries information (units, outputs, pricing). The nested parenthetical unit lists make it slightly hard to scan, but nothing is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does the right thing by naming the return values, and it discloses pricing — both appropriate for a compute-style tool. But for a 3-parameter tool it over-describes a much larger surface than the schema implements, so an agent cannot fully reconcile what it can actually pass from this definition alone.

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 schema already documents all three parameters at 100% coverage, but the description conflicts with it: it says 'give any three of p, v, n, t' while the schema requires p, t, and n together and exposes no `v`, `mass_g`, `formula`, or p1..t2 properties. The unit enumeration (atm, kPa, bar, mmHg, psi; L, mL, m3, gal; K, C, F) is genuinely valuable and not in the schema, but the fabricated parameter set outweighs that gain.

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 and resource (gas law solver, ideal gas PV = nRT) and states precisely what it computes: the missing fourth variable from any three of p, v, n, t, plus molar volume and gas density, and a combined gas law mode. An agent can tell exactly what domain problem this solves without opening 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 Guidelines4/5

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

Gives clear invocation context — supply three known quantities with units and receive the fourth; give five of six for the combined law — and enumerates accepted unit systems per quantity. It does not name alternatives or exclusions (e.g., when to prefer chem_molar_mass or chem_solution), so it stops short of explicit routing guidance.

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