Skip to main content

Code Execution

executeCode

Execute Python code with MCP tool integration in a remote sandbox. Notes: Supports Python 3.12, synchronous code only. Use httpx for HTTP requests (not requests). Use ThreadPoolExecutor for I/O-bound workloads.

Custom Tool Management

createCustomTool

Deploy a Python workflow as a reusable API endpoint. Returns: deployment_uuid on success.

updateCustomTool

Update an existing custom tool. Only provided fields are updated.

getCustomToolDetails

Get full specs, code, input examples, and curl commands for a custom tool.

submitCustomToolRun

Execute a deployed custom tool asynchronously. Returns a run_uuid to monitor with checkRunStatus.

checkRunStatus

Monitor the progress and results of a custom tool run with automatic polling. Provide either run_uuid or custom_tool_uuid.

Tool Discovery & Execution

searchTools

Find tools by functionality, keywords, or provider.

getToolDetails

Get comprehensive documentation for a specific tool.

executeTool

Execute any MCP or default tool by its alias name.

MCP Server Management

addRemoteMcpServer

Connect an external MCP server. Supports template-based (with auto OAuth) or manual URL. Provide either template_id or server_name + server_url.

searchBuiltInServers

Browse pre-configured MCP server templates.

getBuiltInServerDetails

Get full configuration details for a built-in server template.

checkRemoteMcpOauthStatus

Poll for OAuth completion after receiving an auth URL from addRemoteMcpServer.

ReAuthRemoteMcpServer

Reauthenticate an existing MCP server with expired OAuth tokens.

updateRemoteMcpServer

Update an existing MCP server’s URL and credentials.

Utilities

datagen-sdk-doc

Fetch the DataGen Python SDK documentation from GitHub. Returns the README content without images. Parameters: None