Deploying a Tool
Deploying a tool means choosing how its runs start. The tool itself stays in superglue, where the runtime resolves credentials, executes each step, records the result, and makes failures available for investigation. You do not need to ship a separate worker, queue, or cron service.
Open a saved tool and select Deploy to configure the same four deployment paths available throughout superglue:
Before you deploy
Section titled “Before you deploy”- Save the tool: Deployment paths execute the saved tool, not an unsaved playground draft.
- Test representative input: Run the tool from the playground and verify its final result and any external writes.
- Check access and credentials: The executing identity needs access to the tool, every referenced system, and the credential selected for each system.
Schedule
Section titled “Schedule”Use a schedule for recurring syncs, reports, migrations, and maintenance work.
- Open Deploy, choose Schedule, and select Add Schedule.
- Choose a preset or enter a five-field cron expression, then select an IANA timezone.
- Add the JSON input passed to every run.
- Under Advanced options, optionally select credentials per system, set a run timeout, call a completion webhook, or start another tool when the run finishes.
- Save the schedule, test it with the configured input, and enable it when ready.
Scheduled runs act as the schedule creator. A credential selected in the schedule is used for that system; systems left unpinned use the creator’s default accessible credential.
The CLI can create the same schedule:
sg schedule create \ --tool customer-sync \ --cron "0 9 * * 1-5" \ --timezone Europe/Berlin \ --payload '{"status":"active"}'See Scheduled Execution for schedule management and advanced behavior.
SDK or REST API
Section titled “SDK or REST API”Use the SDK or REST API when your application controls when a run starts. Create an API key from API Keys in the organization menu and store it in your application’s secret manager.
The cloud API base URL is https://api.superglue.cloud/v1. Enterprise and self-hosted URLs can vary; use the endpoint shown by your deployment or verify it with the superglue agent.
npm install @superglue/client@latestimport { configure, runTool } from "@superglue/client";
configure({ apiKey: "YOUR_SUPERGLUE_API_KEY", baseUrl: "https://api.superglue.cloud/v1",});
await runTool("customer-sync", { inputs: { status: "active" },});curl -X POST "https://api.superglue.cloud/v1/tools/customer-sync/run" \ -H "Authorization: Bearer $SUPERGLUE_API_KEY" \ -H "Content-Type: application/json" \ -d '{"inputs":{"status":"active"}}'sg tool run --tool customer-sync --payload '{"status":"active"}'Runs are synchronous by default. Set options.async to true for long-running work, then use the returned run ID to monitor completion. The SDK/API tab in the Deploy dialog generates TypeScript, Python, and cURL examples for the current tool and input.
See the API overview for authentication and the endpoint reference for the complete request and response contract.
Webhooks
Section titled “Webhooks”Incoming webhooks start a saved tool asynchronously. The POST body becomes the tool input:
POST https://api.superglue.cloud/v1/hooks/{toolId}?token={apiKey}Copy the exact URL from Deploy → Webhooks and add it to the external service. A successful request returns 202 Accepted with a run ID, and the resulting run appears in normal run history with webhook as its source.
The same deployment panel also shows outgoing completion callbacks. Pass an HTTPS URL as options.webhookUrl when starting a run, or configure it on a schedule, and superglue posts the result to that URL when the run finishes. Use tool:{toolId} instead to start another saved tool with the first tool’s output.
See Incoming Webhooks for provider setup, completion callbacks, and tool chaining.
Use MCP when an AI client should discover and run tools directly:
- The default
/mcpendpoint exposes every active saved tool the authenticated identity can access. - A custom MCP server exposes an explicit tool allowlist and can pin credentials for selected systems.
- OAuth lets each person act through their own superglue identity. Creator API key authentication is intended for trusted headless clients that act as the server creator.
The MCP tab in the Deploy dialog provides the default endpoint and client configuration. For a production or shared agent, create a custom server with only the tools it needs.
See Creating an MCP Server for endpoint formats, authentication, RBAC, and credential pinning.
Monitor deployed runs
Section titled “Monitor deployed runs”Every deployment path creates a normal run record. Use Runs to inspect status, duration, source, step failures, and final output. For investigation from the CLI, use sg run list and sg run get <runId> --full.