Skip to main content
Glama
TwoCut Calculators MCP Server

TwoCut Calculators MCP Server

French Drain Materials Calculator

french_drain
Read-onlyIdempotent

Calculate drain stone volume and weight, perforated pipe, filter fabric, and optional material costs for French drains and gravel trench drains.

Instructions

Calculate a French drain: drain stone (volume and weight), perforated pipe and filter fabric. Trench is run_ft × trench_width_in × trench_depth_in; pipe_type 0 is perforated pipe in stone (pipe volume is subtracted), 1 stone only; wrap sets how the fabric lines the trench or socks the pipe, with fabric_lap_in overlap; stone_extra_percent and stone_lb_yd3 set the stone order. Optional piece, roll and price inputs give pieces, rolls and cost. Use for French drains and gravel trench drains. For general gravel areas use gravel. 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": "french_drain"
  }
}

Input Schema

NameRequiredDescriptionDefault
wrapNoFilter fabric. Options: 0 = Line the trench and fold over the top; 1 = Sock on the pipe only; 2 = Line the trench and sock the pipe.0
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
run_ftNoDrain run. Unit: ft (US) / m (metric). Default (US units): 60.
pipe_typeNoDrain type. Options: 0 = Perforated pipe in stone; 1 = Stone only, no pipe.0
stone_lb_yd3NoStone weight per cubic yard. Unit: lb/yd³ (US) / kg/m³ (metric). Default (US units): 2632.5.
fabric_lap_inNoFabric overlap at top. Unit: in (US) / cm (metric). Default (US units): 6.
pipe_piece_ftNoPipe length per piece or coil. Unit: ft (US) / m (metric). Optional, leave out to skip.
pipe_price_ftNoPipe price per foot. Unit: $/ft (US) / $/m (metric). Optional, leave out to skip.
trench_depth_inNoStone-filled trench depth. Unit: in (US) / cm (metric). Default (US units): 18.
trench_width_inNoTrench width. Unit: in (US) / cm (metric). Default (US units): 12.
pipe_diameter_inNoPipe outside diameter. Unit: in (US) / cm (metric). Default (US units): 4.
fabric_roll_priceNoFabric price per roll. Unit: $ (US) / $ (metric). Optional, leave out to skip.
stone_extra_percentNoExtra stone allowance. Unit: % (US) / % (metric). Default (US units): 10.
fabric_roll_width_ftNoFabric roll width. Unit: ft (US) / m (metric). Optional, leave out to skip.
fabric_roll_length_ftNoFabric roll length. Unit: ft (US) / m (metric). Optional, leave out to skip.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, and the description restates determinism and lack of side effects rather than adding to it. It does add genuine behavioral detail beyond the annotations: pipe volume is subtracted for pipe_type 0, wrap determines whether fabric lines the trench or socks the pipe, and every input falls back to a page default when omitted.

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 purpose and outputs, then the calculation logic, then usage routing. Dense but each clause carries information; the one weak spot is the terse formula notation ("run_ft × trench_width_in × trench_depth_in") which is compact rather than clarifying.

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 15-parameter, all-optional calculator with no output schema, the description covers what is computed, how the key enums interact, that omitted inputs default, and what the response contains. An agent has everything needed to call it correctly and interpret the result.

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; the description earns above that by explaining the interaction the schema cannot express — pipe_type 0 subtracts pipe volume from the stone total, fabric_lap_in is the fabric overlap, and stone_extra_percent/stone_lb_yd3 drive the stone order quantity. The trench-volume relation (run × width × depth) is stated, though the unit mixing between ft and in is only implied.

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?

Names a specific verb and resource (calculate French drain materials) and enumerates exactly what is computed: drain stone volume and weight, perforated pipe, filter fabric. It also states the return contents (headline, summary lines, worked steps, inputs_used, calculator_url), so the agent knows the shape of the result without an output 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?

Explicitly scopes usage: "Use for French drains and gravel trench drains. For general gravel areas use gravel." That names the sibling to route to and the condition that selects it. It also tells the agent that optional piece/roll/price inputs can be omitted to skip those outputs.

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