Skip to main content
Glama

skylight_import_events_from_photo

Destructive

Import calendar events from a photo of a flyer/invite/schedule using Skylight's AI (event_importer). Pass exactly ONE of image_path (a local file — local installs), image_blob_key (on the hosted connector: call skylight_upload_slots first…

Instructions

Import calendar events from a photo of a flyer/invite/schedule using Skylight's AI (event_importer). Pass exactly ONE of image_path (a local file — local installs), image_blob_key (on the hosted connector: call skylight_upload_slots first, PUT the file to the returned uploadUrl, then pass its blobKey) or image_inline (base64; small files only). 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 (and the same file) proceeds (see MCP_CONFIRM_MODE). The preview names the file, detected mime, size and SHA-256; nothing is uploaded until it is confirmed. A blob-store upload is deleted once the intent is created (reported as blob.deleted) and kept if it fails. Poll skylight_get_auto_creation_intent / skylight_list_auto_creation_drafts, then skylight_approve_auto_creation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "skylight_import_events_from_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameIdNo
image_pathNoLOCAL installs only: absolute path to an image/video file inside the upload directories (SKYLIGHT_UPLOAD_DIR; by default ~/Pictures and ~/Downloads) (jpg, jpeg, png, heic, gif, webp, mp4, mov; max 200 MiB). Anything else — a file outside those directories, a hidden file, a symlink, or a file whose contents do not match its extension — is refused. Refused on a hosted deployment (the claude.ai connector): use image_blob_key there.
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.
image_inlineNoThe file itself as base64: {filename, contentBase64, mimeType?}. Small files only — the whole file rides inside one tool call (a hosted deployment caps a request at about 9.9 MiB). Same types as image_path; the bytes must match the type.
image_blob_keyNoHosted deployments: the blobKey from skylight_upload_slots, after the file was PUT to its uploadUrl. Same types as image_path, max 200 MiB. The upload is deleted from the blob store once Skylight accepts it, and kept if the upload fails.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.6.0
    • addedInput schema / properties / image_blob_key
      Added value: +{
      +  "description": "Hosted deployments: the blobKey from skylight_upload_slots, after the file was PUT to its uploadUrl. Same types as image_path, max 200 MiB. The upload is deleted from the blob store once Skylight accepts it, and kept if the upload fails.",
      +  "type": "string"
      +}
    • addedInput schema / properties / image_inline
      Added value: +{
      +  "description": "The file itself as base64: {filename, contentBase64, mimeType?}. Small files only — the whole file rides inside one tool call (a hosted deployment caps a request at about 9.9 MiB). Same types as image_path; the bytes must match the type.",
      +  "properties": {
      +    "contentBase64": {
      +      "description": "The file's bytes, standard base64 (line breaks and a \"data:<type>;base64,\" prefix are tolerated).",
      +      "type": "string"
      +    },
      +    "filename": {
      +      "description": "Filename the upstream will show — a bare name, no path, not starting with a dot. Its extension sets the MIME type when mimeType is omitted.",
      +      "type": "string"
      +    },
      +    "mimeType": {
      +      "description": "MIME type, e.g. \"image/jpeg\". Default: inferred from the filename extension.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "filename",
      +    "contentBase64"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / image_path / description
      Previous value: -"Absolute path to a local image of the events to import (same directories, types and 200 MiB cap as skylight_upload_photo)."New value: +"LOCAL installs only: absolute path to an image/video file inside the upload directories (SKYLIGHT_UPLOAD_DIR; by default ~/Pictures and ~/Downloads) (jpg, jpeg, png, heic, gif, webp, mp4, mov; max 200 MiB). Anything else — a file outside those directories, a hidden file, a symlink, or a file whose contents do not match its extension — is refused. Refused on a hosted deployment (the claude.ai connector): use image_blob_key there."
    • removedInput schema / required
      Removed value: -[
      -  "image_path"
      -]
  2. 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)."
  3. 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"
      +}
  4. 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)."
  5. 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"
  6. 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"
      +]
  7. First observedv0.4.6

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=true, openWorld=true; the description goes far beyond by disclosing that the photo is uploaded to S3, that the server-side photo-to-intent link is inferred from captured traffic and UNVERIFIED, and the exact cleanup semantics (blob.deleted when the intent is created, kept on failure). It also fully explains the confirmation protocol, including the phase-1 preview contents (filename, mime, size, SHA-256) and that nothing is uploaded before confirmation, plus the confirmToken rules.

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 purpose and the mode-selection constraint before the caveats, and no sentence is filler; the warning that the mechanism is unverified and the upload-deletion rule both earn their space. It is heavy with parentheticals and packs several distinct concerns into one long confirmation sentence, costing it the top score.

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?

For a 6-parameter, nested-object, no-output-schema tool with a multi-step confirmation protocol, the description covers input selection, deployment differences, file constraints, confirmation behavior, cleanup, and the exact follow-up tool sequence. An agent has everything needed to call it correctly and to know what to do after.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 83%, so the baseline is 3 and the schema documents most parameters in depth. The description does add real value the schema cannot express, namely the 'pass exactly ONE of image_path/image_blob_key/image_inline' cross-parameter constraint and the ~9.9 MiB request cap for inline payloads, which justifies the top of the baseline band rather than more.

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?

Starts with a specific verb+resource pair ('Import calendar events from a photo of a flyer/invite/schedule') and names the underlying AI capability (event_importer). It also distinguishes itself from the rest of the calendar cluster by describing the downstream pipeline (intent -> drafts -> approve_auto_creation), so an agent can place it in the workflow without opening sibling schemas.

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?

Explicitly states the mutually exclusive input modes and the deployment condition that selects each: image_path for local installs, image_blob_key for the hosted connector (with the required prior call to skylight_upload_slots and PUT to uploadUrl), image_inline for small files. It also states the required follow-up calls, which is when-to-use guidance at the workflow level.

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