forked from modelcontextprotocol/php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpSchemaShowcaseTest-tools_list.json
More file actions
284 lines (284 loc) · 7.6 KB
/
HttpSchemaShowcaseTest-tools_list.json
File metadata and controls
284 lines (284 loc) · 7.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
{
"tools": [
{
"name": "format_text",
"description": "Formats text with validation constraints. Text must be 5-100 characters and contain only letters, numbers, spaces, and basic punctuation.",
"inputSchema": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The text to format",
"minLength": 5,
"maxLength": 100,
"pattern": "^[a-zA-Z0-9\\s\\.,!?\\-]+$"
},
"format": {
"type": "string",
"default": "sentence",
"description": "Format style",
"enum": [
"uppercase",
"lowercase",
"title",
"sentence"
]
}
},
"required": [
"text"
]
}
},
{
"name": "calculate_range",
"description": "Performs mathematical operations with numeric constraints.\n\nDemonstrates: METHOD-LEVEL Schema",
"inputSchema": {
"type": "object",
"properties": {
"first": {
"type": "number",
"description": "First number (must be between 0 and 1000)",
"minimum": 0,
"maximum": 1000
},
"second": {
"type": "number",
"description": "Second number (must be between 0 and 1000)",
"minimum": 0,
"maximum": 1000
},
"operation": {
"type": "string",
"description": "Operation to perform",
"enum": [
"add",
"subtract",
"multiply",
"divide",
"power"
]
},
"precision": {
"type": "integer",
"default": 2,
"description": "Decimal precision (must be multiple of 2, between 0-10)",
"minimum": 0,
"maximum": 10,
"multipleOf": 2
}
},
"required": [
"first",
"second",
"operation"
]
}
},
{
"name": "validate_profile",
"description": "Validates and processes user profile data with strict schema requirements.",
"inputSchema": {
"type": "object",
"properties": {
"profile": {
"type": "object",
"description": "User profile information",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 50,
"description": "Full name"
},
"email": {
"type": "string",
"format": "email",
"description": "Valid email address"
},
"age": {
"type": "integer",
"minimum": 13,
"maximum": 120,
"description": "Age in years"
},
"role": {
"type": "string",
"enum": [
"user",
"admin",
"moderator",
"guest"
],
"description": "User role"
},
"preferences": {
"type": "object",
"properties": {
"notifications": {
"type": "boolean"
},
"theme": {
"type": "string",
"enum": [
"light",
"dark",
"auto"
]
}
},
"additionalProperties": false
}
},
"required": [
"name",
"email",
"age"
],
"additionalProperties": true
}
},
"required": [
"profile"
]
}
},
{
"name": "manage_list",
"description": "Manages a list of items with size and uniqueness constraints.",
"inputSchema": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 30
},
"description": "List of items to manage (2-10 unique strings)",
"minItems": 2,
"maxItems": 10,
"uniqueItems": true
},
"action": {
"type": "string",
"default": "sort",
"description": "Action to perform on the list",
"enum": [
"sort",
"reverse",
"shuffle",
"deduplicate",
"filter_short",
"filter_long"
]
}
},
"required": [
"items"
]
}
},
{
"name": "generate_config",
"description": "Generates configuration with format-validated inputs.",
"inputSchema": {
"type": "object",
"properties": {
"appName": {
"type": "string",
"description": "Application name (alphanumeric with hyphens)",
"minLength": 3,
"maxLength": 20,
"pattern": "^[a-zA-Z0-9\\-]+$"
},
"baseUrl": {
"type": "string",
"description": "Valid URL for the application",
"format": "uri"
},
"environment": {
"type": "string",
"default": "development",
"description": "Environment type",
"enum": [
"development",
"staging",
"production"
]
},
"debug": {
"type": "boolean",
"default": true,
"description": "Enable debug mode"
},
"port": {
"type": "integer",
"default": 8080,
"description": "Port number (1024-65535)",
"minimum": 1024,
"maximum": 65535
}
},
"required": [
"appName",
"baseUrl"
]
}
},
{
"name": "schedule_event",
"description": "Schedules an event with time validation and constraints.",
"inputSchema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Event title (3-50 characters)",
"minLength": 3,
"maxLength": 50
},
"startTime": {
"type": "string",
"description": "Event start time in ISO 8601 format",
"format": "date-time"
},
"durationHours": {
"type": "number",
"description": "Duration in hours (minimum 0.5, maximum 24)",
"minimum": 0.5,
"maximum": 24,
"multipleOf": 0.5
},
"priority": {
"type": "string",
"default": "medium",
"description": "Event priority level",
"enum": [
"low",
"medium",
"high",
"urgent"
]
},
"attendees": {
"type": "array",
"default": [],
"items": {
"type": "string",
"format": "email"
},
"description": "List of attendee email addresses",
"maxItems": 20
}
},
"required": [
"title",
"startTime",
"durationHours"
]
}
}
]
}