Skip to main content
Glama

eng_roof

Read-only

Roof pitch, rafter and shingle calculator — Roof framing and materials from building span, length and pitch: pitch angle, slope factor, plumb/seat cut angles, total rise, common rafter length (line length minus ridge deduction plus overhang tail, in decimal feet and ft-in to 1/16), stock length to buy, rafter count, roof area (sqft, sqm, squares) with waste, shingle bundles, synthetic or 15-lb felt underlayment rolls (doubled for 2/12-4/12 per IRC R905.2.2), OSB sheets, ridge/hip cap, starter strip and drip edge. Params: span (building width ft) and length (ft along the ridge). Optional: pitch (6/12, 6:12, 6, 26.6deg or 50%; default 6/12), style gable|hip|shed, overhang (in, default 12), spacing (rafter on-center in, default 16), ridge (ridge board thickness in, default 1.5), waste (percent, default 10, hip 15), unit ft|in|m|cm or suffixes like 7m. Offline. Price: $0.003 USDC (Base, via x402).

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": {
      "span": "<span>",
      "length": "<length>",
      "pitch": "<pitch>"
    },
    "name": "eng_roof"
  }
}

Input Schema

NameRequiredDescriptionDefault
spanYese.g. 24
pitchYese.g. 6/12
lengthYese.g. 40

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds genuinely new behavior: it runs 'Offline' and costs $0.003 USDC via x402 on Base. It also cites the IRC R905.2.2 rule that felt underlayment is doubled for 2/12–4/12 pitches, which explains a non-obvious output rather than restating annotations.

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?

Purpose and required inputs are front-loaded in the first clause, followed by outputs and then params, so the shape is logical. It is a dense run-on block of roughly 150 words with semicolon-chained lists rather than sentences, but nearly every phrase carries calculable information (units, defaults, code reference) so little is wasted.

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?

With no output schema, the description carries the full burden of explaining return values and does so exhaustively: pitch angle, slope factor, plumb/seat cuts, total rise, rafter line length with ridge deduction and overhang tail in decimal feet and ft-in to 1/16, stock length, rafter count, area in sqft/sqm/squares, shingle bundles, felt rolls, OSB sheets, and cap/starter/drip edge. Nothing an agent needs in order to call this correctly appears to be missing.

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 descriptions are bare examples ('e.g. 6/12'), but the description adds real meaning: accepted pitch notations (6/12, 6:12, 6, 26.6deg, 50%), unit suffixes like 7m, and defaults for overhang, spacing, ridge, and waste. The caveat is that it documents six optional params (style, overhang, spacing, ridge, waste, unit) that do not appear in the input schema, which could mislead an agent into passing rejected arguments.

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+resource pair ('Roof pitch, rafter and shingle calculator') and immediately scopes it to 'roof framing and materials from building span, length and pitch,' which cleanly separates it from structural siblings like eng_beam or eng_stairs. An agent can tell exactly what domain of computation this tool covers 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 Guidelines4/5

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

The description establishes the required context for use ('from building span, length and pitch') and enumerates the required params plus the defaults it will assume if optionals are omitted, which is enough for an agent to decide it applies. It stops short of naming alternatives or stating when not to use it (e.g., when only material takeoff without framing is wanted), so no explicit exclusion guidance is present.

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