Skip to main content
Glama

The Cable Code

Economic size of an MV or HV design

economic_size
Read-onlyIdempotent

The Pro economic size (the IEC 60287-3-2 method): the energy lost a year in this size and one and two sizes up, its present cost over the years, and the discounted payback of the larger size where its extra cost is given, each step with its formula and source. Always paid: the site shows it to members only. input: {amps (first-year maximum load), hours (a year in service), mu (loss-load factor), price (per kWh), years, interest (%), lengthM, ambientC, freq?, extra?: [one size up, two sizes up] (extra cost per metre)}. $0.50 per calculation in USDC with x402; no free allowance; a list of up to 50 items at $0.50 per item, one payment.

Input Schema

NameRequiredDescriptionDefault
langNoAny of the site's 15 languages; default en.
specNoInstead of a sentence: a spec as design_cable takes it.
inputNoinput: {amps (first-year maximum load), hours (a year in service), mu (loss-load factor), price (per kWh), years, interest (%), lengthM, ambientC, freq?, extra?: [one size up, two sizes up] (extra cost per metre)}
itemsNoInstead of one: a project's list, 1 to 50 items, each {sentence | spec | design, input}; always in full, paid per item.
designNoInstead of a sentence: the design field of a design_cable answer.
sentenceNoThe cable in words or its designation, as design_cable takes it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations cover read-only/idempotent safety, and the description adds genuinely non-structured context: the tool is members-only, costs $0.50 per calculation in USDC via x402 with no free allowance, and a 50-item list bills per item. This is exactly the kind of payment/auth disclosure annotations can't carry, though return format details (units, rounding) remain unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and cost are front-loaded, which is good, but the body is a dense run-on packed with parentheticals that duplicates the schema and is hard to parse. Several clauses repeat the nested input definition verbatim from the schema.

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?

For a nested-object tool with no output schema, the description does explain what the calculation returns (losses, present cost, payback, with formula and source) and discloses payment terms. The main gap is the ambiguous sentence/spec/design/items alternation, which isn't fully clarified.

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 the schema already documents every parameter including the nested input fields. The description largely restates that same input text (amps, hours, mu, price, years, interest, lengthM, ambientC, freq, extra) rather than adding new semantics, so it sits at the baseline.

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?

States a specific computation (economic size of an MV/HV design via IEC 60287-3-2) and enumerates the outputs: energy lost per year for this size and one/two sizes up, present cost, and discounted payback. It's clearly distinguishable from siblings like design_cable, though it doesn't explicitly announce that distinction beyond referencing 'as design_cable takes it'.

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?

Usage is implied through the input contract and the sentence/spec/design/items alternatives, but there is no explicit statement of when to choose this tool over design_cable or mv_electrical, nor of prerequisites or exclusions. The 'Always paid' note hints at a gating condition but doesn't frame tool selection.

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