Sume MCP script_run: timeout 5 to 55 seconds, max_paid_calls brake
script_run in the hosted Sume MCP runs JavaScript with sume.call, a 5 to 55 second timeout and call limits, and journals every call and job it started.

script_run executes JavaScript against the Sume tools through sume.call(name, args). timeout_seconds accepts 5 to 55, max_calls bounds total tool calls and max_paid_calls bounds the paid ones. The result carries a journal with calls[] and jobs[], so you can see what ran and which jobs are still going.
Use it when one agent turn would otherwise spend many round trips on a batch, for example listing a catalog and generating a handful of images. Set max_paid_calls low so a loop cannot run away.
Limits
| Control | Value | Effect |
|---|---|---|
| timeout_seconds | 5 to 55 | Script wall time |
| max_calls | You set | Total sume.call count |
| max_paid_calls | You set | Paid calls only |
| journal | calls[] and jobs[] | Audit trail of the run |
Rules still apply
Paid calls inside a script still need idempotency_key. Jobs started in a script may outlive it, so finish with jobs_wait (55 second maximum hold) in a later call.
Sources
Related posts
More in Integrations
- Email on Sume job done: Resend with a job-keyed Idempotency-Key
Verify the Sume webhook with the SDK, then send via Resend keyed sume-<job_id>. Resend keys expire after 24 hours, so keep your own sent table too.
- Tavus MCP server and CLI vs Sume hosted MCP: auth and spend caps
Tavus MCP uses browser OAuth plus a tavus CLI; Sume hosted MCP has read-only OAuth, opt-in write, API keys, idempotency_key, dry_run and max_spend_usd.
- Theia AI MCP oauth block and ~{mcp_} tool syntax with Sume tools
Theia AI can sign in to a remote MCP server with an oauth block and call its tools as ~{mcp_server_tool}. Here is how that maps to Sume's jobs_wait and gates.
- Theia AI remote MCP server: serverUrl and serverAuthToken for Sume
Theia AI's remote MCP config takes serverUrl, serverAuthToken and an optional serverAuthTokenHeader. The entry for Sume's hosted MCP with a Bearer API key.
Written by Sume