Skip to main content
Glama

Gas Law Calculator

calculator_gas_law
Read-only

Boyle, Charles, Gay-Lussac, Combined, Ideal (R=0.082057 L·atm/(mol·K)). T in K internally.

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": {
      "law": "<law>"
    },
    "name": "calculator_gas_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNoMoles (ideal).
pNoPressure atm (ideal).
tNoTemperature K/C/F (ideal).
vNoVolume L (ideal).
p1NoP1 (atm).
p2NoP2 (atm).
t1NoT1 (K/C).
t2NoT2 (K/C).
v1NoV1 (L/mL).
v2NoV2 (L/mL).
lawYesboyle|charles|gay_lussac|combined|ideal

Output Schema

NameRequiredDescriptionDefault
lawYes
resultYes
expressionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare read-only, non-destructive, closed-world behavior, and an output schema exists. The description adds useful behavioral context: the ideal-gas R value and that temperature is normalized to K internally, with no contradiction.

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?

The description is extremely compact and front-loads the supported laws and key constants. However, the fragment style and missing explicit verb keep it from being fully actionable despite being efficient.

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?

For an 11-parameter, law-dependent calculator, the description names modes and unit normalization but omits the core invocation pattern: provide known values and solve for the missing one, with different parameter sets per law. Schema and output schema cover fields and returns, but this conditional usage gap remains.

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

Parameters3/5

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

Schema coverage is 100%, so individual parameters and examples are already documented. The description adds the R constant and K normalization, but it does not explain which parameters are required for each law, such as Boyle versus Charles, leaving conditional parameter semantics to inference.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the five supported gas laws and the ideal-gas constant, while the name/title identify it as a calculator. It is specific enough to distinguish this from generic calculator siblings, though it never explicitly says it solves for the missing variable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance, no comparison to alternative calculator siblings, and no instruction on choosing a law or supplying known variables. The reader must infer usage from the list of law names.

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.