What Happens When You Deploy?
When you deploy a custom tool withdeployCode, DataGen creates:
- REST API Endpoint - Call your tool from any system via HTTP
- MCP Tool - Use your tool directly in Claude and other MCP clients
- Async Runner - Execute long-running tasks without timeouts
Deploying Your Tool
Via Natural Language
Ask Claude to deploy after you’ve tested your code:Deployment Prompts
Via deployCode Tool
Claude will calldeployCode with your configuration:
Using Your Deployed Tool
As an MCP Tool
Once deployed, your tool appears in DataGen MCP. Ask Claude:As a REST API
Call your tool via HTTP:Via submitCustomToolRun
Run from Claude or other MCP clients:Scheduling
Setting Up a Schedule
Ask Claude to schedule your deployed tool:Scheduling Examples
Daily schedule:Weekly schedule:Custom CRON:
Schedule Options
| Schedule Type | Example | Description |
|---|---|---|
| Hourly | Every hour | 0 * * * * |
| Daily | 9 AM daily | 0 9 * * * |
| Weekly | Monday 8 AM | 0 8 * * 1 |
| Custom | Every 6 hours | 0 */6 * * * |
With Payload
Pass parameters to scheduled runs:Monitoring Runs
Check Run Status
checkRunStatus with the run ID.
Run Statuses
| Status | Description |
|---|---|
| Queued | Waiting to start |
| Running | Currently executing |
| Completed | Finished successfully |
| Failed | Encountered an error |
View Run History
Managing Deployed Tools
Find Your Tools
searchCustomTools:
Get Tool Details
getCustomToolDetails to see:
- API endpoint URL
- Input/output schemas
- Dependencies
- Recent runs
Update a Tool
updateCustomTool to modify:
- Python code
- Input/output schemas
- Dependencies
- Name and description
Integration Patterns
Webhook Trigger
Use the webhook URL to trigger from external systems:Chaining Tools
Call one custom tool from another:Error Handling
What’s Next?
Create Custom Tools
Learn how to write custom tool code
Deploy Agents
Run Claude Code agents on schedule
Connect MCPs
Add more MCP servers
Built-in Tools
Explore pre-built integrations