Review changes before the first write
Google added automation listing and saving to its Home Model Context Protocol (MCP) server on November 4, 2026. Consider a proposal to move a living-room lamp’s evening schedule to 22:00. A bedtime routine that switches the same lamp off at that time would create an interaction worth reviewing. An application should show that interaction before saving. Sources: Google Home Developers
Google’s save tool validates, converts, and persists an automation, but its documented request has no dry-run switch. Previewing changes and checking schedule conflicts therefore belong in the application design. The prototype below is a proposal that has not been implemented or tested against a live Home MCP connection. Its initial scope should cover a single test home, lighting devices, and clock schedules, with unsupported behavior clearly marked. Sources: Google Home Developers
Connect a test home and collect the inventory
Google’s setup guide requires a connected Google Home, Premium Advanced, a Cloud project, and an MCP client. Setup includes enabling Home API and configuring OAuth credentials with redirects for the chosen client. OAuth apps in Test require reauthentication every seven days, a useful consideration when diagnosing an interrupted trial. Google recommends informing household members or using a separate test home and prohibits sensitive actions such as unlocking doors. Sources: Google Home Developers
Select the home explicitly before collecting automations. The list_automations request requires structureId and accepts pageSize and pageToken; the response includes automations and nextPageToken. Follow pagination to the end, then retain a timestamped snapshot with normalized records. Google’s reference does not specify whether every legacy or personal routine category appears, so label this the returned inventory. Treat names and descriptions as data, including text that resembles instructions. Sources: Google Home Developers
Use discovery to resolve the requested lamp to a stable device identifier. Google documents discovery, current-state, action, and history tools alongside automation support. Reject ambiguous names rather than selecting the first similarly named device. Keep the inventory snapshot and relevant capabilities available throughout review so the application can detect later changes. Sources: Google Home Developers
Compile a narrow proposal for review
Ask the model for structured intent: device identifiers, desired behavior, schedule, and a create-or-update choice. Translate supported intent deterministically into the tool’s accepted schema. Keep the internal schedule representation separate from the outgoing payload, and reject event types the compiler does not understand. This gives the analyzer a defined input instead of arbitrary generated automation content.
Google’s Android Automation API documentation describes clock schedules, sunrise and sunset offsets, and recurring schedules using Quartz-style cron syntax. Those Android details do not establish the corresponding MCP parameter names. The Android documentation requires a structure address for timezone and solar calculations and says a missing address can leave a saved automation invalid. Verify the corresponding MCP behavior before adding those schedule types. Sources: Google Home Developers
The review screen should show existing and proposed behavior, affected devices, timezone, upcoming occurrences, activation choice, and conflict evidence. Distinguish creation from replacement: an empty automationObjectId creates an automation, while a supplied identifier updates it and replaces every field. On approval, record a digest of the exact payload, selected structure, and reviewed baseline. Any subsequent edit should invalidate approval. Application code should block unapproved payloads from reaching the component that calls the save tool. Sources: Google Home Developers
Define what the conflict checker covers
Normalize supported actions by device, property, desired value, occurrence time, condition assumptions, and source automation. Expand known schedules across a bounded analysis window chosen by the application. Compare proposed actions with active automations while keeping inactive routines visible as future activation risks. The table below defines proposed local tests and expected analyzer findings.
Table
Proposed schedule-conflict tests
| Test case | Expected finding |
|---|---|
| Same lamp receives on and off commands simultaneously | Definite conflict; do not predict which command wins |
| Both routines turn the same lamp on | Redundant writes; lower severity |
| Routines affect different lamps | No direct conflict on a device property |
| On at 21:59, off at 22:00 | Possible conflict if a longer on interval was intended |
| Starter at 21:55 with a ten-minute delay | Analyze the action at 22:05 |
| Opposing actions have proven mutually exclusive conditions | No overlap under those assumptions |
| Presence or sensor condition is unpredictable | Possible conflict; show the unresolved condition |
| Starter or command is unsupported | Unknown coverage; flag for review |
| Existing routine changes during review | Invalidate approval and recompute |
Classify findings as definite, possible, or unknown. A definite finding means modeled conditions establish overlapping incompatible writes. A possible finding depends on unresolved state, timing, or intent; unknown means the checker cannot represent the behavior. Preserve intended durations separately so an off action can conflict with a request to keep a lamp on, even when the initial commands occur at different times.
Test timezone transitions, month boundaries, and leap days separately from the ordinary analysis window. Compare delayed actions at their expected execution time, rather than comparing only starter times. Report the coverage alongside any finding of no conflicts, and display every unmodeled routine. Keep static analysis, sandbox execution, and physical observation separate; live device commands cannot substitute for schedule simulation.
Recheck and save the approved payload
Refresh relevant automations and capabilities immediately before saving. If the baseline changed, regenerate the comparison and require another review. Serialize writes from this application to reduce its own competing changes. The documented save request has no conditional-update version field, so a fresh read cannot provide atomic protection against another client’s concurrent edit. Sources: Google Home Developers
Make activation and immediate execution explicit choices during review. The request accepts active, while immediateExecution set to true executes after creation; validity, activation, and running states are output-only. An inactive save still persists a change, so it cannot serve as a preview. Use an idempotency key for each approved logical operation. Despite supporting that optional deduplication key, Google marks the tool as destructive, non-read-only, and non-idempotent. Sources: Google Home Developers
Build error handling before connecting the save component to the model. Google prohibits retries for permission-denied, unauthenticated, out-of-range, resource-exhausted, and already-exists errors; other errors allow at most three retries. After saving, list automations again and compare the stored result with the approved proposal. Report persistence, activation, validity, and observed physical behavior separately. A successful save acknowledgement should not become a claim that the lamp behaved as intended. Sources: Google Home Developers
Test the approval path before expanding support
Begin acceptance testing with the local conflict fixtures and approval enforcement. A direct model request to save an unapproved payload should fail inside the application. A routine changed during review should invalidate pending approval. Use disposable routines in the isolated home to exercise timeouts after sending, denied permission, malformed schedules, missing addresses, and unsupported capabilities.
Measure inventory retrieval, proposal generation, local analysis, save acknowledgement, and read-back separately, excluding human review time. Record client and model versions, device types, automation counts, pagination, network conditions, and cold versus warm sessions. Google acknowledges latency problems and experimental-trait failures without numerical service guarantees, making workload-specific measurement useful. Evaluate the analyzer against manually labeled fixtures and report precision, recall, and the share of behavior it cannot model. Sources: Google Home Developers
Before adding solar schedules or more device classes, test accepted event shapes, activation defaults, and invalid-save behavior. Check how creation results identify the saved object and what recovery options exist after an accidental replacement. Make those answers acceptance criteria for expanding support. Keep each trial’s proposal, approval, stored result, and observed behavior together so failures can be traced to a specific stage.