Skip to main content
Glama

Simple House Planner

Wallpaper calculator

calculate_wallpaper
Read-only

Use this when someone asks how many rolls of wallpaper they need. Calculates the wallpaper for walls: the cut length of each drop (wall height + 4 in for trimming, rounded up to whole pattern repeats, plus half a repeat for a drop match), the drops per roll, the drops across the walls (their width less the doors' and windows' area divided by the height, over the roll width), the rolls, and the wall area in square meters. Rolls: usDouble (US double roll, 20.5 in × 33 ft, as York makes it), euro (0.53 × 10.05 m, as Rasch makes it); rollWidth and rollLength replace them. The rolls do not include the spare roll from the same batch that makers advise.

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": {
      "width": "<width>",
      "height": "<height>",
      "roll": "<roll>"
    },
    "name": "calculate_wallpaper"
  }
}

Input Schema

NameRequiredDescriptionDefault
rollYesusDouble: a US double roll, 20.5 in × 33 ft; euro: a European roll, 0.53 × 10.05 m.
doorsNoNumber of doors to leave out; none when left out.
matchNoStraight match, or drop (half-drop) match that shifts every other drop by half a repeat; straight when left out.
widthYesWidth of the walls to paper: one wall, several added up, or the room's perimeter, in millimeters.
heightYesWall height, baseboard to ceiling, in millimeters.
repeatNoVertical pattern repeat; none when left out, in millimeters.
windowsNoNumber of windows to leave out; none when left out.
doorWidthNoWidth of one door; 914.4 (36 in) when left out, in millimeters.
rollWidthNoRoll width, instead of the standard roll's, in millimeters.
doorHeightNoHeight of one door; 2032 (80 in) when left out, in millimeters.
rollLengthNoRoll length, instead of the standard roll's, in millimeters.
windowWidthNoWidth of one window; 914.4 (36 in) when left out, in millimeters.
windowHeightNoHeight of one window; 1524 (60 in) when left out, in millimeters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare the safe read-only profile, and the description goes well beyond them: it discloses the trimming allowance (wall height + 4 in), the repeat rounding for straight vs drop match, and the fact that rolls exclude the spare roll manufacturers recommend from the same batch. That last caveat is exactly the kind of caveat an agent should convey to a user, and it is not derivable from annotations or schema.

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 use case, then the computation, then roll standards, then the caveat — a sensible order. The long middle sentence chains many clauses with commas and parentheses, which makes it dense to parse, but almost every clause carries information an agent cannot get elsewhere.

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?

With 13 parameters and no output schema, the description does the needed work by enumerating the returned values and giving the wall area's unit (square meters). Remaining gaps are minor: units or types of the other outputs (drop counts, rolls) are not stated, but they are inferable from the described arithmetic.

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, but the description adds genuine meaning: rollWidth/rollLength are framed as replacing the named roll standards, and doors/windows are explained as an area deduction against wall width divided by height. The stated defaults and units for openings are reinforced rather than merely repeated, though the connection between repeat and the match parameter is only partially spelled out.

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 and resource ("Calculates the wallpaper for walls") and immediately names the real-world question it answers (how many rolls). The scope is pinned down by listing the exact intermediate quantities computed (cut length, drops per roll, drops across walls, rolls, wall area), which separates it cleanly from siblings like calculate_paint or calculate_drywall.

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?

"Use this when someone asks how many rolls of wallpaper they need" gives a clear triggering condition that an agent can match against a user request. There are no explicit exclusions or named alternatives (e.g. when to prefer a paint calculator instead), so it stops short of full routing guidance.

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