@chronary/toolkit 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/ai-sdk.cjs +59 -54
- package/dist/ai-sdk.cjs.map +1 -1
- package/dist/ai-sdk.js +59 -54
- package/dist/ai-sdk.js.map +1 -1
- package/dist/index.cjs +59 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -4
- package/dist/index.d.ts +30 -4
- package/dist/index.js +59 -54
- package/dist/index.js.map +1 -1
- package/dist/langchain.cjs +59 -54
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.js +59 -54
- package/dist/langchain.js.map +1 -1
- package/dist/mastra.cjs +59 -54
- package/dist/mastra.cjs.map +1 -1
- package/dist/mastra.js +59 -54
- package/dist/mastra.js.map +1 -1
- package/dist/mcp.cjs +60 -55
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.js +60 -55
- package/dist/mcp.js.map +1 -1
- package/dist/openai.cjs +59 -54
- package/dist/openai.cjs.map +1 -1
- package/dist/openai.js +59 -54
- package/dist/openai.js.map +1 -1
- package/package.json +3 -3
package/dist/mastra.cjs
CHANGED
|
@@ -79,6 +79,20 @@ var UpdateCalendarSchema = import_zod.z.object({
|
|
|
79
79
|
var DeleteCalendarSchema = import_zod.z.object({
|
|
80
80
|
calendar_id: import_zod.z.string().describe("Calendar ID to delete")
|
|
81
81
|
});
|
|
82
|
+
var timeOfDay = import_zod.z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/, "must be HH:MM in 24-hour time");
|
|
83
|
+
var workingHoursDaySchema = import_zod.z.object({
|
|
84
|
+
start: timeOfDay.describe('Start of the working window, HH:MM 24-hour, in the timezone of the availability rules or booking page it belongs to (e.g. "09:00")'),
|
|
85
|
+
end: timeOfDay.describe('End of the working window, HH:MM 24-hour, after start (e.g. "17:00")')
|
|
86
|
+
}).refine((v) => v.end > v.start, "end must be after start").describe("A single day's working hours window");
|
|
87
|
+
var workingHoursSchema = import_zod.z.object({
|
|
88
|
+
mon: workingHoursDaySchema.optional(),
|
|
89
|
+
tue: workingHoursDaySchema.optional(),
|
|
90
|
+
wed: workingHoursDaySchema.optional(),
|
|
91
|
+
thu: workingHoursDaySchema.optional(),
|
|
92
|
+
fri: workingHoursDaySchema.optional(),
|
|
93
|
+
sat: workingHoursDaySchema.optional(),
|
|
94
|
+
sun: workingHoursDaySchema.optional()
|
|
95
|
+
}).refine((v) => Object.keys(v).length > 0, "at least one day must be specified").nullable();
|
|
82
96
|
var ListBookingPagesSchema = import_zod.z.object({
|
|
83
97
|
limit: import_zod.z.number().int().min(1).max(200).default(50).describe("Max results to return"),
|
|
84
98
|
offset: import_zod.z.number().int().min(0).default(0).describe("Pagination offset, at most 10000")
|
|
@@ -87,7 +101,7 @@ var GetBookingPageSchema = import_zod.z.object({
|
|
|
87
101
|
booking_page_id: import_zod.z.string().describe("Booking page ID to fetch (bkp_...)")
|
|
88
102
|
});
|
|
89
103
|
var CreateBookingPageSchema = import_zod.z.object({
|
|
90
|
-
calendar_id: import_zod.z.string().describe("Calendar a booking resolves to
|
|
104
|
+
calendar_id: import_zod.z.string().describe("Calendar ID a booking resolves to."),
|
|
91
105
|
title: import_zod.z.string().min(1).max(200).describe("Meeting title shown on the page."),
|
|
92
106
|
description: import_zod.z.string().max(2e3).optional().describe("Optional description shown to the booker."),
|
|
93
107
|
duration_minutes: import_zod.z.number().int().min(5).max(480).optional().describe("Slot length in minutes (default 30)."),
|
|
@@ -95,7 +109,8 @@ var CreateBookingPageSchema = import_zod.z.object({
|
|
|
95
109
|
window_days: import_zod.z.number().int().min(1).max(365).optional().describe("How far ahead bookings are allowed (default 14)."),
|
|
96
110
|
min_notice_minutes: import_zod.z.number().int().min(0).max(40320).optional().describe("Minimum lead time before a bookable slot (default 0)."),
|
|
97
111
|
timezone: import_zod.z.string().min(1).max(64).optional().describe("IANA timezone for display + working hours (default UTC)."),
|
|
98
|
-
|
|
112
|
+
// Same shape the hosted API validates (#2525).
|
|
113
|
+
availability_constraints: workingHoursSchema.optional().describe('Weekly working hours keyed by day (mon, tue, wed, thu, fri, sat, sun; a day left out takes no bookings), each {"start":"HH:MM","end":"HH:MM"} in 24-hour time with end after start, e.g. {"mon":{"start":"09:00","end":"17:00"}}. Omit/null for any time in the window.'),
|
|
99
114
|
active: import_zod.z.boolean().optional().describe("Whether the page accepts bookings (default true).")
|
|
100
115
|
});
|
|
101
116
|
var DeleteBookingPageSchema = import_zod.z.object({
|
|
@@ -158,7 +173,7 @@ var UpdateEventSchema = import_zod.z.object({
|
|
|
158
173
|
});
|
|
159
174
|
var CancelEventSchema = import_zod.z.object({
|
|
160
175
|
event_id: import_zod.z.string().describe("Event ID to cancel"),
|
|
161
|
-
calendar_id: import_zod.z.string().optional().describe("Calendar ID that owns the event. Optional \u2014 if omitted the calendar is resolved from the event.
|
|
176
|
+
calendar_id: import_zod.z.string().optional().describe("Calendar ID that owns the event. Optional \u2014 if omitted the calendar is resolved from the event."),
|
|
162
177
|
occurrence_start: import_zod.z.string().datetime({ offset: true }).optional().describe("For recurring events only: ISO 8601 start of the single occurrence to cancel. The rest of the series is unaffected.")
|
|
163
178
|
});
|
|
164
179
|
var ConfirmEventSchema = import_zod.z.object({
|
|
@@ -230,7 +245,11 @@ var proposalSlotSchema = import_zod.z.object({
|
|
|
230
245
|
end_time: import_zod.z.string().datetime({ offset: true }).describe("Slot end time (ISO 8601), after start_time"),
|
|
231
246
|
weight: import_zod.z.number().min(0).max(10).default(1).optional().describe("Preference for this slot, 0\u201310 (higher = more preferred). Used to rank candidate slots when the proposal is resolved. Defaults to 1."),
|
|
232
247
|
calendar_id: import_zod.z.string().optional().describe("Calendar to create the event on if this slot is chosen. Defaults to the proposal's top-level calendar_id.")
|
|
233
|
-
})
|
|
248
|
+
}).refine(
|
|
249
|
+
// Same rule as the API (#2538): a slot must end after it starts.
|
|
250
|
+
(v) => new Date(v.end_time).getTime() > new Date(v.start_time).getTime(),
|
|
251
|
+
"end_time must be after start_time"
|
|
252
|
+
);
|
|
234
253
|
var CreateProposalSchema = import_zod.z.object({
|
|
235
254
|
title: import_zod.z.string().min(1).max(500).describe("Short description of what the meeting is about"),
|
|
236
255
|
description: import_zod.z.string().max(5e3).optional().describe("Longer context/agenda"),
|
|
@@ -263,20 +282,6 @@ var ResolveProposalSchema = import_zod.z.object({
|
|
|
263
282
|
var CancelProposalSchema = import_zod.z.object({
|
|
264
283
|
proposal_id: import_zod.z.string().describe("Proposal to cancel")
|
|
265
284
|
});
|
|
266
|
-
var timeOfDay = import_zod.z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/, "must be HH:MM in 24-hour time");
|
|
267
|
-
var workingHoursDaySchema = import_zod.z.object({
|
|
268
|
-
start: timeOfDay.describe('Start of the working window, HH:MM 24-hour, in the rules timezone (e.g. "09:00")'),
|
|
269
|
-
end: timeOfDay.describe('End of the working window, HH:MM 24-hour, after start (e.g. "17:00")')
|
|
270
|
-
}).refine((v) => v.end > v.start, "end must be after start").describe("A single day's working hours window");
|
|
271
|
-
var workingHoursSchema = import_zod.z.object({
|
|
272
|
-
mon: workingHoursDaySchema.optional(),
|
|
273
|
-
tue: workingHoursDaySchema.optional(),
|
|
274
|
-
wed: workingHoursDaySchema.optional(),
|
|
275
|
-
thu: workingHoursDaySchema.optional(),
|
|
276
|
-
fri: workingHoursDaySchema.optional(),
|
|
277
|
-
sat: workingHoursDaySchema.optional(),
|
|
278
|
-
sun: workingHoursDaySchema.optional()
|
|
279
|
-
}).refine((v) => Object.keys(v).length > 0, "at least one day must be specified").nullable();
|
|
280
285
|
var SetAvailabilityRulesSchema = import_zod.z.object({
|
|
281
286
|
calendar_id: import_zod.z.string().describe("Calendar to configure"),
|
|
282
287
|
buffer_before_minutes: import_zod.z.number().int().min(0).max(120).default(0).describe("Minutes of buffer before each event (0\u2013120)"),
|
|
@@ -351,7 +356,7 @@ var ListWebhookDeliveriesSchema = import_zod.z.object({
|
|
|
351
356
|
});
|
|
352
357
|
var GetWebhookDeliverySchema = import_zod.z.object({
|
|
353
358
|
webhook_id: import_zod.z.string().describe("Webhook subscription the delivery belongs to"),
|
|
354
|
-
delivery_id: import_zod.z.string().describe("Delivery ID (whd_...)
|
|
359
|
+
delivery_id: import_zod.z.string().describe("Delivery ID (whd_...)")
|
|
355
360
|
});
|
|
356
361
|
var SendTestWebhookSchema = import_zod.z.object({
|
|
357
362
|
webhook_id: import_zod.z.string().describe("Webhook subscription to send the test event to"),
|
|
@@ -875,14 +880,14 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
875
880
|
name: "create_calendar",
|
|
876
881
|
description: 'Create a calendar to hold events and track availability. Calendars are required before creating events \u2014 call this first when setting up a new agent. An agent can have multiple calendars (e.g. "Work", "Personal"). Org-level calendars (no agent_id) can be used as shared resources like meeting rooms.',
|
|
877
882
|
schema: CreateCalendarSchema,
|
|
878
|
-
annotations: { title: "Create Calendar", readOnlyHint: false, destructiveHint:
|
|
883
|
+
annotations: { title: "Create Calendar", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
|
|
879
884
|
execute: createExecutor(createCalendar)
|
|
880
885
|
},
|
|
881
886
|
{
|
|
882
887
|
name: "update_calendar",
|
|
883
888
|
description: "Update a calendar's name, timezone, agent status, default reminders, or metadata. Agent keys may only update calendars owned by their agent.",
|
|
884
889
|
schema: UpdateCalendarSchema,
|
|
885
|
-
annotations: { title: "Update Calendar", readOnlyHint: false, destructiveHint:
|
|
890
|
+
annotations: { title: "Update Calendar", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
886
891
|
execute: createExecutor(updateCalendar)
|
|
887
892
|
},
|
|
888
893
|
{
|
|
@@ -897,7 +902,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
897
902
|
name: "create_booking_page",
|
|
898
903
|
description: "Create a public booking page (a hosted scheduling link) for a calendar. Returns a booking_url to send to a human; when they pick a slot, a confirmed event is created on the calendar and an event.created webhook fires with a booking_page_id field. Set availability_constraints to restrict to weekly working hours; existing calendar events always block slots.",
|
|
899
904
|
schema: CreateBookingPageSchema,
|
|
900
|
-
annotations: { title: "Create Booking Page", readOnlyHint: false, destructiveHint:
|
|
905
|
+
annotations: { title: "Create Booking Page", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
|
|
901
906
|
execute: createExecutor(createBookingPage)
|
|
902
907
|
},
|
|
903
908
|
{
|
|
@@ -932,7 +937,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
932
937
|
},
|
|
933
938
|
{
|
|
934
939
|
name: "list_org_events",
|
|
935
|
-
description: "List events across all of the organization's calendars in one call, ordered by start time (an Agent key sees only its agent's calendars). Narrow with `calendar_ids`, `agent_id`, a `start_after`/`start_before` window, `status` and `source`. `q` searches titles (case-insensitive) and needs both window bounds at most 31 days apart.
|
|
940
|
+
description: "List events across all of the organization's calendars in one call, ordered by start time (an Agent key sees only its agent's calendars). Narrow with `calendar_ids`, `agent_id`, a `start_after`/`start_before` window, `status` and `source`. `q` searches titles (case-insensitive) and needs both window bounds at most 31 days apart. Page with the returned next_cursor.",
|
|
936
941
|
schema: ListOrgEventsSchema,
|
|
937
942
|
annotations: { title: "List Organization Events", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
938
943
|
untrustedFields: EVENT_UNTRUSTED_FIELDS,
|
|
@@ -948,16 +953,16 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
948
953
|
},
|
|
949
954
|
{
|
|
950
955
|
name: "create_event",
|
|
951
|
-
description: `Create a booking, appointment, meeting, hold, or any scheduled event on a calendar.
|
|
956
|
+
description: `Create a booking, appointment, meeting, hold, or any scheduled event on a calendar. Once created, this event blocks the agent's availability during that time and appears in availability queries. Use status="hold" with hold_expires_at to tentatively reserve a slot that auto-releases on TTL.`,
|
|
952
957
|
schema: CreateEventSchema,
|
|
953
|
-
annotations: { title: "Create Event", readOnlyHint: false, destructiveHint:
|
|
958
|
+
annotations: { title: "Create Event", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
|
|
954
959
|
execute: createExecutor(createEvent)
|
|
955
960
|
},
|
|
956
961
|
{
|
|
957
962
|
name: "update_event",
|
|
958
|
-
description: "Reschedule or edit an event \u2014 change its title, description, start/end times, location, status, reminders, or metadata. Use this to move an appointment to a new time or update its details. Provide only the fields you want to change. Holds cannot be edited
|
|
963
|
+
description: "Reschedule or edit an event \u2014 change its title, description, start/end times, location, status, reminders, or metadata. Use this to move an appointment to a new time or update its details. Provide only the fields you want to change. Holds cannot be edited; confirm or release them instead. External iCal events are read-only. `calendar_id` is optional \u2014 if omitted it is resolved from the event.",
|
|
959
964
|
schema: UpdateEventSchema,
|
|
960
|
-
annotations: { title: "Update Event", readOnlyHint: false, destructiveHint:
|
|
965
|
+
annotations: { title: "Update Event", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
961
966
|
untrustedFields: EVENT_UNTRUSTED_FIELDS,
|
|
962
967
|
execute: createExecutor(updateEvent)
|
|
963
968
|
},
|
|
@@ -973,7 +978,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
973
978
|
name: "confirm_event",
|
|
974
979
|
description: 'Promote a held event to a confirmed booking. The event must currently have status="hold" and its hold_expires_at must not have passed. After confirmation, event.started and event.ended lifecycle webhooks fire at the scheduled times.',
|
|
975
980
|
schema: ConfirmEventSchema,
|
|
976
|
-
annotations: { title: "Confirm Event", readOnlyHint: false, destructiveHint:
|
|
981
|
+
annotations: { title: "Confirm Event", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
977
982
|
untrustedFields: EVENT_UNTRUSTED_FIELDS,
|
|
978
983
|
execute: createExecutor(confirmEvent)
|
|
979
984
|
},
|
|
@@ -989,7 +994,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
989
994
|
name: "create_agent",
|
|
990
995
|
description: "Register your agent (AI assistant, human participant, or resource) with Chronary so it can own calendars, events, and webhooks.",
|
|
991
996
|
schema: CreateAgentSchema,
|
|
992
|
-
annotations: { title: "Create Agent", readOnlyHint: false, destructiveHint:
|
|
997
|
+
annotations: { title: "Create Agent", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
|
|
993
998
|
execute: createExecutor(createAgent)
|
|
994
999
|
},
|
|
995
1000
|
{
|
|
@@ -1010,12 +1015,12 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1010
1015
|
name: "update_agent",
|
|
1011
1016
|
description: "Update an agent's name, description, metadata, or status (active/paused). Setting status on a decommissioned agent restores it and makes its calendars writable again; that is refused with quota_exceeded when the agent, its calendars or their recurring series would put the organization over the plan's agent, calendar or recurring series limit. Requires an Organization key \u2014 Agent keys cannot mutate agents.",
|
|
1012
1017
|
schema: UpdateAgentSchema,
|
|
1013
|
-
annotations: { title: "Update Agent", readOnlyHint: false, destructiveHint:
|
|
1018
|
+
annotations: { title: "Update Agent", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
1014
1019
|
execute: createExecutor(updateAgent)
|
|
1015
1020
|
},
|
|
1016
1021
|
{
|
|
1017
1022
|
name: "delete_agent",
|
|
1018
|
-
description: "Decommission an agent. This marks the agent as decommissioned and revokes all of its Agent keys. Its calendars and events are kept but stop counting toward the plan's calendar limit, and they are read-only (writes return agent_inactive) until the agent is restored
|
|
1023
|
+
description: "Decommission an agent. This marks the agent as decommissioned and revokes all of its Agent keys. Its calendars and events are kept but stop counting toward the plan's calendar limit, and they are read-only (writes return agent_inactive) until the agent is restored by setting its status again (active or paused). Requires an Organization key \u2014 Agent keys cannot delete agents.",
|
|
1019
1024
|
schema: DeleteAgentSchema,
|
|
1020
1025
|
annotations: { title: "Delete Agent", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
1021
1026
|
execute: createExecutor(deleteAgent)
|
|
@@ -1039,7 +1044,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1039
1044
|
name: "create_connection_link",
|
|
1040
1045
|
description: "Request human setup of Google Calendar or Microsoft Outlook for a Chronary calendar. Give setup_url to a human; the agent never receives OAuth credentials, provider calendar names, or event data. When the human finishes, the linked account becomes a Connection, listed under Human calendars in the Chronary console. The secret URL is returned only on first creation. If reused=true and setup_url is null, retain the original URL or cancel this link and create a replacement.",
|
|
1041
1046
|
schema: CreateConnectionLinkSchema,
|
|
1042
|
-
annotations: { title: "Create Human Calendar Setup Link", readOnlyHint: false, destructiveHint:
|
|
1047
|
+
annotations: { title: "Create Human Calendar Setup Link", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
|
|
1043
1048
|
execute: createExecutor(createConnectionLink)
|
|
1044
1049
|
},
|
|
1045
1050
|
{
|
|
@@ -1059,7 +1064,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1059
1064
|
// ── Calendar context ───────────────────────────────────────────
|
|
1060
1065
|
{
|
|
1061
1066
|
name: "get_calendar_context",
|
|
1062
|
-
description: `Get a calendar's temporal context in a single call: the current event (if one is happening now), the next upcoming event, recent past events, a short upcoming window, and the owning agent's status (idle/working/waiting/error). Use this to answer "what is this agent doing right now?" without
|
|
1067
|
+
description: `Get a calendar's temporal context in a single call: the current event (if one is happening now), the next upcoming event, recent past events, a short upcoming window, and the owning agent's status (idle/working/waiting/error). Use this to answer "what is this agent doing right now?" without listing events separately. Recurring series appear as their occurrences (with recurringEventId); when events overlap, the current event is the most recently started.`,
|
|
1063
1068
|
schema: GetCalendarContextSchema,
|
|
1064
1069
|
annotations: { title: "Get Calendar Context", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
1065
1070
|
untrustedFields: EVENT_UNTRUSTED_FIELDS,
|
|
@@ -1070,7 +1075,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1070
1075
|
name: "create_proposal",
|
|
1071
1076
|
description: "Create a scheduling proposal \u2014 send a set of candidate time slots to one or more participant agents so they can accept, decline, or counter-propose. The organizer agent owns the proposal; once every participant responds, the system auto-resolves to the highest-scoring slot (or cancels if all decline). Requires an Organization key and a Developer or Pro plan.",
|
|
1072
1077
|
schema: CreateProposalSchema,
|
|
1073
|
-
annotations: { title: "Create Proposal", readOnlyHint: false, destructiveHint:
|
|
1078
|
+
annotations: { title: "Create Proposal", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
|
|
1074
1079
|
execute: createExecutor(createProposal)
|
|
1075
1080
|
},
|
|
1076
1081
|
{
|
|
@@ -1089,16 +1094,16 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1089
1094
|
},
|
|
1090
1095
|
{
|
|
1091
1096
|
name: "respond_to_proposal",
|
|
1092
|
-
description: 'Submit a response (accept / decline / counter) on behalf of one participant agent to an open proposal. An "accept" requires the slot id from the proposal; a "counter" can suggest alternative slots. When all participants have responded the proposal auto-resolves \u2014 no separate resolve call needed in the normal flow. Requires an Organization key and a Developer or Pro plan.',
|
|
1097
|
+
description: 'Submit a response (accept / decline / counter) on behalf of one participant agent to an open proposal. An "accept" requires the slot id from the proposal; a "counter" can suggest alternative slots. When all participants have responded the proposal auto-resolves \u2014 no separate resolve call needed in the normal flow. The result is the saved response plus auto_resolved (confirmed / cancelled / null) and auto_resolve_error: if the auto-resolve fails, the response is still saved and auto_resolve_error says what to do next (usually: resolve the proposal once the cause is fixed). Do not respond again. Requires an Organization key and a Developer or Pro plan.',
|
|
1093
1098
|
schema: RespondToProposalSchema,
|
|
1094
|
-
annotations: { title: "Respond To Proposal", readOnlyHint: false, destructiveHint:
|
|
1099
|
+
annotations: { title: "Respond To Proposal", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
|
|
1095
1100
|
execute: createExecutor(respondToProposal)
|
|
1096
1101
|
},
|
|
1097
1102
|
{
|
|
1098
1103
|
name: "resolve_proposal",
|
|
1099
1104
|
description: 'Force-resolve an open proposal using responses collected so far. Picks the highest-scoring slot among those accepted by the most participants and creates a confirmed calendar event. If every response was "decline", the proposal is cancelled instead. Use when you want to close out a proposal without waiting for every participant. Requires an Organization key and a Developer or Pro plan.',
|
|
1100
1105
|
schema: ResolveProposalSchema,
|
|
1101
|
-
annotations: { title: "Resolve Proposal", readOnlyHint: false, destructiveHint:
|
|
1106
|
+
annotations: { title: "Resolve Proposal", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
1102
1107
|
execute: createExecutor(resolveProposal)
|
|
1103
1108
|
},
|
|
1104
1109
|
{
|
|
@@ -1113,7 +1118,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1113
1118
|
name: "set_availability_rules",
|
|
1114
1119
|
description: "Set or replace the availability rules on a calendar \u2014 buffer times before/after events and optional per-day working hours. When these rules are set, every availability query on this calendar automatically applies them (busy-block expansion for buffers, masking outside working hours). Upsert: overwrites any existing rules.",
|
|
1115
1120
|
schema: SetAvailabilityRulesSchema,
|
|
1116
|
-
annotations: { title: "Set Availability Rules", readOnlyHint: false, destructiveHint:
|
|
1121
|
+
annotations: { title: "Set Availability Rules", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
1117
1122
|
execute: createExecutor(setAvailabilityRules)
|
|
1118
1123
|
},
|
|
1119
1124
|
{
|
|
@@ -1149,7 +1154,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1149
1154
|
name: "create_webhook",
|
|
1150
1155
|
description: "Create a webhook subscription so the org receives HTTP POST notifications when events occur (e.g. event.created, proposal.confirmed). The signing secret is returned ONCE in this response \u2014 store it to verify the HMAC-SHA256 signature on delivered payloads. Requires an Organization key.",
|
|
1151
1156
|
schema: CreateWebhookSchema,
|
|
1152
|
-
annotations: { title: "Create Webhook", readOnlyHint: false, destructiveHint:
|
|
1157
|
+
annotations: { title: "Create Webhook", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
|
|
1153
1158
|
execute: createExecutor(createWebhook)
|
|
1154
1159
|
},
|
|
1155
1160
|
{
|
|
@@ -1184,16 +1189,16 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1184
1189
|
},
|
|
1185
1190
|
{
|
|
1186
1191
|
name: "send_test_webhook",
|
|
1187
|
-
description: "Send a signed sample payload of one event type to a webhook endpoint, to check that it receives and verifies deliveries. The delivery is marked is_test, carries the X-Chronary-Test: 1 header, makes one attempt, does not count toward the monthly delivery quota and is sent even when the endpoint is paused or disabled. The endpoint must subscribe to the event type.
|
|
1192
|
+
description: "Send a signed sample payload of one event type to a webhook endpoint, to check that it receives and verifies deliveries. The delivery is marked is_test, carries the X-Chronary-Test: 1 header, makes one attempt, does not count toward the monthly delivery quota and is sent even when the endpoint is paused or disabled. The endpoint must subscribe to the event type. The outcome is recorded on the returned delivery_id. Limited to 10 per minute. Requires an Organization key.",
|
|
1188
1193
|
schema: SendTestWebhookSchema,
|
|
1189
|
-
annotations: { title: "Send Test Webhook", readOnlyHint: false, destructiveHint:
|
|
1194
|
+
annotations: { title: "Send Test Webhook", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
|
|
1190
1195
|
execute: createExecutor(sendTestWebhook)
|
|
1191
1196
|
},
|
|
1192
1197
|
{
|
|
1193
1198
|
name: "replay_webhook_delivery",
|
|
1194
|
-
description: "Send a failed or dropped webhook delivery again, as a new delivery with a new delivery_id. The stored payload goes out unchanged (same event id), signed with the endpoint's current secret, with an X-Chronary-Replay-Of header naming the original delivery. Only failed or dropped deliveries that are not test events can be replayed, the endpoint must be active, and the payload must still be stored (30 days). The replay follows the normal retry schedule and counts toward the monthly delivery quota.
|
|
1199
|
+
description: "Send a failed or dropped webhook delivery again, as a new delivery with a new delivery_id. The stored payload goes out unchanged (same event id), signed with the endpoint's current secret, with an X-Chronary-Replay-Of header naming the original delivery. Only failed or dropped deliveries that are not test events can be replayed, the endpoint must be active, and the payload must still be stored (30 days). The replay follows the normal retry schedule and counts toward the monthly delivery quota. The outcome is recorded on the returned delivery_id. Limited to 30 per minute. Requires a Developer or Pro plan and an Organization key.",
|
|
1195
1200
|
schema: ReplayWebhookDeliverySchema,
|
|
1196
|
-
annotations: { title: "Replay Webhook Delivery", readOnlyHint: false, destructiveHint:
|
|
1201
|
+
annotations: { title: "Replay Webhook Delivery", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
|
|
1197
1202
|
execute: createExecutor(replayWebhookDelivery)
|
|
1198
1203
|
},
|
|
1199
1204
|
// ── iCal Subscriptions ─────────────────────────────────────────
|
|
@@ -1215,14 +1220,14 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1215
1220
|
name: "subscribe_ical",
|
|
1216
1221
|
description: "Link an external iCal feed (e.g. a human's Google Calendar) to an agent's calendar so external events appear in availability calculations. The target calendar must be owned by the specified agent \u2014 create the calendar with that agent_id first (org-level calendars without an agent_id cannot host external iCal subscriptions; create a dedicated per-agent calendar for sync targets).",
|
|
1217
1222
|
schema: SubscribeICalSchema,
|
|
1218
|
-
annotations: { title: "Subscribe iCal", readOnlyHint: false, destructiveHint:
|
|
1223
|
+
annotations: { title: "Subscribe iCal", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
|
|
1219
1224
|
execute: createExecutor(subscribeICal)
|
|
1220
1225
|
},
|
|
1221
1226
|
{
|
|
1222
1227
|
name: "update_ical_subscription",
|
|
1223
1228
|
description: "Update an external iCal feed subscription \u2014 change its label or its feed URL. Changing the URL forces a full re-sync on the next poll.",
|
|
1224
1229
|
schema: UpdateICalSubscriptionSchema,
|
|
1225
|
-
annotations: { title: "Update iCal Subscription", readOnlyHint: false, destructiveHint:
|
|
1230
|
+
annotations: { title: "Update iCal Subscription", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
1226
1231
|
execute: createExecutor(updateICalSubscription)
|
|
1227
1232
|
},
|
|
1228
1233
|
{
|
|
@@ -1234,23 +1239,23 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1234
1239
|
},
|
|
1235
1240
|
{
|
|
1236
1241
|
name: "sync_ical_subscription",
|
|
1237
|
-
description: 'Start an immediate fetch of an external iCal feed instead of waiting for the next scheduled poll. Returns {"status":"syncing"} as soon as the fetch has started;
|
|
1242
|
+
description: 'Start an immediate fetch of an external iCal feed instead of waiting for the next scheduled poll. Returns {"status":"syncing"} as soon as the fetch has started; last_synced_at and last_error on the subscription update when the fetch finishes, usually within a few seconds. A paused feed must be resumed first; one manual sync per feed per minute on paid plans, per 15 minutes on Free.',
|
|
1238
1243
|
schema: SyncICalSubscriptionSchema,
|
|
1239
|
-
annotations: { title: "Sync iCal Subscription", readOnlyHint: false, destructiveHint:
|
|
1244
|
+
annotations: { title: "Sync iCal Subscription", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
1240
1245
|
execute: createExecutor(syncICalSubscription)
|
|
1241
1246
|
},
|
|
1242
1247
|
{
|
|
1243
1248
|
name: "pause_ical_subscription",
|
|
1244
1249
|
description: "Pause an external iCal feed subscription: scheduled polls skip it and manual syncs are refused until it is resumed. Busy blocks already imported stay. Pausing a paused feed changes nothing. Returns the subscription.",
|
|
1245
1250
|
schema: PauseICalSubscriptionSchema,
|
|
1246
|
-
annotations: { title: "Pause iCal Subscription", readOnlyHint: false, destructiveHint:
|
|
1251
|
+
annotations: { title: "Pause iCal Subscription", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
1247
1252
|
execute: createExecutor(pauseICalSubscription)
|
|
1248
1253
|
},
|
|
1249
1254
|
{
|
|
1250
1255
|
name: "resume_ical_subscription",
|
|
1251
1256
|
description: "Resume a paused or failing external iCal feed subscription: it returns to scheduled polling and its last_error is cleared. Resuming an active feed changes nothing. Returns the subscription.",
|
|
1252
1257
|
schema: ResumeICalSubscriptionSchema,
|
|
1253
|
-
annotations: { title: "Resume iCal Subscription", readOnlyHint: false, destructiveHint:
|
|
1258
|
+
annotations: { title: "Resume iCal Subscription", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
1254
1259
|
execute: createExecutor(resumeICalSubscription)
|
|
1255
1260
|
},
|
|
1256
1261
|
// ── Scoped keys ────────────────────────────────────────────────
|
|
@@ -1258,7 +1263,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1258
1263
|
name: "create_scoped_key",
|
|
1259
1264
|
description: "Create an Agent key (chr_ak_*) that can only act on behalf of a single agent. Use this to self-provision or rotate per-agent credentials. The plaintext key is returned exactly once in the response \u2014 store it immediately, it cannot be retrieved later. Requires an Organization key.",
|
|
1260
1265
|
schema: CreateScopedKeySchema,
|
|
1261
|
-
annotations: { title: "Create Scoped Key", readOnlyHint: false, destructiveHint:
|
|
1266
|
+
annotations: { title: "Create Scoped Key", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
|
|
1262
1267
|
execute: createExecutor(createScopedKey)
|
|
1263
1268
|
},
|
|
1264
1269
|
{
|
|
@@ -1288,7 +1293,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1288
1293
|
name: "accept_terms",
|
|
1289
1294
|
description: "Re-accept the current Chronary terms of service on behalf of the calling org. Use this when responses carry the Chronary-Terms-Upgrade-Required header \u2014 a material ToS bump otherwise leaves MCP-only agents stuck without a console session. Pass the current tos_version (read it from GET /v1/auth/terms/current). Requires an Organization key (chr_sk_*); Agent keys cannot accept org-wide terms.",
|
|
1290
1295
|
schema: AcceptTermsSchema,
|
|
1291
|
-
annotations: { title: "Accept Terms", readOnlyHint: false, destructiveHint:
|
|
1296
|
+
annotations: { title: "Accept Terms", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
1292
1297
|
execute: createExecutor(acceptTerms)
|
|
1293
1298
|
},
|
|
1294
1299
|
// ── Usage ──────────────────────────────────────────────────────
|
|
@@ -1316,9 +1321,9 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1316
1321
|
},
|
|
1317
1322
|
{
|
|
1318
1323
|
name: "request_upgrade",
|
|
1319
|
-
description: "Ask your human to upgrade this Chronary account to the next plan up
|
|
1324
|
+
description: "Ask your human to upgrade this Chronary account to the next plan up. Returns approval_url \u2014 give it to your human; only a human can pay. If reused=true a request is already pending \u2014 do not call again; check the status of the request at most once a minute. The link opens the Billing page in the Chronary console.",
|
|
1320
1325
|
schema: RequestUpgradeSchema,
|
|
1321
|
-
annotations: { title: "Request Upgrade", readOnlyHint: false, destructiveHint:
|
|
1326
|
+
annotations: { title: "Request Upgrade", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
1322
1327
|
execute: createExecutor(requestUpgrade)
|
|
1323
1328
|
},
|
|
1324
1329
|
{
|
|
@@ -1332,7 +1337,7 @@ var RAW_TOOL_DEFINITIONS = [
|
|
|
1332
1337
|
name: "cancel_upgrade_request",
|
|
1333
1338
|
description: "Withdraw a pending upgrade request (for example, the blocker went away). The approval URL stops working. Fails with upgrade_request_not_pending if the request is already completed, declined, canceled, or expired.",
|
|
1334
1339
|
schema: CancelUpgradeRequestSchema,
|
|
1335
|
-
annotations: { title: "Cancel Upgrade Request", readOnlyHint: false, destructiveHint:
|
|
1340
|
+
annotations: { title: "Cancel Upgrade Request", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
1336
1341
|
execute: createExecutor(cancelUpgradeRequest)
|
|
1337
1342
|
}
|
|
1338
1343
|
];
|