{"openapi":"3.0.3","info":{"title":"🛍️ catalog","description":"Semantic/keyword search over every registered instance's own live tool catalog, so an agent can find which service/tool handles a given task without already knowing the fleet's layout. Split out of service-registry so this service's own local ML embedding dependency stays isolated from the core instance registry.","x-guidance":"Semantic/keyword search over every registered instance's own live tool catalog, so an agent can find which service/tool handles a given task without already knowing the fleet's layout. Split out of service-registry so this service's own local ML embedding dependency stays isolated from the core instance registry.","version":"1.0.0","contact":{"email":"contact@17711.xyz"}},"paths":{"/v1/catalog/find_services_by_capability":{"post":{"operationId":"catalog_find_services_by_capability","summary":"Ranks registered services/tools by relevance to a free-text query","description":"Finds which registered service/tool can handle a given task, ranked by semantic similarity between a free-text `query` and every physically-registered instance's own live tool descriptions (read from each instance's own `/openapi.json`) -- falls back to keyword overlap when no local embedding model is available. This is the read side of fleet-wide service discovery; the instance list itself is owned by `service-registry` (see `service_registry_register_instance`).","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"top_k":{"default":5,"type":"integer","minimum":0}},"required":["query"]},"example":{"query":"string","top_k":0}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}}},"required":["results"]},"example":{"results":[{"service_name":"string","tool_name":"string","description":"string","route":"string","method":"string","host":"string","port":0,"score":0,"price_usdc":"string"}]}}}},"default":{"description":"Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.","content":{"application/json":{"schema":{"type":"object","description":"ErrorEnvelope"}}}}}}},"/v1/catalog/search":{"get":{"operationId":"catalog_search","summary":"Ranks registered services/tools by relevance to a free-text query (public GET)","description":"Public, curl/browser-friendly sibling of `catalog_find_services_by_capability`: same semantic-similarity ranking (falling back to keyword overlap when no local embedding model is available), reachable via a plain `?q=` query string instead of a JSON body, with an optional `category` filter. Not exposed as an MCP tool -- agents should use `catalog_find_services_by_capability` instead, to avoid two near-identical discovery tools.","security":[],"parameters":[{"name":"category","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"limit","in":"query","required":false,"schema":{"default":5,"type":"integer","minimum":0}},{"name":"q","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/CatalogSearchResult"}}},"required":["results"]},"example":{"results":[{"service_name":"string","category":"string","tool_name":"string","description":"string","route":"string","method":"string","host":"string","port":0,"score":0,"price_usdc":"string"}]}}}},"default":{"description":"Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.","content":{"application/json":{"schema":{"type":"object","description":"ErrorEnvelope"}}}}}}},"/v1/catalog/category":{"get":{"operationId":"catalog_category","summary":"Lists every registration in one category, paginated (public GET)","description":"Browse-by-category: every physically-registered instance tagged with the exact category `q`, unranked, paginated via `limit`/`offset`. Complements `catalog_search`'s ranked free-text search -- useful to browse the whole catalog a category at a time as it grows, without ever needing to list everything at once. Only reads the raw registration list (via `service-registry`'s own internal tool); does not poll each instance's own tool catalog, so it stays cheap regardless of registry size.","security":[],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":0}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0}},{"name":"q","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/CatalogCategoryEntry"}},"total_count":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0}},"required":["entries","total_count","limit","offset"]},"example":{"entries":[{"name":"string","host":"string","port":0,"category":"string","description":"string","registered_at":0}],"total_count":0,"limit":0,"offset":0}}}},"default":{"description":"Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.","content":{"application/json":{"schema":{"type":"object","description":"ErrorEnvelope"}}}}}}}},"servers":[{"url":"/registry/catalog"}],"components":{"schemas":{"SearchResult":{"type":"object","properties":{"service_name":{"type":"string"},"tool_name":{"type":"string"},"description":{"type":"string"},"route":{"type":"string"},"method":{"type":"string"},"host":{"type":"string"},"port":{"type":"integer","minimum":0,"maximum":65535},"score":{"type":"number"},"price_usdc":{"type":"string"}},"required":["service_name","tool_name","description","route","method","host","port","score","price_usdc"]},"CatalogSearchResult":{"type":"object","properties":{"service_name":{"type":"string"},"category":{"type":"string"},"tool_name":{"type":"string"},"description":{"type":"string"},"route":{"type":"string"},"method":{"type":"string"},"host":{"type":"string"},"port":{"type":"integer","minimum":0,"maximum":65535},"score":{"type":"number"},"price_usdc":{"type":"string"}},"required":["service_name","category","tool_name","description","route","method","host","port","score","price_usdc"]},"CatalogCategoryEntry":{"type":"object","properties":{"name":{"type":"string"},"host":{"type":"string"},"port":{"type":"integer","minimum":0,"maximum":65535},"category":{"type":"string"},"description":{"type":"string"},"registered_at":{"type":"integer"}},"required":["name","host","port","category","description","registered_at"]}}}}