Overview
Tool Sources define the external tools and APIs available for task execution in Executor. The Tool Sources API manages MCP servers, OpenAPI specifications, and GraphQL endpoints that provide tools to your workspaces.Functions
upsertToolSource
Creates or updates a tool source. This is an internal mutation used by the system.Unique tool source identifier. If not provided, a new ID will be generated with format
src_{uuid}.Workspace this tool source belongs to
Scope of the tool source (default:
"workspace"). Organization-scoped sources are available to all workspaces in the organization.Display name for the tool source. Must be unique within the scope.
Type of tool source
Configuration object for the tool source. Structure varies by type:MCP Configuration:
url(string): MCP server URLauth(object, optional): Authentication configuration
spec(string | object): OpenAPI specification URL or inline specauth(object, optional): Authentication configuration
endpoint(string): GraphQL endpoint URLauth(object, optional): Authentication configuration
Whether the tool source is enabled (default:
true)Tool source identifier
Scope of the tool source
Organization ID (always set)
Workspace ID (set for workspace-scoped sources)
Tool source display name
Tool source type
Configuration schema version
Normalized configuration object
Hash of the specification for change detection
Fingerprint of the auth configuration
Whether the source is enabled
Unix timestamp of creation
Unix timestamp of last update
listToolSources
Lists all tool sources available to a workspace, including both workspace-scoped and organization-scoped sources.Workspace to list tool sources for
- All workspace-scoped sources for the workspace
- All organization-scoped sources for the workspace’s organization
deleteToolSource
Deletes a tool source and all associated credentials.Workspace context for authorization
Tool source identifier to delete
true if the source was deleted, false if not found or access denied.
Notes:
- Deleting a source also deletes all credential bindings associated with it
- Organization-scoped sources can be deleted from any workspace in the organization
- After deletion, the tool inventory is automatically rebuilt
Tool Source Types
MCP (Model Context Protocol)
MCP servers provide structured tool interfaces for AI agents.OpenAPI
OpenAPI specifications expose REST APIs as tools.GraphQL
GraphQL endpoints provide queryable data sources.Authentication Configuration
Tool sources support various authentication methods:Bearer Token
API Key
Basic Authentication
No Authentication
Mixed Authentication
For sources that support multiple auth methods:Scope Types
Workspace Scope
Workspace-scoped sources are only available within a single workspace.Organization Scope
Organization-scoped sources are available to all workspaces in the organization.Tool Inventory Rebuild
After upserting or deleting a tool source, the system automatically rebuilds the tool inventory:- Fetches updated tool definitions from the source
- Updates available tool paths and signatures
- Re-evaluates access policies
- Notifies connected clients of changes
Related Types
ToolSourceType:"mcp"|"openapi"|"graphql"ToolSourceScopeType:"organization"|"workspace"SourceAuthType:"none"|"bearer"|"apiKey"|"basic"|"mixed"CredentialScope:"account"|"organization"|"workspace"