Skip to main content
Glama
TwoCut Calculators MCP Server

TwoCut Calculators MCP Server

Curtain Fabric Yardage Calculator

curtain_fabric
Read-onlyIdempotent

Calculate drapery fabric yardage: required fabric widths, cut drop length and total yards to order based on track width, fullness, panel count and pattern repeat. Use for sewing curtains or drapes.

Instructions

Calculate curtain fabric yardage: widths of fabric needed, cut drop length and total yards to order. Finished width is track_width_in × fullness_ratio split over panel_count; usable fabric width is fabric_width_in minus unusable_edges_in; each cut is finished_drop_in plus top and hem allowances, rounded up to pattern_repeat_in; the order rounds to order_increment_yards. Inputs are in inches. Use for sewing curtains or drapes. For carpet use carpet_roll. Read-only calculation with no side effects; the same inputs always give the same result. Every input is optional and falls back to the calculator page default. Returns headline, summary lines, worked steps, inputs_used and calculator_url.

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

Input Schema

NameRequiredDescriptionDefault
unitsNoUnit system for every length/area/volume input: "us" (feet, inches, ft², ft³) or "metric" (m, cm or mm, m², m³). Defaults are converted when "metric" is chosen.us
panel_countNoFinished curtain panels. Default (US units): 2.
fullness_ratioNoFullness multiplier. Default (US units): 2.
track_width_inNoTotal track width. Unit: in (US) / cm (metric). Default (US units): 72.
fabric_width_inNoFabric width before edges. Unit: in (US) / cm (metric). Default (US units): 54.
finished_drop_inNoFinished curtain drop. Unit: in (US) / cm (metric). Default (US units): 84.
hem_allowance_inNoBottom hem allowance. Unit: in (US) / cm (metric). Default (US units): 8.
top_allowance_inNoTop construction allowance. Unit: in (US) / cm (metric). Default (US units): 4.
pattern_repeat_inNoVertical pattern repeat (0 if plain). Unit: in (US) / cm (metric). Default (US units): 12.
unusable_edges_inNoTotal unusable selvedge width. Unit: in (US) / cm (metric). Default (US units): 2.
order_increment_yardsNoSupplier order increment in yards. Default (US units): 0.25.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior. The description adds useful context beyond that: it names the return fields (headline, summary, worked steps, inputs_used, calculator_url) and states that every input is optional with fallback to page defaults.

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?

The description is front-loaded with purpose and formula details. It is dense but each sentence serves a purpose, though the sentence about read-only/idempotent behavior overlaps with annotations and could be trimmed for ideal conciseness.

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?

Given 11 optional parameters, no required fields, and no output schema, the description covers the calculation logic, unit handling, defaults, usage context, alternative sibling, and return format. Nothing essential for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3, but the description adds significant meaning by explaining the calculation relationships: finished width = track_width × fullness_ratio / panel_count; usable fabric width = fabric_width − unusable_edges; cut rounded up to pattern_repeat; order rounded to order_increment. This goes well beyond the schema's per-parameter defaults and units.

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 ('Calculate') and resource ('curtain fabric yardage'), then enumerates the computed outputs (widths, cut drop, total yards). It clearly distinguishes from the carpet sibling by name.

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

Usage Guidelines4/5

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

Says 'Use for sewing curtains or drapes' and routes carpet work to carpet_roll. Clear use case and one explicit alternative, though it does not list broader exclusions (e.g., for blinds or upholstery).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.