I keep coming back to the same gap when I connect an assistant to my calendar.

The model can read events. It can create events. It can summarise them. What it cannot do is answer "what should I actually do next, and what happens to the rest of the day if I don't?" There is no data shape for that. Calendar events are facts about time. A plan is a decision about time, and decisions have reasons, constraints and a history.

So every agent integration ends up either reading a calendar and guessing, or asking the user to restate their priorities from scratch in every conversation. Both are the same failure: the context that made the plan is lost the moment the conversation ends.

What a plan actually contains

If you write down what a real plan has, it stops looking like a calendar:

  • Blocks, not events. A block is work that will happen, with an intent, not a meeting with attendees.
  • Constraints that shaped it: "no deep work before 10", "never schedule over lunch", "two hours max on reviews".
  • Dependencies: this task cannot start until that one lands.
  • A reason per block. "Because your energy is highest in the morning" is the part that makes a plan trustworthy and reviewable.
  • Replan events. The day moved. What changed, and why.

None of that fits in an iCalendar field. SUMMARY and DTSTART have nowhere to put "because".

A shape that does fit

Here is a minimal version of the structure I settled on. It is deliberately boring: plain JSON, no schema registry, no reserved vendor fields.

{ "date": "2026-11-28", "timezone": "Europe/Lisbon", "profile": { "gaps": ["no deep work before 10:00"], "energy": [{ "from": "09:00", "to": "12:00", "level": "high" }], "constraints": [{ "id": "lunch", "kind": "protected", "from": "13:00", "to": "14:00" }] }, "blocks": [ { "id": "b1", "title": "Draft the migration plan", "kind": "deep_work", "priority": 1, "estimateMinutes": 90, "from": "10:00", "to": "11:30", "reason": "Highest priority task and the only uninterrupted 90 minute gap before your first meeting.", "dependsOn": [] }, { "id": "b2", "title": "Review PR #482", "kind": "shallow", "priority": 3, "estimateMinutes": 25, "from": "11:30", "to": "11:55", "reason": "Fits the short gap before the 12:00 standup without breaking the deep work block.", "dependsOn": [] } ], "replan": [] } 

Three things make this useful to an agent:

  1. reason is not decoration. It is what lets the model explain itself instead of presenting a schedule as a fact. If the reason is wrong, the user can correct the reasoning, not just the slot.
  2. profile.constraints is separate from blocks. Constraints survive replanning. Blocks do not. Mixing them is why planners produce the same broken schedule after every change.
  3. replan is an append-only log. When a meeting lands on your deep work, you record what moved and why. Next week the agent can see that this happened four times and suggest a different structure, instead of silently re-deriving the same broken day.

Replan events are the part everyone skips

The original version of this had no replan array, and it made the structure useless after about an hour. A plan that only describes the current state cannot answer the only question worth asking: is this a bad day or a bad plan?

{ "at": "2026-11-28T11:42:00Z", "trigger": "calendar_change", "detail": "Standup moved from 12:00 to 11:15", "moved": [{ "blockId": "b1", "from": "10:00-11:30", "to": "09:30-11:15" }], "dropped": [], "note": "Deep work block shortened by 15 minutes; kept priority order." } 

With that log, "I never get my deep work done" becomes a measurable claim rather than a feeling. The agent can count how often the high-priority block got shortened, and propose a fix that operates on the constraint rather than the symptom.

Exposing it to an agent

The format is only half of it. The other half is that the agent needs read and write access without a bespoke integration per client. That is what MCP is for: one server, any client.

A minimal tool set is enough:

  • read_day_plan(date) returns the structure above.
  • add_task(date, title, priority, estimateMinutes) appends to the queue, not to a block.
  • generate_day_plan(date) runs the planner and returns the new plan plus a replan event.
  • update_task(id, patch) for corrections.

Notice what is not in that list: nothing that writes a block directly. Blocks are the planner's output, tasks are the user's input. Letting the agent write blocks directly is how you get a schedule that looks plausible and is structurally wrong.

Why I wrote this down

I built this into Nityasha, an AI day planner, because the alternative was another proprietary shape nobody could inspect. The MCP server is at https://www.nityasha.com/mcp if you want to poke at the real response instead of my example, and the agent guide is at nityasha.com/docs.

But the format is the interesting part, not the product. If you are building a calendar agent, you are almost certainly inventing a private version of this right now. Publishing it as a shared shape would mean an agent that learns your planning constraints once can carry them to any client, which is the entire promise people think they are getting when they connect an assistant to their calendar.

If you have a different shape for the same problem, I would genuinely like to see it. The place this usually falls apart is multi-day planning, and I have not solved that cleanly.