Skip to main content
Glama

Emergency triage for leaks, bursts, no heat, gas smell or CO alarm

emergency_triage
Read-onlyIdempotent

For a homeowner reporting a problem: the safe first steps to do now, what not to do, who to call first (the gas emergency service 0800 111 999 for a gas smell or CO alarm), whether it is a real emergency, and an urgency value of routine, soon or emergency that matches Nero Work's three job speeds, raised for water near electrics, a bulging ceiling, a vulnerable person in the cold, or water that cannot be stopped. Also returns nero_work_job (urgency, category, summary) ready to post. Typical call: {"situation":"no_heat","vulnerable_people":true,"outside_temp_c":2,"other_heating_available":false}.

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": {
      "situation": "<situation>"
    },
    "name": "emergency_triage"
  }
}

Input Schema

NameRequiredDescriptionDefault
tradeNoOptional. The plumber or heating engineer's own business details (Nero Trade Profile v1, the same shape as Spark Pack and Nero Work). Used to prefill records and to give a stable nero_trade_ref. Not stored by Flow Pack.
nationNoChanges the gas emergency number for Northern Ireland.
situationYes
pipe_splitNo
only_toiletNo
sewage_insideNo
water_stoppedNoHas turning off the stop tap or valve stopped the water?
outside_temp_cNo
ceiling_bulgingNo
vulnerable_peopleNoElderly, very young, disabled or medically vulnerable person in the home.
water_near_electricsNo
other_heating_availableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trade / properties / categories / description
      Previous value: -"Trades offered, using Nero Work trade names. Defaults to [\"plumber\", \"heating\"]."New value: +"The trades the business offers. Defaults to [\"plumber\", \"heating\"]."
  2. 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 readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuinely new behavior: the three-tier urgency vocabulary that maps to Nero Work's job speeds, the escalation conditions that raise it, the gas emergency number to give first, and the fact that the trade profile is not stored. Remaining gaps are minor — it does not say how the `nation` value switches the emergency number, which it only hints at.

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 escalation rules are front-loaded, and the closing JSON example efficiently shows a realistic invocation including optional flags. The second sentence is long and comma-chained, so a few clauses could be split, but there is no filler.

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?

No output schema exists, yet the description explains the return shape (`urgency` values and the ready-to-post `nero_work_job` trio), which is what an agent most needs. For a 12-parameter tool with a nested object, a few parameters remain undescribed, but the safety-critical and decision-critical semantics are present.

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?

With 12 parameters and only 33% schema description coverage, the description does carry some weight: it implicitly ties `water_near_electrics`, `ceiling_bulging`, `vulnerable_people`, `water_stopped`, `outside_temp_c` and `other_heating_available` to urgency escalation, and gives one worked call example. But `pipe_split`, `only_toilet`, `sewage_inside` and most of the nested `trade` object go unexplained in both schema and description, so meaningful gaps remain.

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?

The description states a specific function — triage of a homeowner-reported problem into safe first steps, escalation advice, and an `urgency` value — and names the concrete output (`nero_work_job`). It is clearly distinct from the sizing/record-check siblings, so an agent can route 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 opening clause 'For a homeowner reporting a problem' establishes the caller and occasion, and the escalation triggers (water near electrics, bulging ceiling, vulnerable person in the cold, unstoppable water) tell the agent when the result changes. It stops short of naming an alternative tool or any when-not-to-use condition, so it is clear context rather than 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.