Skip to main content
Glama

skylight_import_events_from_photo

Destructive

Import calendar events from a photo of a flyer, invite, or schedule using Skylight AI, with a confirmation preview before uploading.

Instructions

Import calendar events from a photo of a flyer/invite/schedule using Skylight's AI (event_importer). Best-effort/UNVERIFIED: uploads the photo to S3 then posts an event_importer intent that references the latest upload (the server-side photo↔intent link is inferred from captured traffic, not confirmed). Asks the user to confirm first: a confirmation prompt where the client supports one; otherwise the first call returns a preview and a confirmToken, and only a repeat call with that token proceeds (see MCP_CONFIRM_MODE). The preview echoes the resolved absolute image_path, detected mime and size, and nothing is read or uploaded until it is confirmed. Poll skylight_get_auto_creation_intent / skylight_list_auto_creation_drafts, then skylight_approve_auto_creation.

Input Schema

NameRequiredDescriptionDefault
frameIdNo
image_pathYesAbsolute path to a local image of the events to import (same directories, types and 200 MiB cap as skylight_upload_photo).
category_idsNoFamily-member category ids to assign the imported events to.
confirmTokenNoONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.3.1
    • changedInput schema / properties / image_path / description
      Previous value: -"Absolute path to a local image of the events to import (same types and 200 MiB cap as skylight_upload_photo)."New value: +"Absolute path to a local image of the events to import (same directories, types and 200 MiB cap as skylight_upload_photo)."
  2. Changed2 schema fields changedv1.3.0
    • removedInput schema / properties / confirm
      Removed value: -{
      -  "description": "Must be true to proceed. Without this, the tool returns a preview.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / confirmToken
      Added value: +{
      +  "description": "ONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 \"confirmation-required\" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation.",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv1.1.3
    • changedInput schema / properties / image_path / description
      Previous value: -"Absolute path to a local image of the events to import."New value: +"Absolute path to a local image of the events to import (same types and 200 MiB cap as skylight_upload_photo)."
  4. Changed1 schema field changedv1.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  5. Changed2 schema fields changedv0.7.1
    • removedInput schema / properties / category_ids / items / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / category_ids / items / type
      Added value: +[
      +  "string",
      +  "number"
      +]
  6. First observedv0.4.6

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only flag destructive/openWorld; the description adds substantial non-obvious behavior: the flow is best-effort/UNVERIFIED and inferred from captured traffic, it uploads to S3 and posts an event_importer intent, it is two-phase, nothing is read or uploaded until confirmation, and it details the confirmToken contract. This is exactly the kind of behavioral disclosure annotations cannot carry.

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?

Purpose is front-loaded and each sentence carries distinct information (caveat, confirmation flow, follow-up tools). It is dense with parentheticals and an external MCP_CONFIRM_MODE reference, which slightly taxes readability, but nothing is filler.

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 complex, unverified, multi-phase import with no output schema, the description covers the return preview fields, the confirmation mechanics, and the downstream tools. Only the frameId parameter and the concrete shape of the created events remain unaddressed.

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 75% and the schema already documents image_path and category_ids well. The description goes further by explaining the phase-1/phase-2 confirmToken contract and the preview echoing the resolved absolute image_path, though frameId remains undocumented in both schema and 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?

Opens with a specific verb+resource ('Import calendar events from a photo of a flyer/invite/schedule') and names the backend mechanism (Skylight's AI / event_importer). This clearly separates it from siblings like skylight_create_event (structured input) and skylight_upload_photo (plain photo upload).

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?

Gives explicit post-call routing: poll skylight_get_auto_creation_intent / skylight_list_auto_creation_drafts, then skylight_approve_auto_creation, and explains the two confirmation paths. It does not state a when-not alternative (e.g. use create_event for structured data), so it stops short of full when/when-not coverage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools