Skip to main content
Glama

Free Tool Directory

curtain-fabric-calculator

Curtain Fabric Calculator — Fabric needed for a pair of curtains, with fullness, fabric width and pattern-repeat waste.

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": {
      "track": "<track>",
      "drop": "<drop>"
    },
    "name": "curtain-fabric-calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
hemNoBottom hem allowance in cm.
dropYesFinished drop in cm. Range 0-100000.
trackYesTrack or rail width in cm. Range 0-100000.
headerNoTop header allowance in cm.
panelsNoNumber of panels (2 for a pair).
repeatNoVertical pattern repeat in cm; 0 for plain fabric.
fullnessNoHeading fullness, times track width (eyelet about 1.5, pencil pleat about 2, pinch pleat about 2.5).
fabricWidthNoFabric width in cm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / drop
      Added value: +{
      +  "description": "Finished drop in cm. Range 0-100000.",
      +  "type": "number"
      +}
    • addedInput schema / properties / fabricWidth
      Added value: +{
      +  "default": 140,
      +  "description": "Fabric width in cm.",
      +  "type": "number"
      +}
    • addedInput schema / properties / fullness
      Added value: +{
      +  "default": 2,
      +  "description": "Heading fullness, times track width (eyelet about 1.5, pencil pleat about 2, pinch pleat about 2.5).",
      +  "type": "number"
      +}
    • addedInput schema / properties / header
      Added value: +{
      +  "default": 10,
      +  "description": "Top header allowance in cm.",
      +  "type": "number"
      +}
    • addedInput schema / properties / hem
      Added value: +{
      +  "default": 10,
      +  "description": "Bottom hem allowance in cm.",
      +  "type": "number"
      +}
    • addedInput schema / properties / panels
      Added value: +{
      +  "default": 2,
      +  "description": "Number of panels (2 for a pair).",
      +  "type": "integer"
      +}
    • addedInput schema / properties / repeat
      Added value: +{
      +  "default": 32,
      +  "description": "Vertical pattern repeat in cm; 0 for plain fabric.",
      +  "type": "number"
      +}
    • addedInput schema / properties / track
      Added value: +{
      +  "description": "Track or rail width in cm. Range 0-100000.",
      +  "type": "number"
      +}
    • addedInput schema / required
      Added value: +[
      +  "track",
      +  "drop"
      +]
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. The word 'Calculator' plus the stated inputs strongly imply a pure, side-effect-free computation, and 'pattern-repeat waste' adds useful behavioral context about how the result is derived. However, it says nothing about whether the estimate is rounded up per drop, what the returned figures include, or any assumptions about fabric direction.

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?

A single front-loaded sentence with the resource named first and the influencing factors after the dash — nothing redundant. It is, however, quite compressed to the point of being a label-plus-factors fragment rather than a full purposeful statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With eight parameters (two required) and no output schema, the description should clarify what the calculation returns — total metres, number of drops, panels needed — and it does not. The scope of the computation is clear, but an agent cannot predict the result shape or confirm whether pattern repeat waste is reported separately.

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 description coverage is 100%, with each parameter (including fullness examples like eyelet ~1.5 and pinch pleat ~2.5) fully documented in the schema itself, so the baseline expectation is met. The description adds a small amount beyond the schema by grouping fullness, fabric width, and pattern repeat as the key cost drivers, but it adds no syntax or unit detail the schema lacks.

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 states a specific resource and computation — fabric required for a pair of curtains — and enumerates the factors considered (fullness, fabric width, pattern-repeat waste). It is clearly distinguishable from siblings like quilt-backing-calculator or gallery-wall-calculator by domain. It stops short of naming a verb like 'calculate' explicitly, but the intent is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives, and no note on prerequisites such as needing both track and drop measurements. The parenthetical factor list hints at what matters but does not instruct the agent about required inputs or typical scenarios (e.g., choosing fullness for a given heading type).

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