Skip to main content
Glama

Log or change a repair

save_repair

Record or update a one-off item repair with date, work, problem, provider, parts, cost, warranty, and linked maintenance task; repairs count toward cost of ownership.

Instructions

Records a repair of an item — a one-off fix, not scheduled maintenance: when (repairedOn), what was done (work), what went wrong (problem), who did it (providerId, from list_providers), parts, what it cost (cents) — or, with id, changes one. warrantyEndsOn adds a warranty on the repair to the item's warranties; taskId links it to a maintenance task of that item. Repairs count in the item's cost of ownership (get_item's cost). Use it when the person says something was fixed ("the plumber replaced the water heater's thermostat, $180"). Returns the repair with its id.

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

Input Schema

NameRequiredDescriptionDefault
idNoThe repair to change, from get_item; leave out to add a new one
workNoWhat was done: "Replaced the drain pump"
partsNoParts used: "Drain pump 00436440"
itemIdNoTo log one: the item's id, from search_inventory
taskIdNoThe maintenance task it was part of, if any (its id from list_maintenance)
problemNoWhat went wrong: "Wouldn't drain, error E21"
costCentsNoWhat it cost, in cents (parts and labour)
providerIdNoWho did it, if not you: a service provider's id (list_providers)
repairedOnNoWhen it was repaired, yyyy-mm-dd
warrantyEndsOnNoIf the repair has its own warranty: when it ends, yyyy-mm-dd — added to the item's warranties

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2026.11.14

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive local write, so the safety profile is covered. The description adds real behavioral context beyond that: warrantyEndsOn creates a warranty on the item, repairs feed into the item's cost of ownership surfaced by get_item, and the call returns the repair with its id. It does not say what happens to fields omitted during an id-based update, which keeps it short of a 5.

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 core action and scope before the parameter tour, and every sentence carries content. The long em-dash-chained first sentence is dense enough to be mildly hard to parse, but nothing is redundant or padded.

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, and the description compensates by stating the return value ('the repair with its id'). For a 10-parameter create/update tool it covers the essential relationships, but it omits that all parameters are optional and says nothing about validation failures or how partial updates are merged.

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% and the schema descriptions already carry the same detail ('from list_providers', 'added to the item's warranties', 'in cents'), so the description largely restates structured data. It adds some value by grouping the parameters into a narrative (when/what/problem/who/parts/cost), but no semantics beyond the schema, such as defaults or partial-update behavior.

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 ('Records a repair of an item') and immediately scopes it against the nearest sibling concept ('a one-off fix, not scheduled maintenance'). It also covers the dual create/update mode ('or, with id, changes one'), so an agent can distinguish it from save_maintenance without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit when-to-use trigger with a realistic utterance ('the plumber replaced the water heater's thermostat, $180') and states the exclusion ('not scheduled maintenance'), routing maintenance work elsewhere. It also names cross-tool dependencies (list_providers for providerId, list_maintenance for taskId) that condition correct invocation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.