Skip to content

Commit 4ebed7f

Browse files
authored
fix: Errata for 1.0-draft (#5)
* fix: Errata for 1.0-draft * Fix name
1 parent 45b1208 commit 4ebed7f

1 file changed

Lines changed: 43 additions & 20 deletions

File tree

spec/http/1.0/openapi.json

Lines changed: 43 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"openapi": "3.1.0",
33
"info": {
4-
"title": "Open Tool Calling Standard",
4+
"title": "Open eXecution Protocol (OXP) Standard",
55
"version": "1.0.0",
66
"description": "A standard for calling tools (functions or services) in a distributed system.",
77
"license": {
88
"name": "MIT",
99
"url": "https://opensource.org/licenses/MIT"
1010
},
1111
"contact": {
12-
"url": "https://opentoolcalling.org"
12+
"url": "https://openexecprotocol.org"
1313
}
1414
},
1515
"paths": {
@@ -66,14 +66,14 @@
6666
"type": "string",
6767
"format": "uri"
6868
},
69-
"tools": {
69+
"items": {
7070
"type": "array",
7171
"items": {
7272
"$ref": "#/components/schemas/ToolDefinition"
7373
}
7474
}
7575
},
76-
"required": ["tools"]
76+
"required": ["items"]
7777
}
7878
}
7979
}
@@ -222,15 +222,8 @@
222222
},
223223
"input_schema": {
224224
"type": "object",
225-
"properties": {
226-
"parameters": {
227-
"type": "object",
228-
"additionalProperties": true,
229-
"description": "JSON Schema describing the input parameters for the tool. Supports standard JSON Schema validation but excludes $ref and definitions/schemas for simplicity."
230-
}
231-
},
232-
"required": ["parameters"],
233-
"additionalProperties": true
225+
"additionalProperties": true,
226+
"description": "JSON Schema describing the input parameters for the tool. Supports standard JSON Schema validation but excludes $ref and definitions/schemas for simplicity."
234227
},
235228
"output_schema": {
236229
"oneOf": [
@@ -298,13 +291,7 @@
298291
"additionalProperties": true
299292
}
300293
},
301-
"required": [
302-
"id",
303-
"name",
304-
"description",
305-
"input_schema",
306-
"output_schema"
307-
],
294+
"required": ["id", "name", "description", "version"],
308295
"additionalProperties": false
309296
},
310297
"CallToolRequest": {
@@ -430,6 +417,23 @@
430417
"developer_message": {
431418
"type": "string",
432419
"description": "An internal message that will be logged but will not be shown to the user or the AI model"
420+
},
421+
"missing_requirements": {
422+
"type": "object",
423+
"description": "A map of missing requirements.",
424+
"properties": {
425+
"authorization": {
426+
"type": "array",
427+
"description": "A list of authorization challenges that must be completed before the tool can be called.",
428+
"items": {
429+
"$ref": "#/components/schemas/ToolAuthorizationChallenge"
430+
}
431+
},
432+
"user_id": {
433+
"type": "boolean",
434+
"description": "Whether the tool requires a user ID."
435+
}
436+
}
433437
}
434438
},
435439
"required": ["message"],
@@ -454,6 +458,25 @@
454458
"required": ["message"],
455459
"additionalProperties": true
456460
},
461+
"ToolAuthorizationChallenge": {
462+
"type": "object",
463+
"properties": {
464+
"id": {
465+
"type": "string",
466+
"description": "The unique identifier for the authorization challenge."
467+
},
468+
"url": {
469+
"type": "string",
470+
"description": "The URL the user must visit to complete the authorization challenge."
471+
},
472+
"check_url": {
473+
"type": "string",
474+
"description": "The URL to check the status of the authorization challenge."
475+
}
476+
},
477+
"required": ["id", "url"],
478+
"additionalProperties": false
479+
},
457480
"ToolError": {
458481
"type": "object",
459482
"description": "An error that occurred inside the tool function.",

0 commit comments

Comments
 (0)