php-sdk/tests/Inspector/Http/snapshots/HttpComplexToolSchemaTest-tools_list.json
Tobias Nyholm ed205ef793
Use SchemaValidator to validate tool input (#203)
* Use SchemaValidator to validate tool input

* add test

* add changelog

* fix cs

* Improve error message

* fix tests

* fix tests

* fix baseline

* update snapshot files

* Remove BC compat while switching to v0.3.0

---------

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>
2026-01-11 21:46:53 +01:00

67 lines
1.7 KiB
JSON

{
"tools": [
{
"name": "schedule_event",
"description": "Schedules a new event.",
"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
},
"sendInvites": {
"type": "boolean",
"description": "send calendar invites to attendees? Defaults to true if attendees are provided",
"default": true
}
},
"required": [
"title",
"date",
"type"
]
}
}
]
}