Skip to main content
Glama

TidyUse Home & Garden Calculators

Roof Pitch & Slope Calculator

calculate_roof_pitch
Read-onlyIdempotent

Convert between rise/run, roof pitch per 12 (x:12), slope percentage, and angle in degrees.

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

Input Schema

NameRequiredDescriptionDefault
runNoHorizontal run (same unit as rise, > 0). Used when mode="riseRun".
modeNoInput mode: "riseRun", "pitch" (x:12), or "angle" (degrees).riseRun
riseNoVertical rise (any consistent length unit). Used when mode="riseRun".
pitchPer12NoRise per 12 units of run (e.g. 6 for 6:12). Used when mode="pitch".
angleDegreesNoRoof angle in degrees (0 to <90). Used when mode="angle".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds nothing beyond that: no statement about whether all four representations are returned, no unit-consistency warning, no treatment of out-of-range angles. Minimum viable against the annotated baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence listing the convertible forms in a natural order, with zero filler. Every clause carries information about what can be converted.

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?

The tool is simple and the schema is well annotated, so parameters need no help. However, with no output schema, the description should say what comes back (all four values or only the converted pair) and whether any constraints apply, which it omits.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including the mode enum is already documented in the schema; baseline 3 applies. The description's mention of the four forms aligns with the parameters but does not add meaning beyond them, such as which output keys correspond to slope percentage versus angle.

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?

Names a specific verb ('Convert') and enumerates the exact representations handled: rise/run, x:12 pitch, slope percentage, and degrees. This is materially more specific than a generic 'calculate roof' sibling, though it doesn't explicitly contrast with calculate_roofing or calculate_square_footage.

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?

No when-to-use or when-not guidance, and no mention of the sibling calculators. The conversion framing implies usage loosely (you have one measure and want another), but which mode to pick and what to do with partial inputs is only inferable from the schema.

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