Skip to main content
Glama

The Cable Code

Read a cable datasheet into constructions

extract_datasheet
Read-only

Read a power cable datasheet (an https link to a PDF or page, or pasted text) into constructions: each size's voltage, cores, conductor, layers with nominal and smallest thickness, screen, armour, diameters and standards, with page and row. An LLM (Claude) reads, deciding nothing; with standard set the rules check each row. Notes: thecablecode://guide/extract_datasheet. Price (USDC, x402): a paid call from the first document: $2.00 in USDC per document, no free allowance.

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

Input Schema

NameRequiredDescriptionDefault
urlNoAn https link to a PDF datasheet or a datasheet web page.
hintNoA designation or size to look for, e.g. "3x95/25 12/20 kV": only matching rows are returned.
textNoPasted datasheet, catalogue or tender text.
standardNoAlso check every row: "auto" (the standards each row claims, else IEC 60502 by voltage) or rule sets, comma separated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations it discloses the key behavioral facts an agent needs: an LLM (Claude) reads and 'decides nothing', rules validate each row when standard is set, and a paid x402 call costs $2.00 USDC per document with no free allowance. Pricing and the human-in-the-loop processing model are materially valuable disclosures; error handling and rate behavior beyond cost are not covered.

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 before qualifications, and every element (output fields, LLM behavior, pricing, guide link) carries information. It is dense and slightly run-on, and the 'Notes: thecablecode://guide/extract_datasheet' reference is terse, but there is no filler.

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 complex extraction tool with no output schema, the description compensates well by enumerating the returned constructions fields and the page/row provenance. It also covers cost and validation behavior; only edge cases like conflicting url/text inputs or failure modes are left unaddressed.

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 four params are already documented in the schema, establishing the baseline of 3. The description reinforces the url/text input duality and the effect of standard ('rules check each row'), but adds little semantic detail about hint or precedence when both url and text are supplied.

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 verb (Read) and resource (power cable datasheet) and enumerates the extraction output (voltage, cores, conductor, layers, screen, armour, diameters, standards, with page and row). It is highly specific about what it produces but does not explicitly name a sibling to differentiate from (e.g. read_tender), so it stops short of the 5 bar for sibling routing.

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 description implies usage through the accepted input forms (https link or pasted text) and the 'with standard set the rules check each row' condition, plus a pointer to a guide. It gives no explicit when-not-to-use guidance and never names an alternative tool, so usage is implied rather than spelled out.

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