Skip to main content
Glama

ScorpTech x402 Tools

Ohm Law

ohm_law
Read-onlyIdempotent

Ohm's law for one passive resistor. Give any two of voltage (volts), current (amperes), resistance (ohms) and power (watts). The other two come back as exact rationals. A third or fourth value is checked and rejected when it disagrees. Zero volts across a positive resistance is a dead circuit. Voltage across zero ohms, or voltage with zero current, is rejected. Power and resistance are accepted only when both square roots are rational. SI units, no prefixes. Returns JSON with: voltage, voltageFraction, current, currentFraction, resistance, resistanceFraction, power, powerFraction. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/ohm-law

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ohm_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
powerNo
currentNo
voltageNo
resistanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses exact rational outputs, validation rules, edge-case rejections, output JSON fields, and payment/HTTPS endpoint details. It does not contradict the annotations; the tool is correctly presented as a read-only calculation.

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 definition is front-loaded with purpose, followed by rules, edge cases, return fields, and payment details. It is long but structured; the output-field list and payment line are useful because there is no output schema, though some density could be trimmed.

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?

No output schema exists, but the description enumerates the returned fields and covers important edge behavior, while the annotations convey read-only/idempotent behavior. The main missing piece is the accepted input string format and constraints, so it is nearly complete but not fully.

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

Parameters4/5

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

Schema coverage is 0%, so the description carries the burden; it names all four parameters with SI units and states the any-two rule. It still does not specify accepted string syntax for rational or decimal inputs, so it falls short of fully replacing schema-level parameter descriptions.

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?

The first sentence names the specific physical law and scope ('one passive resistor'), then defines the operation as deriving the other two quantities from any two of voltage/current/resistance/power. The sibling tools are unrelated math utilities, so no further differentiation is needed.

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?

It gives clear input cardinality ('Give any two') and describes rejection cases such as a disagreeing third/fourth value, voltage across zero ohms, and voltage with zero current. It does not explicitly compare against an alternative tool, but the siblings are unrelated, so the operational context is adequate.

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