# Create Calendar Event (`create_calendar_event`)

Part of the [Outfield MCP Server](https://run.outfieldapp.com/docs/mcp) docs. All tools: [llms.txt](https://run.outfieldapp.com/docs/mcp/llms.txt). Server URL: https://run.outfieldapp.com/mcp

Schedules a calendar event: a planned check-in for places or a planned meeting for people.

Schedule a calendar event (planned check-in for a place, planned meeting for a person). Requires contact_ids, all of the same contact type, plus starts_at. Pass ends_at or duration_minutes for the event length. Recurring events are not supported. Optional form_ids attach forms to complete at the visit; do not send form_entries. Managers may pass assignee_user_id to schedule for a managed user. Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, Calendar, not available to Viewer users
- Access: Managers may pass assignee_user_id to schedule for a user they manage.
- Example prompts: "Schedule a visit to Acme Grocery next Tuesday at 10am for an hour."

### Parameters

- `contact_ids` (integer[]; required): Contact IDs from search_contacts; all places or all people
- `starts_at` (string; required; ISO 8601 datetime): Event start (ISO8601)
- `ends_at` (string; optional; ISO 8601 datetime): Event end (ISO8601). Used instead of duration_minutes when present.
- `duration_minutes` (integer; optional): Reported duration in minutes when ends_at is omitted
- `title` (string; optional): Optional title
- `notes` (string; optional): Optional notes
- `form_ids` (integer[]; optional): Optional form IDs from get_forms to complete at the visit
- `assignee_user_id` (integer; optional): Admin or manager: user ID to schedule for. Defaults to the authenticated user.
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `organization_id` (integer; optional): Organization ID from get_user_profile. Omit to use the current organization. If the user names a team, call get_user_profile first and pass that id.

### Notes

- All contact_ids must be the same type: all places (planned check-in) or all people (planned meeting).
- Pass ends_at or duration_minutes for the event length. Recurring events are not supported.
- form_ids attach forms to complete at the visit. Do not send form_entries.

### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_calendar_event",
    "arguments": {
      "contact_ids": [48213],
      "starts_at": "2026-10-06T10:00:00-05:00",
      "duration_minutes": 60,
      "title": "Fall reset walk-through",
      "form_ids": [318]
    }
  }
}
```

### Example response (`structuredContent`, illustrative data)

```json
{
  "id": 771204,
  "interaction_type": "planned_check_in",
  "title": "Fall reset walk-through",
  "notes": null,
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Acme Grocery",
  "form_results": null,
  "reported_duration_seconds": null,
  "call_result": null,
  "due_at": null,
  "is_complete": false,
  "starts_at": "2026-10-06T10:00:00-05:00",
  "ends_at": "2026-10-06T11:00:00-05:00",
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [get_forms](https://run.outfieldapp.com/docs/mcp/tools/get_forms.md), [get_user_calendar_events](https://run.outfieldapp.com/docs/mcp/tools/get_user_calendar_events.md)
