Skip to main content
Glama

The Cable Code

Write a cable specification and its required / offered schedule

write_specification
Read-only

Write the cable specification for a tender, one cable or a project, each as design_cable takes it, with the project's requirements: the specification in tender order (Markdown and text) and the required / offered schedule (CSV and JSON), REQUIRED filled with sources, OFFERED left for the bidder. Deterministic, no LLM; a draft to check. Notes: thecablecode://guide/write_specification. Always paid: $2.00 for the first cable, $0.50 for each further cable in the same call, up to 30, USDC (x402).

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

Input Schema

NameRequiredDescriptionDefault
drumNoThe drums section's line; absent: the bidder proposes.
langNoLanguage of the specification; default en.
specNoOr a design_cable spec.
cablesNoOr a project: cables, each {sentence | spec | design, installation, fault_s, drum}.
designNoOr a design_cable design.
fault_sNoFault duration for the short-circuit rows, s (default 1).
sentenceNoOne cable, as design_cable takes it.
installationNoFor the current rating row, as design_cable takes it.
requirementsNoRequirement ids (rodent, uv-sunlight, flame-bunched, fire-resistance, longitudinal-watertight ...), or {id, option}; set on every cable. Every id and option: thecablecode://guide/write_specification or GET /api/v1/spec/requirements.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / cables / description
      Previous value: -"Instead of one cable, a project: 1 to 30 cables, each {sentence | spec | design, installation, fault_s, drum}."New value: +"Or a project: cables, each {sentence | spec | design, installation, fault_s, drum}."
    • 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 / drum / description
      Previous value: -"The drum line for the drums section; absent: the bidder proposes the drum."New value: +"The drums section's line; absent: the bidder proposes."
    • changedInput schema / properties / lang / description
      Previous value: -"The language the specification is written in. Default en."New value: +"Language of the specification; default en."
    • changedInput schema / properties / requirements / description
      Previous value: -"The project's requirements, set on every cable: an id, or {id, option} with the construction chosen to meet it (an option that changes the layers adds them). Ids: rodent, termite, ants-insects, uv-sunlight, low-temperature, high-ambient-temperature, ozone, fungus-tropical, oil-mineral, drilling-mud-hydrocarbon, chemical-acid-alkali, lead-sheath, armour-corrosion, longitudinal-watertight, radial-watertight, submerged-wet, tr-xlpe, flame-single, flame-bunched, fire-resistance, low-smoke, halogen-free-acid-gas, toxicity, cpr-class, abrasion, mechanical-protection, torsion, flexing-drag-chain, tensile-vertical, emc-screening, marine-offshore, railway, nuclear, solar-pv, hazardous-area, marking-colour, rohs-reach. GET /api/v1/spec/requirements lists each with its options."New value: +"Requirement ids (rodent, uv-sunlight, flame-bunched, fire-resistance, longitudinal-watertight ...), or {id, option}; set on every cable. Every id and option: thecablecode://guide/write_specification or GET /api/v1/spec/requirements."
    • changedInput schema / properties / sentence / description
      Previous value: -"One cable in words, or its designation, as design_cable takes it."New value: +"One cable, as design_cable takes it."
    • addedInput schema / properties / sentence / examples
      Added value: +[
      +  "NA2XS(F)2Y 1x240/25 12/20 kV"
      +]
    • changedInput schema / properties / spec / description
      Previous value: -"Instead of a sentence: a spec as design_cable takes it, {voltage: \"12/20\", cores: 3, section: 95, ...}."New value: +"Or a design_cable spec."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover only readOnlyHint/openWorldHint, and the description adds substantial behavioral context beyond them: deterministic with no LLM, a draft requiring checking, and a paid call with explicit tiered pricing ($2.00 first cable, $0.50 each further, capped at 30, USDC/x402). It does not describe latency or what happens on partial failure, but the cost and determinism disclosures are valuable.

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 action and outputs, then pricing, with no filler. The first sentence is long and comma-chained, which slightly hurts scannability, but every clause (formats, REQUIRED/OFFERED, payment terms) carries information.

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?

For a 9-parameter tool with nested objects and no output schema, the description names both output formats and their content, explains the input modes, and links a guide for the open-ended requirement vocabulary. Nothing essential for a correct invocation is missing.

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 baseline is 3, but the description adds meaning the schema does not: the cable-vs-project input modes, that requirements are applied to every cable, and the REQUIRED/OFFERED split semantics. The pointer to the guide URL for requirement ids/options further compensates.

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 specific verb and resource ("Write the cable specification for a tender"), the two input modes (one cable or a project, as design_cable takes it), and the two artifacts produced (specification in Markdown/text plus required/offered schedule in CSV/JSON). An agent can distinguish this from design_cable and read_tender without opening the schema.

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 context is implied: it is for a tender, inputs mirror design_cable, and the result is "a draft to check," which hints at a follow-up verification step. However, there is no explicit when-to-use/when-not or named alternative (e.g., read_tender or check_cable) to route between.

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