-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathard.openapi.yaml
More file actions
371 lines (355 loc) · 10.7 KB
/
Copy pathard.openapi.yaml
File metadata and controls
371 lines (355 loc) · 10.7 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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
openapi: 3.1.0
info:
title: Agentic Resource Discovery Registry API
version: 0.5.0
description: |
Universal federated discovery API specification for AI agents, tools, and capabilities.
Allows LLM orchestrators to semantically search and discover registries for relevant capabilities
and enables registry-to-registry federated query routing.
paths:
/search:
post:
summary: Semantic Search Registry
description: |
Query a registry with natural language to find matching capabilities.
Accepts a shared semantic and structural query object. Supports multi-hop federation.
operationId: searchAgents
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SearchRequest'
responses:
'200':
description: Successful search operation.
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResponse'
'400':
$ref: '#/components/responses/400BadRequest'
'401':
$ref: '#/components/responses/401Unauthorized'
'429':
$ref: '#/components/responses/429TooManyRequests'
'500':
$ref: '#/components/responses/500InternalError'
/explore:
post:
summary: Dynamic Registry Introspection
description: |
Aggregates statistical facets and bucketing over the matched search space.
Returns counts instead of ranked catalog entries.
operationId: exploreRegistry
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ExploreRequest'
responses:
'200':
description: Successful explore operation.
content:
application/json:
schema:
$ref: '#/components/schemas/ExploreResponse'
'400':
$ref: '#/components/responses/400BadRequest'
'401':
$ref: '#/components/responses/401Unauthorized'
'429':
$ref: '#/components/responses/429TooManyRequests'
'501':
description: Dynamic registry exploration is not implemented by this server.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
$ref: '#/components/responses/500InternalError'
/agents:
get:
summary: Browse Catalog Entries
description: |
Deterministic, highly cacheable listing endpoint designed for developer portals.
Relies on strict EBNF database filtering instead of natural language search.
operationId: listAgents
parameters:
- name: filter
in: query
required: false
description: EBNF-like filter expression (e.g., "type = 'application/mcp-server-card+json' AND createdAfter > '2026-01-01'")
schema:
type: string
- name: orderBy
in: query
required: false
description: Field and sorting direction (e.g., "displayName", "updatedAt DESC")
schema:
type: string
- name: pageSize
in: query
required: false
description: Maximum number of entries to return.
schema:
type: integer
default: 20
maximum: 100
- name: pageToken
in: query
required: false
description: Token for pagination.
schema:
type: string
responses:
'200':
description: Successful deterministic list operation.
content:
application/json:
schema:
$ref: '#/components/schemas/ListResponse'
'400':
$ref: '#/components/responses/400BadRequest'
'401':
$ref: '#/components/responses/401Unauthorized'
'429':
$ref: '#/components/responses/429TooManyRequests'
'500':
$ref: '#/components/responses/500InternalError'
components:
schemas:
QueryModel:
type: object
properties:
text:
type: string
description: Natural language description narrows the set by semantic relevance.
example: "find me a weather lookup tool"
filter:
type: object
description: |
Structured constraints. Keys are field paths (can be dot-separated for nested fields).
Values are arrays or scalar values.
additionalProperties:
oneOf:
- type: string
- type: array
items:
type: string
example:
type: ["application/mcp-server-card+json"]
"trustManifest.attestations.type": ["SOC2-Type2"]
additionalProperties: false
SearchQueryModel:
allOf:
- $ref: '#/components/schemas/QueryModel'
- type: object
required:
- text
SearchRequest:
type: object
required:
- query
properties:
query:
$ref: '#/components/schemas/SearchQueryModel'
federation:
type: string
enum: [auto, referrals, none]
default: auto
pageSize:
type: integer
default: 10
description: Maximum number of search results to return.
pageToken:
type: string
description: Pagination token.
additionalProperties: false
ExploreRequest:
type: object
required:
- resultType
properties:
query:
$ref: '#/components/schemas/QueryModel'
resultType:
type: object
required:
- facets
properties:
facets:
type: array
items:
$ref: '#/components/schemas/ExploreFacetRequest'
additionalProperties: false
ExploreFacetRequest:
type: object
required:
- field
properties:
field:
type: string
description: Dot-separated path of the catalogEntry property to aggregate.
example: "type"
limit:
type: integer
default: 20
minCount:
type: integer
default: 1
additionalProperties: false
ExploreResponse:
type: object
required:
- resultType
- facets
properties:
resultType:
type: string
enum: [facets]
facets:
type: object
additionalProperties:
$ref: '#/components/schemas/ExploreFacetResult'
additionalProperties: false
ExploreFacetResult:
type: object
required:
- buckets
properties:
buckets:
type: array
items:
$ref: '#/components/schemas/ExploreFacetBucket'
otherCount:
type: integer
additionalProperties: false
ExploreFacetBucket:
type: object
required:
- value
- count
properties:
value:
type: string
count:
type: integer
additionalProperties: false
SearchResponse:
type: object
required:
- results
properties:
results:
type: array
items:
$ref: '#/components/schemas/SearchResultItem'
referrals:
type: array
description: List of upstream registries recommended to the client. Only returned in 'referrals' federation mode.
items:
$ref: '#/components/schemas/RegistryReferral'
pageToken:
type: string
description: Token for paging subsequent results.
additionalProperties: false
SearchResultItem:
allOf:
- $ref: './ai-catalog.schema.json#/$defs/catalogEntry'
type: object
required:
- score
- source
properties:
score:
type: integer
minimum: 0
maximum: 100
description: "Semantic relevance rating (0 to 100) computed by the registry. Note: This is not a security or trust score."
example: 95
source:
type: string
format: uri
description: The URL endpoint of the registry where this entry was indexed.
example: "https://registry.acme.com/api/v1/"
RegistryReferral:
type: object
required:
- identifier
- displayName
- type
- url
properties:
identifier:
type: string
description: Logical identifier of the referred registry.
example: "urn:air:nlweb.ai:registry:public"
displayName:
type: string
description: Name of the referred registry.
example: "Public Agent Finder"
type:
type: string
enum: [application/ai-registry, application/ai-registry+json]
description: Registry media type identifier.
url:
type: string
format: uri
description: Endpoint URL for the referred registry's search route.
example: "https://finder.nlweb.ai/search"
ListResponse:
type: object
required:
- items
properties:
items:
type: array
items:
$ref: './ai-catalog.schema.json#/$defs/catalogEntry'
total:
type: integer
description: Total count of matching entries in the registry.
pageToken:
type: string
description: Token for paginating subsequent results.
Error:
type: object
required:
- errorCode
- message
properties:
errorCode:
type: string
description: Standard uppercase error classification code.
example: "INVALID_ARGUMENT"
message:
type: string
description: Human-readable description explaining the error.
example: "The filter expression syntax 'type = MCP' is invalid. Did you mean 'type = application/mcp-server-card+json'?"
responses:
400BadRequest:
description: Malformed request payload or invalid syntax.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
401Unauthorized:
description: Credentials missing or rejected.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
429TooManyRequests:
description: Rate limit exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500InternalError:
description: Internal server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'