Skip to main content
Glama

Dayze — Life Context

Update Event (calendar patch)

update_event

MUTATES one existing calendar event the authenticated user owns. Required: event_id (UUID). Optional patch (same fields as log_event): title, date / event_date, time / event_time, end_date, end_time, location, description (alias notes), category, external_url, image_url, timezone, visibility, people / with / person_ids, scoreboard (merged; null clears). Adds a bedtime to a wake-only sleep: event_time (and event_date / end_date when it was the night before). Unknown or other-user event_id returns an error and does not create a row. For food-diary meals, prefer update_food (it syncs the mirrored event). Rebuilds life_state. Requires API key or OAuth with scope context. Share tokens cannot write. ($0.10; API key required)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoAlias for event_date.
timeNoAlias for event_time.
withNoAlias for people.
notesNoAlias for description.
titleNoUpdated title (replaces). Cannot be empty.
peopleNoPeople names or person UUIDs to add (event_people role=with). Does not remove existing tags.
categoryNoe.g. sleep, funeral, family, work, travel. Stored as events.category and event_type.
end_dateNoOptional end date YYYY-MM-DD (multi-day, or a night that ends the next day).
end_timeNoOptional end time (same formats as event_time).
event_idYesUUID of a calendar event the authenticated user owns
locationNoEmpty or null clears
timezoneNoIANA timezone for wall-clock display. Empty or null clears.
image_urlNoCover image URL. Empty or null clears.
event_dateNoStart date YYYY-MM-DD, YYYY-MM, or YYYY. Alias: date.
event_timeNoStart time: 8pm, 20:00, or 20:00:00. Empty or null clears. Alias: time.
person_idsNoOwned person UUIDs to tag (user-scoped).
request_idNoClient idempotency key (retries return original successful result).
scoreboardNoOperating status as data (not description prose). state is required when the event has no scoreboard yet. On update_event fields merge; a null field clears it; scoreboard null removes the record.
visibilityNoUpdates both events.visibility and the enforced events.is_private flag.
descriptionNoNotes about the event (replaces). Empty or null clears. Alias: notes.
person_nameNoOne person to tag, by name.
external_urlNo
people_namesNoAlias for people.
date_precisionNoSoft date precision stored in metadata.
idempotency_keyNoAlias for request_id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventYesA Dayze calendar event record.
accountNoThe Dayze account this data belongs to. With more than one Dayze connection, name it in the answer.
changedYesChanged fields with before and after values.
provenanceNoWhich connector wrote the record and which connected Dayze account received it.
people_taggedYes
unresolved_peopleYes
life_state_rebuiltYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / account
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The Dayze account this data belongs to. With more than one Dayze connection, name it in the answer.",
      +  "properties": {
      +    "display_name": {
      +      "description": "Account display name.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "handle": {
      +      "description": "Account handle, e.g. @goh.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "note": {
      +      "description": "How to disclose the account to the user.",
      +      "type": "string"
      +    },
      +    "qa_fixture": {
      +      "description": "True for a known QA test account: its records are fixture data, not a real life.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "handle",
      +    "display_name",
      +    "qa_fixture",
      +    "note"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / provenance
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Which connector wrote the record and which connected Dayze account received it.",
      +  "properties": {
      +    "account": {
      +      "additionalProperties": false,
      +      "description": "The Dayze account this data belongs to. With more than one Dayze connection, name it in the answer.",
      +      "properties": {
      +        "display_name": {
      +          "description": "Account display name.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "handle": {
      +          "description": "Account handle, e.g. @goh.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "note": {
      +          "description": "How to disclose the account to the user.",
      +          "type": "string"
      +        },
      +        "qa_fixture": {
      +          "description": "True for a known QA test account: its records are fixture data, not a real life.",
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "handle",
      +        "display_name",
      +        "qa_fixture",
      +        "note"
      +      ],
      +      "type": "object"
      +    },
      +    "channel": {
      +      "description": "Always mcp_connector.",
      +      "type": "string"
      +    },
      +    "connector": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "kind": {
      +          "description": "oauth or api_key.",
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "The connected app or API-key label shown to the account owner.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {
      +      "description": "chatgpt for ChatGPT OAuth writes; mcp for another OAuth app or API key.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "source",
      +    "channel",
      +    "connector",
      +    "account"
      +  ],
      +  "type": "object"
      +}
  2. Changed8 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"e.g. funeral, family, work, travel. Stored as events.category and event_type."New value: +"e.g. sleep, funeral, family, work, travel. Stored as events.category and event_type."
    • changedInput schema / properties / description / description
      Previous value: -"Empty or null clears"New value: +"Notes about the event (replaces). Empty or null clears. Alias: notes."
    • changedInput schema / properties / end_date / description
      Previous value: -"Optional end date YYYY-MM-DD (all-day multi-day)."New value: +"Optional end date YYYY-MM-DD (multi-day, or a night that ends the next day)."
    • addedInput schema / properties / image_url
      Added value: +{
      +  "description": "Cover image URL. Empty or null clears.",
      +  "type": "string"
      +}
    • addedInput schema / properties / notes
      Added value: +{
      +  "description": "Alias for description.",
      +  "type": "string"
      +}
    • addedInput schema / properties / people_names / description
      Added value: +"Alias for people."
    • addedInput schema / properties / person_name / description
      Added value: +"One person to tag, by name."
    • addedInput schema / properties / timezone
      Added value: +{
      +  "description": "IANA timezone for wall-clock display. Empty or null clears.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / scoreboard
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Operating status as data (not description prose). state is required when the event has no scoreboard yet. On update_event fields merge; a null field clears it; scoreboard null removes the record.",
      +  "properties": {
      +    "blocker": {
      +      "type": "string"
      +    },
      +    "evidence": {
      +      "type": "string"
      +    },
      +    "last_verified": {
      +      "description": "YYYY-MM-DD",
      +      "type": "string"
      +    },
      +    "metric": {
      +      "description": "Progress readout, e.g. 2/5",
      +      "type": "string"
      +    },
      +    "next_review": {
      +      "description": "YYYY-MM-DD",
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "owner": {
      +      "type": "string"
      +    },
      +    "state": {
      +      "enum": [
      +        "not_started",
      +        "on_track",
      +        "at_risk",
      +        "blocked",
      +        "done"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / visibility
      Added value: +{
      +  "description": "Updates both events.visibility and the enforced events.is_private flag.",
      +  "enum": [
      +    "private",
      +    "friends",
      +    "public"
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / request_id / description
      Previous value: -"Client idempotency key (retries return original result)."New value: +"Client idempotency key (retries return original successful result)."
  6. Changed2 schema fields changed
    • addedInput schema / properties / date_precision
      Added value: +{
      +  "description": "Soft date precision stored in metadata.",
      +  "enum": [
      +    "day",
      +    "month",
      +    "year",
      +    "approx"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / event_date / description
      Previous value: -"Start date YYYY-MM-DD. Alias: date."New value: +"Start date YYYY-MM-DD, YYYY-MM, or YYYY. Alias: date."
  7. Changed2 schema fields changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Alias for request_id.",
      +  "type": "string"
      +}
    • addedInput schema / properties / request_id
      Added value: +{
      +  "description": "Client idempotency key (retries return original result).",
      +  "type": "string"
      +}
  8. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "changed": {
      +      "additionalProperties": true,
      +      "description": "Changed fields with before and after values.",
      +      "type": "object"
      +    },
      +    "event": {
      +      "additionalProperties": true,
      +      "description": "A Dayze calendar event record.",
      +      "type": "object"
      +    },
      +    "life_state_rebuilt": {
      +      "type": "boolean"
      +    },
      +    "people_tagged": {
      +      "items": {
      +        "additionalProperties": true,
      +        "description": "A Dayze person or contact record.",
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "unresolved_people": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "event",
      +    "changed",
      +    "people_tagged",
      +    "unresolved_people",
      +    "life_state_rebuilt"
      +  ],
      +  "type": "object"
      +}
  9. Added

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 side effects ('Rebuilds life_state'), auth requirements ('Requires API key or OAuth with scope context. Share tokens cannot write'), failure semantics ('Unknown or other-user event_id returns an error and does not create a row'), cost ($0.10), and merge/null-clear behavior on scoreboard.

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?

Front-loaded with the mutating nature and required param, then drops into auth, error, cost, and alternative info in dense sentences. Slight redundancy in re-listing patch field aliases that the schema already documents, but on a 25-parameter tool that enumeration aids scanning.

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?

An output schema exists, so return values need not be described. Auth, cost, error behavior, side effects, null/merge semantics, and a sibling alternative are all covered, leaving nothing material missing for correct invocation.

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 coverage is 96%, so the baseline is 3, but the description adds genuine domain semantics the schema lacks: scoreboard fields merge with null clearing/removing, and the wake-only-sleep rule ('Adds a bedtime to a wake-only sleep: event_time...') is a real usage rule not encoded in any property description.

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 ('MUTATES'), resource ('one existing calendar event'), and ownership scope ('the authenticated user owns'). This distinguishes it cleanly from log_event, delete_event, archive_event, and restore_event in the sibling list.

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?

Names a concrete alternative with a condition: 'For food-diary meals, prefer update_food (it syncs the mirrored event).' It also states the failure condition for a bad event_id. It stops short of routing between log_event, commit_life_update, or archive_event, so it's clear but not exhaustive.

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.