Array tool parameters without an inferable element type generated `{"type":"array"}` with no `items`, which strict MCP clients (VS Code / Copilot) reject. Always emit `items` (`{}` when the element type is unknown) and recover the element type for nullable typed arrays such as `string[]|null`.
Fixes #151
70 lines
1.8 KiB
JSON
70 lines
1.8 KiB
JSON
{
|
|
"tools": [
|
|
{
|
|
"name": "schedule_event",
|
|
"description": "Schedules a new event.\n\nThe inputSchema for this tool will reflect all parameter types and defaults.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string",
|
|
"description": "the title of the event"
|
|
},
|
|
"date": {
|
|
"type": "string",
|
|
"description": "the date of the event (YYYY-MM-DD)"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"description": "the type of event",
|
|
"enum": [
|
|
"meeting",
|
|
"reminder",
|
|
"call",
|
|
"other"
|
|
]
|
|
},
|
|
"time": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
],
|
|
"description": "the time of the event (HH:MM), optional",
|
|
"default": null
|
|
},
|
|
"priority": {
|
|
"type": "string",
|
|
"description": "The priority of the event. Defaults to Normal.",
|
|
"default": "normal",
|
|
"enum": [
|
|
"low",
|
|
"normal",
|
|
"high"
|
|
]
|
|
},
|
|
"attendees": {
|
|
"type": [
|
|
"array",
|
|
"null"
|
|
],
|
|
"description": "an optional list of attendee email addresses",
|
|
"default": null,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"sendInvites": {
|
|
"type": "boolean",
|
|
"description": "send calendar invites to attendees? Defaults to true if attendees are provided",
|
|
"default": true
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"date",
|
|
"type"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|