Playground Endpoints
Discover tools and invoke them programmatically via the Tool Playground API.
Playground Endpoints
Base path: /api/v1/servers/\{id\}/tools
GET /servers/{id}/tools
List tools available on the specified server. Results are cached in Redis for 5 minutes.
Requires L1+ (read access).
Response:
POST /servers/{id}/tools/invoke
Invoke a tool on the specified server. Logged as a tool call with caller_agent = "mcphub-playground".
Requires admin or owner role.
Request:
Response:
DELETE /servers/{id}/tools/cache
Invalidate the tool list cache for this server. Forces the next GET /tools call to re-fetch from the server.
Requires admin or owner role.