php-sdk/tests/Inspector/Http/snapshots/HttpDiscoveryUserProfileTest-tools_list.json
落月 2c16b3e084
[Server] Use getDescription to get all descriptions. (#188)
* Remove `getSummary` method and update descriptions in snapshots and code

* Add changelog entry

---------

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>
2026-01-11 22:08:05 +01:00

58 lines
1.3 KiB
JSON

{
"tools": [
{
"name": "calculator",
"description": "Perform basic math operations (add, subtract, multiply, divide)",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number"
},
"b": {
"type": "number"
},
"operation": {
"type": "string",
"default": "add"
}
},
"required": [
"a",
"b"
]
}
},
{
"name": "send_welcome",
"description": "Sends a welcome message to a user.\n\n(This is a placeholder - in a real app, it might queue an email).",
"inputSchema": {
"type": "object",
"properties": {
"userId": {
"type": "string",
"description": "the ID of the user to message"
},
"customMessage": {
"type": [
"null",
"string"
],
"description": "an optional custom message part",
"default": null
}
},
"required": [
"userId"
]
}
},
{
"name": "test_tool_without_params",
"inputSchema": {
"type": "object",
"properties": {}
}
}
]
}