Skip to content

Commit 7b6b85a

Browse files
committed
Updated description for /tools endpoint
1 parent ffe1482 commit 7b6b85a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/app/endpoints/tools.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,16 @@ async def tools_endpoint_handler( # pylint: disable=too-many-locals,too-many-st
119119
- request: The incoming HTTP request (used by middleware).
120120
- auth: Authentication tuple from the auth dependency (used by middleware).
121121
- mcp_headers: Headers that should be passed to MCP servers.
122+
122123
### Raises:
123-
- HTTPException: If unable to connect to the Llama Stack server or if tool
124-
retrieval fails for any reason.
124+
- HTTPException: with status status 401 for unauthorized access.
125+
- HTTPException: with status status 403 if permission is denied.
126+
- HTTPException: with status status 422 if mcp_headers parameter is
127+
improper.
128+
- HTTPException: with status 500 and a detail object containing `response`
129+
and `cause` when service configuration is wrong or incomplete.
130+
- HTTPException: with status 503 and a detail object containing `response`
131+
and `cause` when unable to connect to Llama Stack.
125132
126133
### Returns:
127134
- ToolsResponse: An object containing the consolidated list of available

0 commit comments

Comments
 (0)