create_goal
Create a goal / objective / OKR in the caller's org. title is required. Optional: description, type (OBJECTIVE / KEY_RESULT / INITIATIVE, default OBJECTIVE), parentId (existing goal to nest under), projectIds (array of project ids to link), startDate + dueDate (ISO). Caller becomes the owner. Use create_key_result to add measurable KRs to the new goal once it exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Default OBJECTIVE. | |
| title | Yes | 1-200 chars. Required. | |
| dueDate | No | ISO date by which the goal should be met. | |
| parentId | No | Parent Goal id for nesting (OKR tree). | |
| startDate | No | ISO date when the goal period starts. | |
| projectIds | No | Project ids to link via GoalProject. | |
| description | No | Optional, up to 10000 chars. | |
| idempotencyKey | No | Optional idempotency key. Pass a stable unique value (e.g. a UUID) to make this create safe to retry: calling again with the same key within 24h - even from a new session after a reconnect - replays the original result and creates no duplicate. Org-scoped; works across conversations. |