Add Server to Stack
Add a server from the marketplace to your stack
Overview
Adds a server from the ToolRouter marketplace to an existing stack. You can specify which tools to enable when adding the server, or enable all tools at once.
Endpoint
Authentication
This endpoint requires an API key. Include it in the Authorization header:
Path Parameters
The unique identifier of the stack to add the server to
Request Body
The unique identifier of the server to add to the stack
Whether to enable all available tools for this server
Array of specific tool IDs to enable. Only used if enable_all_tools
is false.
Response
Confirmation message indicating the server was added successfully and how many tools were enabled
Example Request
Add Server with All Tools Enabled
Add Server with Specific Tools
Add Server with No Tools (Configure Later)
Example Responses
All Tools Enabled
Specific Tools Enabled
No Tools Enabled
Workflow
After adding a server to a stack:
- Configure credentials: Use the Update Credentials endpoint to add required credentials
- Enable/disable tools: Use the Update Server Tools endpoint to modify enabled tools
- Test tools: Use the Invoke Tool endpoint to test functionality
Error Responses
Server already exists in stack or invalid parameters
Invalid or missing API key
Stack or server not found
Rate limit exceeded
Server error occurred
Best Practices
- Check server availability: Use the List Servers endpoint to see available servers and their tools
- Plan tool selection: Review tool descriptions and parameters before enabling
- Start with specific tools: Consider enabling only the tools you need rather than all tools
- Configure credentials early: Add required credentials immediately after adding the server