Skip to main content
Glama

CasaLog calculators

Maintenance plan for a Swedish house

maintenance_plan
Read-onlyIdempotent

What a Swedish house (villa) is likely to need in the coming 10 years, from the year it was built and when each big part was last done: roof, drainage, bathrooms, heat pump, exterior paint and drains. parts: each part's state against its usual lifetime (past: beyond it; due: within it; later: it begins in due_from), counted from last_done, else from the year built. work: what to do by year, period_years 0-2, 3-5 or 6-10 years from now, with rough costs in kronor (VAT included, before the ROT deduction); ten_years its total. monthly_saving_ten_years is the middle of that total over 120 months, what the plan costs a month. monthly_saving_long_term is each part's cost over its lifetime, what to put aside a month on average whatever the house's state, so work already due needs money besides. warnings name the parts counted from the year built though past their lifetime, for which the year last done would give a better plan. Give built or last_done, or both. A part given in last_done is counted. Drainage is for a house with a basement or crawl space: on a slab on the ground it is left out unless chosen in parts or given in last_done, for damp or water at the foundation.

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

Input Schema

NameRequiredDescriptionDefault
builtNoThe year the house was built.
partsNoThe parts the house has, to count; by default roof, drainage, bathroom, heat-pump, paint, drains (not drainage on a slab), and any given in last_done. bathroom-2 is a second bathroom or a laundry room with a waterproof layer.
last_doneNoThe year each part was last replaced or done, by part; not before the year built.
foundationNoWhat the house stands on: basement (källare), crawl (krypgrund) or slab (platta på mark).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, idempotent, closed-world), but the description adds substantial behavioral context: cost assumptions (kronor, VAT included, before ROT deduction), what the ten-year total comprises, how the two monthly figures are derived, and what warnings flag. The only shortfall is that this context is delivered as a dense run-on rather than clearly segmented, which makes it harder to absorb on first read.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and nearly every clause carries information, but the body is a single dense block of semicolon-chained output semantics that requires re-reading. Light labels ('parts:', 'work:') provide some structure, yet the return-value explanation could be split into short sentences without losing content.

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 no output schema, the description must carry the burden of explaining returns, and it does so thoroughly: it defines past/due/later states, the period_years buckets, the total, both monthly figures, and the warnings field. The main omission is guidance on how this relates to the sibling cost and BRF tools.

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 baseline would be 3, but the description adds real meaning beyond the schema: it clarifies that built or last_done or both may be supplied, that any part named in last_done is automatically counted, and that drainage is excluded by default for slab foundations. These cross-parameter interactions are not visible from the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb-and-resource combo: it forecasts what a Swedish villa will need over the coming 10 years, derived from build year and last-done dates for named parts. Scope is sharply bounded (10 years, listed parts, kronor costs), so an agent knows exactly what it is asking for. It does not distinguish itself from siblings such as renovation_cost, so it stops short of a 5.

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

Usage Guidelines3/5

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

It gives prerequisite-style guidance ('Give built or last_done, or both') and a conditional rule for drainage (left out on slab unless chosen in parts or given in last_done, for damp or water at the foundation). However, there is no statement of when to prefer this over renovation_cost or brf_key_figures, and no explicit when-not-to-use case, so usage is only implied.

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