x402-density
Density: Calculate density: mass divided by volume. Provide mass and volume values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mass | No | Mass to process | |
| volume | No | Volume to process |
Density: Calculate density: mass divided by volume. Provide mass and volume values.
| Name | Required | Description | Default |
|---|---|---|---|
| mass | No | Mass to process | |
| volume | No | Volume to process |
Changes observed during successful MCP inspections.
Input schema / properties / massAdded value: +{
+ "description": "Mass to process",
+ "type": "string"
+}Input schema / properties / volumeAdded value: +{
+ "description": "Volume to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are supplied, so the description must carry the behavioral burden, and it partially does: the stated formula makes clear this is a pure, side-effect-free calculation. However it says nothing about units, output format, or how invalid/zero volume is handled, which are real ambiguities for a numeric tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the operation and followed by the inputs; there is essentially no waste, though the redundancy of "Density: Calculate density" is slightly awkward.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a trivial two-parameter calculator with no output schema and no annotations, the description is minimally sufficient to invoke the tool. It leaves units and result format unspecified, which for a quantitative tool is a noticeable gap but not fatal.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description restates that mass and volume are needed but adds no unit or format semantics beyond the schema's vague "Mass to process" / "Volume to process" labels, so it neither compensates nor degrades.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description gives a specific verb+resource and even spells out the formula (mass divided by volume), so an agent knows exactly what computation is performed. It does not differentiate from sibling density tools like x402-sphere-density or x402-volume, but the operation itself is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
"Provide mass and volume values" tells the agent what inputs are expected but gives no when-to-use guidance, no prerequisites, and no discrimination against the many sibling calculators (sphere-density, mass-from-moles, volume-to-mass) that overlap conceptually.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.