Skip to main content
Glama

Structural worry: how urgent, and safe first steps

structural_triage
Read-onlyIdempotent

First-response triage when a customer reports a crack, a bulging or leaning wall, a sagging or fallen ceiling, a collapse, storm damage to a roof or chimney, a fallen tree or vehicle impact, a sagging floor, problems after a wall was removed, or signs of subsidence. Cautious by design: any danger to people makes it an emergency. Returns urgency (emergency, soon or routine: the same three speeds Nero Work uses), reasons, safe_first_steps, who to call now (999, gas 0800 111 999, power 105, the council dangerous structures team, insurer, structural engineer), and the questions to ask if details are missing. Example: a ceiling bulging with water under a bathroom: {"problem":"ceiling_sagging_or_fallen","water_coming_in":true}.

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": {
      "problem": "<problem>"
    },
    "name": "structural_triage"
  }
}

Input Schema

NameRequiredDescriptionDefault
tradeNoOptional. The builder's own business details (Nero Trade Profile v1). Used to prefill the contractor details in notices and CDM answers and to give a stable nero_trade_ref. Not stored by Site Pack.
problemYes
gas_smellNo
crack_width_mmNoCracks: widest point in mm.
debris_fallingNo
water_coming_inNo
near_road_or_footwayNoCould it fall onto a road, footway or neighbour's property?
roof_open_to_weatherNo
water_near_electricsNo
getting_worse_quicklyNo
rain_or_wind_forecastNo
someone_injured_or_trappedNo
new_cracks_or_sagging_aboveNoAfter a wall was removed or an impact: new cracks or sagging above?
doors_or_windows_sticking_recentlyNo
crack_through_bricks_not_just_mortarNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this a safe, read-only, idempotent, closed-world call, so the description adds genuine context beyond them: the triage policy ('any danger to people makes it an emergency'), the three-speed output vocabulary, and the escalation contacts. It does not explain how the boolean flags are weighted in the urgency decision, which is the main behavioral gap.

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 routing signal (the symptom list), then the return contract, then a concrete example — a sensible order. The long trigger enumeration is dense but each item earns its place as a retrieval cue; the parenthetical about 'the same three speeds Nero Work uses' is the only sentence that adds little for an outside caller.

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 15 parameters, a nested trade object and no output schema, the description carries the return explanation itself — urgency, reasons, safe_first_steps, who to call, and follow-up questions — which is what an agent needs to decide to call it. The remaining gap is that it never says the trade object is optional or how the flags combine, though the schema covers the trade object's fields in detail.

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 coverage is only 27%, so the description must compensate and it partly does: it enumerates the problem categories matching the enum and demonstrates one combined input in the example. However, most of the danger-signal booleans (gas_smell, debris_falling, getting_worse_quickly, doors_or_windows_sticking_recently) are left to their names, with no statement of how each one shifts the urgency verdict.

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 scope — 'first-response triage' — and enumerates the exact structural symptoms it covers (crack, bulging wall, ceiling collapse, storm damage, subsidence signs) plus the ten incident classes. An agent can distinguish this from the regulatory siblings like cdm_duties or check_building_regs without opening a 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?

Gives a clear triggering condition: 'when a customer reports' one of the listed problems, and frames it as first-response rather than follow-up work. It does not explicitly exclude cases or name which sibling handles the follow-on steps (e.g. party_wall_notices, cdm_duties), so it stops short of a full when/when-not statement.

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.