Tools
Create tool
Create a new tool that agents can use to extend their capabilities.
POST
Create a tool to extend an agent’s capabilities. Supported tool types include file search, web search, code interpreter, custom tools, agent as tool, and MCP connector. For an overview of all tool types and how they work, see Tools.
MCP connector
To create an MCP connector tool, settype to mcp_connector and provide the server URL in config.URL. Optionally include config.CLIENT_ID and config.CLIENT_SECRET if your MCP server requires OAuth without dynamic client registration.
If an OAuth flow is required, the tool is created with a status of pending_authorization. Open the AUTHORIZATION_URL from the response in a browser and complete the flow. Once authorized, the tool status changes to active and it can be linked to an agent. If you don’t complete the flow within one hour, the OAuth window expires and the tool moves to failed status. To use it again, delete it and create a new one.
For servers that require no authentication, the tool is created with active status and can be linked to an agent immediately.
For a full walkthrough including SDK examples, see MCP connector.
Agent as tool
To create an agent-as-tool, settype to agent_as_tool and provide the sub-agent’s ID in config.agent_id. The sub-agent must already exist before creating the tool.
Each agent can only have one agent-as-tool. If an agent-as-tool already exists for the provided agent_id, the request returns an error.
Errors
"Tool already exists: <tool-name>"— A tool with this name already exists. Tool names must be unique per user."Tool already exists for given agent: <agent-id>"— An agent-as-tool already exists for this agent. Each agent can only have one.
Authorizations
Seekr API Key without 'Bearer' Prefix
Body
application/json
Response
Successful Response
- FileSearchResponse
- RunPythonResponse
- WebSearchResponse
- AgentAsToolResponse
- MCPConnectorToolResponse
Available options:
Active, Inactive, Deprecated, Pending_authorization, Failed Allowed value:
"file_search"Last modified on June 18, 2026