Skip to main content
Glama

The Cable Code

Economic size of an MV or HV design

economic_size
Read-only

Economic conductor size of an MV or HV design (IEC 60287-3-2): losses and their present cost for this size and the two sizes up, and the payback, each step with its source. $0.50 USDC per calculation (x402), no free allowance. Notes: thecablecode://guide/economic_size.

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

Input Schema

NameRequiredDescriptionDefault
langNoAnswer language; default en.
specNoOr a design_cable spec.
inputNoinput: {amps, hours, mu, price (per kWh), years, interest (%), lengthM, ambientC, ...}
itemsNoOr a list of {sentence | spec | design, input}, paid per item.
designNoOr a design_cable design.
sentenceNoThe cable, as design_cable takes it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / design / description
      Previous value: -"Instead of a sentence: the design field of a design_cable answer."New value: +"Or a design_cable design."
    • changedInput schema / properties / input / description
      Previous value: -"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)}"New value: +"input: {amps, hours, mu, price (per kWh), years, interest (%), lengthM, ambientC, ...}"
    • changedInput schema / properties / items / description
      Previous value: -"Instead of one: a project's list, 1 to 50 items, each {sentence | spec | design, input}; always in full, paid per item."New value: +"Or a list of {sentence | spec | design, input}, paid per item."
    • changedInput schema / properties / lang / description
      Previous value: -"Any of the site's 15 languages; default en."New value: +"Answer language; default en."
    • changedInput schema / properties / sentence / description
      Previous value: -"The cable in words or its designation, as design_cable takes it."New value: +"The cable, as design_cable takes it."
    • changedInput schema / properties / spec / description
      Previous value: -"Instead of a sentence: a spec as design_cable takes it."New value: +"Or a design_cable spec."
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish this is a read-only, non-open-world operation, yet the description adds real value beyond them: the exact return content (losses and present cost for the requested size plus the two sizes up, and payback, with per-step sources) and, importantly, a billing term — $0.50 USDC per calculation via x402 with no free allowance. That cost disclosure is exactly the kind of behavior an agent must know before invoking; only the absence of throughput/rate-limit or batching cost details 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?

Two dense sentences plus a short notes line: the purpose and output are front-loaded, pricing follows, and the guide URI is compact. Nothing is padding, though the parenthetical list of outputs makes the first sentence long and could be slightly tighter.

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?

There is no output schema, and the description compensates by specifying precisely what is returned, including the comparison against the next two sizes and the sourcing of each step. Combined with the pricing disclosure and the guide link, an agent has enough to invoke it correctly despite the nested, optional-only parameter set.

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 description coverage is 100%, so the schema already explains every parameter, including the nested input fields (amps, hours, mu, price, years, interest, lengthM, ambientC) and the items/per-item billing. The description adds no parameter-level meaning beyond what the schema states, so the baseline of 3 applies.

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?

The description names a specific computation ('Economic conductor size of an MV or HV design') with a standard reference (IEC 60287-3-2) and enumerates the outputs (losses, present cost for this size and two sizes up, payback). It does not explicitly contrast itself with siblings such as design_cable or mv_electrical, though it implies design_cable is the upstream source of the 'sentence' input.

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 only implied: an agent infers this is the tool for economic/conductor sizing economics. There is no explicit when-to-use vs. when-not guidance, and no statement that design_cable should be used first to produce the design being evaluated. The design_cable cross-reference is indirect ('as design_cable takes it').

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