Skip to main content
Glama

Mark maintenance done

complete_maintenance

Records a maintenance task as done, updates its next due date or usage-based schedule, and optionally logs note, cost, provider, and part usage.

Instructions

Records that a task was done (today, or doneOn), with an optional note and cost in cents — use it whenever the person says they did one ("changed the furnace filter"); the id comes from list_maintenance Returns doneId, the record just made: its invoice or photos go to add_photo with doneId. Credited to the task's usual provider unless providerId says otherwise (null: the household did it), and its part, if it has one, comes out of stock. A repeating task is then due again one interval after that day; a one-off is finished. For maintenance by use, give reading (what the odometer or hour meter says now): the next is due usageEvery after it. Returns the task with its new due date.

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": {
      "id": "<id>"
    },
    "name": "complete_maintenance"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe task's id, from list_maintenance
noteNoAnything worth remembering about this time
doneOnNoWhen it was done, yyyy-mm-dd; today if left out. The next due date counts from this day
readingNoMaintenance by use: what the item's counter says now; the next one is due usageEvery after it
usePartNoTake the task's part out of stock (default true; false when an old one was cleaned instead)
costCentsNoWhat it cost this time, in cents
providerIdNoWho did it this time (list_providers); left out: the task's usual provider; null: the household

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.1
    • addedInput schema / properties / costCents / description
      Added value: +"What it cost this time, in cents"
    • addedInput schema / properties / doneOn / description
      Added value: +"When it was done, yyyy-mm-dd; today if left out. The next due date counts from this day"
    • addedInput schema / properties / id / description
      Added value: +"The task's id, from list_maintenance"
    • addedInput schema / properties / note / description
      Added value: +"Anything worth remembering about this time"
    • addedInput schema / properties / providerId / description
      Added value: +"Who did it this time (list_providers); left out: the task's usual provider; null: the household"
    • addedInput schema / properties / reading / description
      Added value: +"Maintenance by use: what the item's counter says now; the next one is due usageEvery after it"
    • addedInput schema / properties / usePart / description
      Added value: +"Take the task's part out of stock (default true; false when an old one was cleaned instead)"
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the record creation, doneId return, provider crediting default, household override, stock deduction of the part, recurrence behavior for repeating versus one-off tasks, and usage-based next-due calculation. These are important side effects and scheduling consequences that the safe-mutation annotations do not cover.

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?

The description is front-loaded and information-dense, with no wasted sentences. Some parenthetical and clause-heavy sentences make it slightly harder to scan, but the structure remains purposeful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex mutation tool with recurring schedules, stock effects, provider attribution, and usage readings, the description covers what an agent needs to call it correctly. It also states the key return values even though no output schema exists.

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 description coverage is 100%, so the baseline is 3. The description adds useful relationships beyond the schema: id originates from list_maintenance, providerId null means the household did it, usePart false is for cleaning an old part, and reading drives the next due date by usageEvery.

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 that a maintenance task was done. It also distinguishes related siblings by explaining that the id comes from list_maintenance and that invoices or photos go to add_photo with the returned doneId.

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 clear when-to-use guidance: use it whenever the person says they did one, with an example. It also names list_maintenance and add_photo for adjacent steps, but does not explicitly state when not to use it or contrast it with save_maintenance.

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