Skip to main content
Glama

ScorpTech x402 Tools

Resistor Code

resistor_code
Read-onlyIdempotent

IEC 60062 resistor color code. Decode 3 to 6 bands, or encode a resistance that lands exactly on a digit-and-multiplier value. Digits run black=0 through white=9. Multipliers run from silver (×0.01) and gold (×0.1) through white (×1e9). Tolerances: brown 1%, red 2%, green 0.5%, blue 0.25%, violet 0.1%, grey 0.05%, gold 5%, silver 10%. Three bands mean 20% and have no tolerance band. The sixth band is the temperature coefficient in ppm/K: black 250, brown 100, red 50, orange 15, yellow 25, green 20, blue 10, violet 5, grey 1. Grey may be spelled gray. This does not measure a part. Returns JSON with: direction, ohms, fraction, tolerancePct, tolerance, minOhms, maxOhms, bands. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/resistor-code

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": "resistor_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
ohmsNoResistance to encode. Exact decimal or a fraction such as 47/10.
bandsNoColors, commas or spaces. Omit to encode ohms instead.
countNoBands when encoding. Default 4. Three bands are 20%.
tempcoNoppm/K. Required for 6 bands, and only then.
toleranceNoPercent when encoding: 0.05, 0.1, 0.25, 0.5, 1, 2, 5, 10, or 20. Default 5% for 4 bands, 1% for 5 or 6, 20% for 3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, idempotent), so the description's job is to add context beyond them, which it does: it discloses the exact return payload keys, the per-call price ($0.001 USDC via x402 on Base or Solana), and an HTTPS endpoint for the same operation. That payment and transport detail is real behavioral information no structured field carries. It does not describe error behavior when a value cannot be encoded, which keeps it from a 5.

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 statement, then ordered decode/encode, tables, return shape, and pricing. The color tables are dense but each entry maps to a real parameter domain, so they earn their place. Slightly over-packed as a single paragraph with no structural separation between operation guidance and reference tables.

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?

Five optional parameters, no output schema, and a read-only computation tool — the description compensates by enumerating the returned JSON fields and covering both directions of the operation. Combined with the schema's own parameter documentation, 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 earns more by defining the domain semantics the schema only gestures at: digit mapping (black=0 through white=9), multiplier range including silver and gold below 1, the full tolerance-to-percent table, and the sixth band as ppm/K. It also adds an encoding constraint not present in the schema (the value must "land exactly on a digit-and-multiplier value"). This meaningfully reduces wrong invocations.

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?

Opens with a specific standard and resource ("IEC 60062 resistor color code") and names both operations it performs: decode 3-6 bands or encode a resistance. The agent can tell exactly what the tool does. It stops short of a 5 because it never distinguishes itself from the resistor-related siblings (led_resistor, resistor_network); the only scope statement is the negative "This does not measure a part."

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

Usage Guidelines3/5

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

The two operating modes are stated clearly and the routing rule between them ("Omit to encode ohms instead") is implied here and spelled out in the schema. There is no explicit when-to-use versus alternatives, and no note about which sibling to reach for when the task is a resistor network or LED calculation. Adequate but leaves selection between related tools to inference.

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