Skip to main content
Glama

Calculate rope diameter

calculate_rope_diameter

Read-only. Calculates the estimated diameter of a three-strand rope from a thread's linear density and the number of threads per strand. Use this tool when the user asks how thick a rope made from a given thread will be, or what diameter a custom dTex produces. Provide basis 'catalog' with threadId for a catalog thread, or basis 'dtex' with a value between 22.22 and 6000 for a custom thread. threadsPerStrand is 1 to 5; because all ropes have three strands, 2 corresponds to the 2 × 3 construction. The model does not use tension load: there are no load parameters and no load fields in the response. Diameters are model estimates, not measured values; above 3000 dTex the result carries an EXTRAPOLATION warning. The text response shows the diameter with three decimals, structuredContent carries the unrounded numbers plus API, algorithm, model and catalog versions. Use find_rope_threads when the user wants threads for a target diameter instead.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "basis": "<basis>",
      "threadsPerStrand": "<threadsPerStrand>"
    },
    "name": "calculate_rope_diameter"
  }
}

Input Schema

NameRequiredDescriptionDefault
dtexNoCustom linear density in dTex, from 22.22 to 6000 inclusive. Required when basis is 'dtex'.
basisYesSource of the linear density. Use 'catalog' for a thread from the catalog, or 'dtex' for a custom value.
threadIdNoCatalog thread id, for example 'tera-40'. Required when basis is 'catalog'. Use find_rope_threads to see which thread ids match a target diameter.
threadsPerStrandYesThreads per strand: 1 to 5. All ropes have three strands, so 2 means the 2 × 3 construction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / dtex / description
      Previous value: -"Custom linear density in dTex. Required when basis is 'dtex'. From 20 to 6000 inclusive with loadMode; from 80 to 6000 without loadMode (legacy API v1)."New value: +"Custom linear density in dTex, from 22.22 to 6000 inclusive. Required when basis is 'dtex'."
    • changedInput schema / properties / dtex / minimum
      Previous value: -20New value: +22.22
    • removedInput schema / properties / loadGrams
      Removed value: -{
      -  "description": "Tension load in grams: one of 30, 50, 100, 150, 200, 250, 300. Required when loadMode is 'manual', not allowed otherwise. Only 30, 200 and 300 g were measured; other values are interpolated.",
      -  "enum": [
      -    30,
      -    50,
      -    100,
      -    150,
      -    200,
      -    250,
      -    300
      -  ],
      -  "type": "number"
      -}
    • removedInput schema / properties / loadMode
      Removed value: -{
      -  "description": "Tension load mode (API v2). 'auto' applies the recommended starting load for each construction; 'manual' applies loadGrams. Omit to use the legacy calculation without load (API v1).",
      -  "enum": [
      -    "auto",
      -    "manual"
      -  ],
      -  "type": "string"
      -}
  2. Changed4 schema fields changed
    • changedInput schema / properties / dtex / description
      Previous value: -"Custom linear density in dTex, from 80 to 6000 inclusive. Required when basis is 'dtex'."New value: +"Custom linear density in dTex. Required when basis is 'dtex'. From 20 to 6000 inclusive with loadMode; from 80 to 6000 without loadMode (legacy API v1)."
    • changedInput schema / properties / dtex / minimum
      Previous value: -80New value: +20
    • addedInput schema / properties / loadGrams
      Added value: +{
      +  "description": "Tension load in grams: one of 30, 50, 100, 150, 200, 250, 300. Required when loadMode is 'manual', not allowed otherwise. Only 30, 200 and 300 g were measured; other values are interpolated.",
      +  "enum": [
      +    30,
      +    50,
      +    100,
      +    150,
      +    200,
      +    250,
      +    300
      +  ],
      +  "type": "number"
      +}
    • addedInput schema / properties / loadMode
      Added value: +{
      +  "description": "Tension load mode (API v2). 'auto' applies the recommended starting load for each construction; 'manual' applies loadGrams. Omit to use the legacy calculation without load (API v1).",
      +  "enum": [
      +    "auto",
      +    "manual"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / threadsPerStrand / description
      Previous value: -"Threads per strand: 1, 2 or 3. All ropes have three strands, so 2 means the 2 × 3 construction."New value: +"Threads per strand: 1 to 5. All ropes have three strands, so 2 means the 2 × 3 construction."
    • changedInput schema / properties / threadsPerStrand / maximum
      Previous value: -3New value: +5
  4. Added

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares read-only behavior, states that tension load is not modeled and no load fields appear in the response, warns that results are model estimates with an EXTRAPOLATION flag above 3000 dTex, and describes both the text and structuredContent return shapes including version metadata.

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 read-only note and the core purpose, then usage, then parameter rules, then caveats and return format. Dense but nearly every sentence adds decision-relevant information; the dTex range and threadsPerStrand bounds are repeated from the schema, which is mild redundancy.

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?

No output schema exists, and the description compensates by describing both response surfaces (three-decimal text, unrounded structuredContent with API/algorithm/model/catalog versions). Combined with the estimate caveat and the no-load-parameter statement, an agent has everything needed to call and interpret this tool.

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 adds rationale the schema lacks: it explains why threadsPerStrand 2 corresponds to the 2 × 3 construction (all ropes have three strands) and restates the conditional requirement linking basis to threadId or dtex. It largely mirrors the schema's ranges rather than extending them, so it stops short of a 5.

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 ('Calculates the estimated diameter of a three-strand rope') plus the exact inputs it derives from, and explicitly contrasts itself with find_rope_threads, which solves the inverse problem. An agent can distinguish it from siblings 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 Guidelines5/5

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

Gives concrete when-to-use triggers ('when the user asks how thick a rope made from a given thread will be, or what diameter a custom dTex produces') and names the alternative tool with the condition that selects it ('Use find_rope_threads when the user wants threads for a target diameter instead'). It also spells out the basis/threadId vs basis/dtex branching.

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.