Skip to main content
Glama

ScorpTech x402 Tools

Led Resistor

led_resistor
Read-onlyIdempotent

Series resistor for LEDs on one supply. Resistance is (supply − series × forward) / current, with volts and amperes. The part chosen is the next IEC 60063 E24 value at or above that resistance, so the LED current does not go over the request. The forward drop of the string must be under the supply. Exact rationals. Returns JSON with: ohms, fraction, e24, e24Fraction, roundedUp, currentAtE24, power, series. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/led-resistor

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": {
      "supply": "<supply>",
      "forward": "<forward>",
      "current": "<current>"
    },
    "name": "led_resistor"
  }
}

Input Schema

NameRequiredDescriptionDefault
seriesNoHow many LEDs in series
supplyYesSupply, volts
currentYesWanted LED current, amperes
forwardYesForward drop of one LED, volts

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent/non-destructive, and the description goes well beyond them: exact rational arithmetic, the guarantee that E24 rounding prevents over-current, a full list of returned JSON fields, and explicit pricing plus an HTTPS fallback endpoint.

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-loads purpose, then the math, then the rounding guarantee, then outputs and pricing. Dense but each sentence carries information; the formula and the return-field list are slightly compressed but not padded.

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

Completeness5/5

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

No output schema exists yet the description enumerates every returned field, explains the rounding semantics, and discloses cost and transport. An agent has everything needed to call it correctly and interpret the result.

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 100% so the baseline is 3, but the description adds real meaning by writing the formula (supply − series × forward) / current, showing how supply, forward, series, and current interact and clarifying units beyond the schema's labels.

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-and-resource ('Series resistor for LEDs on one supply') plus the exact computation performed and the E24 rounding rule, which clearly separates it from code/network resistor siblings.

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 usable preconditions: units are volts and amperes, and the string's forward drop must be under the supply. It does not name alternatives or exclusions, but for a self-contained calculation tool the calling context is fully implied.

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