Skip to main content

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

string
required
The unique identifier of the stack to add the server to

Request Body

string
required
The unique identifier of the server to add to the stack
boolean
default:"false"
Whether to enable all available tools for this server
array
Array of specific tool IDs to enable. Only used if enable_all_tools is false.

Response

string
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:
  1. Configure credentials: Use the Update Credentials endpoint to add required credentials
  2. Enable/disable tools: Use the Update Server Tools endpoint to modify enabled tools
  3. 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