Skip to main content
Glama

Work out materials for a trade

takeoff_quantities
Read-onlyIdempotent

Work out what a job needs for ONE trade from its rooms and settings — drywall sheets laid out wall by wall, tiles counted tile by tile in the chosen pattern, receptacles, lights and circuits by the electrical code the job’s state is listed on, paint gallons, roofing squares, concrete yards and more. Writes nothing. Each room is {name, type, length_ft, width_ft, height_ft?, doors?, windows?, counter_ft?, basins?}; inputs are that calculator’s own settings (sheet_size, pattern, tile_width_in, edition, …) and any not given take their defaults. WARNING: assumed lists rooms counted at an assumed ceiling height, and notes carry caveats that MUST be repeated — electrical counts are code MINIMUMS by Seayora’s reading and the inspector and local amendments govern; heating and cooling sizes are rules of thumb, never a Manual J. Never present these as a permit, an inspection or an engineered design.

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": {
      "calculator": "<calculator>"
    },
    "name": "takeoff_quantities"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomsNoThe rooms, for the trades that work room by room (drywall, tile, electrical, painting, flooring, wallpaper, insulation, heating and cooling, cleaning). Others take their measurements in `inputs`.
inputsNoThe calculator’s settings by key; omitted ones take their defaults.
calculatorYesWhich trade.
site_stateNoTwo-letter state of the job; the electrical code edition is suggested from it.
room_valuesNoPer-room settings keyed by room id (for tile: wall_run_ft, wall_height_ft, backsplash_ft).

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the tool writes nothing, that omitted inputs take defaults, and that `assumed` and `notes` carry caveats requiring repetition. It adds critical behavioral context about electrical code minimums, local amendments, and HVAC rules of thumb not being a Manual J.

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 the core purpose and remains dense with useful detail throughout. It is slightly run-on and includes a vague 'and more', but nearly every sentence earns its place given the tool's complexity.

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 22-trade calculator with nested room objects, the description covers purpose, input defaults, room shape, and critical output caveats. It is nearly complete, though it does not explicitly route the agent between this tool and get_takeoff or describe how saved results are retrieved.

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?

Although schema coverage is already 100%, the description adds substantial meaning beyond the schema: it defines the room object fields (`name`, `type`, `length_ft`, `width_ft`, `height_ft?`, `doors?`, `windows?`, `counter_ft?`, `basins?`), explains that `inputs` are calculator-specific settings with defaults, and gives examples for `room_values`.

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 verb and resource: 'Work out what a job needs for ONE trade from its rooms and settings', with concrete examples across drywall, tile, electrical, paint, roofing, and concrete. The scope is clear, but it does not explicitly distinguish this calculation tool from the sibling get_takeoff tool.

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?

Usage is implied through 'ONE trade', the room-by-room trade list, and the note that non-room trades take measurements in `inputs`. However, there is no explicit when-to-use versus when-not-to-use guidance, and no alternative sibling such as get_takeoff is named.

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