Skip to main content
Glama

Föreslå ändringar

propose_changes
Destructive

Propose one step for a saved shed: at most 6 changes in ONE area: basics (shed.template.match, shed.carport.set, shed.dimensions.set, shed.name.set, shed.building-use.change), roof (shed.roof.change), structure (shed.foundation.change, shed.interior-floor.set, shed.wall-assembly.change, shed.framing.change), finish (shed.finish.change), interior (shed.interior-finish.set), floor-plan (shed.intermediate-floor.set replaces the platform floor and its optional upper storey; shed.loft.set changes loft and support wall in one atomic proposal; shed.floor-plan.set replaces the ground-storey interior plan; shed.floor-plan.wall.add, shed.floor-plan.wall.update, shed.floor-plan.wall.remove, shed.floor-plan.door.add, shed.floor-plan.door.update, shed.floor-plan.door.remove, shed.floor-plan.room.add, shed.floor-plan.room.update, shed.floor-plan.room.remove, shed.floor-plan.furniture.add, shed.floor-plan.furniture.update, shed.floor-plan.furniture.remove change one interior object by id), site (shed.site.labels.set: saved visibility of Fram / entré; existing-building.add/update accept showLabel=false to hide only that footprint label; shed.site.boundary.set: the complete local plot; shed.site.boundary.metadata.set: source/assumptions only, omitted fields retained and empty strings cleared; shed.placement.set: local origin, counterclockwise rotation or structural floor level (floorElevationMm locally or absoluteFloorElevationMm with an absolute reference, never both); shed.site.existing-building.add, shed.site.existing-building.update, shed.site.existing-building.remove: labelled flat context polygons in the same local coordinates; shed.site.dotted-area.add and shed.site.dotted-area.update use area with an id, an optional label and the complete local polygon; shed.site.dotted-area.remove uses id; shed.site.landscape.set replaces all landscape features with one collection in local millimetres; terrain and its height reference only through set_site_terrain and edit_site_terrain), openings (shed.opening., shed.openings.distribute; doors and windows on one or more walls in the same proposal, but each distribute covers one wall). Only one proposal per design can wait for the user at a time; after proposing, wait until get_proposal_status says approved (or rejected) before proposing the next step. The canonical planner validates it without applying it: the user reviews and approves it on Ritabygget, in the open editor or through the returned link. If the planner needs a construction choice the result has structuredContent.status "needs-choice" with choices; propose again with the chosen choice's changes. Target an existing opening with target {"id": ...} (shed.opening.remove removes it; a ref added in the same set can't be removed); name a new one with ref to target it later in the same change set. Lengths are millimetres. The result describes the planned outcome (type, size, wall, centerOffsetMm, sill) in steps and structuredContent.openings (every opening of the result, change added/changed/unchanged/removed), and the warnings this change causes or touches in structuredContent.warnings; floor-plan changes also return structuredContent.floorPlan with counts, room names and usable areas in areaMm2. structuredContent.preview is the structured geometry of the RESULT (#540): exterior walls with plan start/end, length and height, interior walls, openings per wall as seen from outside (corner distances, visualCenterMm, bottom/top, door type) and, with an own plot, the facade/roof outline with distances to every plot side; check placement against it before giving the link. Site changes return structuredContent.site with the complete plot, landscape, reference, contours, spot heights, terrain source, the terrain in the agreed metre format (site.terrain) and local/absolute levels. Use only supplied levels. Local uses datum 0, absolute requires the stated system and datum. A complete plot boundary is one change. Use set_site_terrain or edit_site_terrain for terrain, contours and their height reference. Plot and terrain proposals are separate from building changes. Its before/after is read-only in the GUI: corrections go through MCP after resolving the pending proposal. The original drawing stays in your AI environment, never uploaded to Ritabygget. Check the result against the request before giving the user the link.

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": {
      "designId": "<designId>",
      "changes": "<changes>"
    },
    "name": "propose_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYes
summaryNoOptional one-sentence description of the proposal, shown to the user.
designIdYesdesignId from list_designs.
baseRevisionNoRequired for shed.site.landscape.set. Copy revision from the saved design read, at the same level as designId and changes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and non-idempotent, and the description genuinely adds behaviour beyond that: the planner validates without applying, the user approves in Ritabygget or via the returned link, structuredContent.status can be "needs-choice", and warnings are surfaced. However, it never explains the baseRevision/concurrency requirement (only landscape.set is documented in the schema) nor what happens to a stale proposal, which matters for a write tool.

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?

Front-loaded with purpose and workflow, and most sentences carry real rules, but the whole definition is one dense paragraph with the area-by-area change enumeration packed into a single sentence and no headings or bullets. Some content repeats what the schema enum already enumerates, and the terrain instruction is stated twice.

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?

For a tool with a deeply nested anyOf schema and no output schema, the description is unusually complete: it explains the approval loop, the returns (steps, structuredContent.openings, warnings, floorPlan, preview, site), and the units. The remaining gap is revision handling and the meaning of summary/baseRevision, which an agent needs in order to invoke it correctly under concurrent edits.

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?

Against 75% schema coverage the description still adds real meaning for the dominant parameter: what the changes array may contain per area, that lengths are millimetres, the ref/target model for openings, that a ref added in the same set cannot be removed, and the floorElevationMm vs absoluteFloorElevationMm exclusivity. It says nothing about designId, summary or baseRevision, relying entirely on the schema for those.

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 concrete verb and resource ("Propose one step for a saved shed") with the hard constraint "at most 6 changes in ONE area", then enumerates which change types belong to each area. It explicitly separates this tool from terrain siblings ("terrain and its height reference only through set_site_terrain and edit_site_terrain") and from get_proposal_status, so an agent can place it without opening a sibling 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 explicit sequencing rules: only one proposal may wait for the user, wait until get_proposal_status reports approved/rejected before proposing the next step, and corrections go through MCP after resolving the pending proposal. It also names exclusions (site proposals cannot mix with building changes, terrain must go through its own tools) and the needs-choice recovery path.

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