file argument when the user attached a file in the chat (pass the attachment, never re-encode it); otherwise an upload_id from create_upload_url for any real file; file_text only for a few rows the user typed into the conversation. If the user has not given any leads yet, ask for them and say they can either paste the numbers or attach their CSV/Excel file. Either way the file needs a phone_number column (and optionally name/other columns as dynamic variables). agent_version_number must be a PUBLISHED version; the batch stays on that version even if the agent is published again while it runs. The batch dials from one of the agent’s outbound numbers: pass phone_number_id when the agent has more than one (list_agent_phone_numbers). Use get_agent or list_agent_versions first to find the right version_number.
Parameters
Complete input schema
Registered output schema
Before you call
- Connect and initialize the MCP client with OAuth or an API key for the intended workspace.
- Provide the required parameters:
title,agent_id,agent_version_number,confirm. - If your OAuth grant covers several workspaces, also pass
organization_idwith the workspace to act in, from List My Organizations. - Provide one file source: a host attachment, a completed upload_id, or supported inline content. The optional file fields are alternatives; omitting all of them does not submit a file. See MCP file uploads.
- Set
confirm: trueonly after the user approves the exact target and action.
Example MCP request
Sendtools/call after your client completes MCP initialization. Replace placeholder values with IDs and inputs from your workspace. For object and array parameters, follow the nested requirements in the parameter description instead of treating an empty value as complete.
structuredContent and a text content block containing the same JSON. Check isError first, then read structuredContent or parse content[0].text. See MCP responses and errors for the full envelope and failure behavior.
Verify the result
Store the returned resource ID and confirm the response is not markedisError. Call Get Campaign Status to read the affected resource. Verify the call, batch, or purchase state before retrying.
Retry safety
This tool can spend wallet balance or start real calls. After a timeout, inspect the relevant resource before retrying so you do not duplicate the action.Related MCP tools
- Get Campaign Status:
get_campaign_status - Get Agent:
get_agent - Clean Batch Call Names:
clean_batch_call_names - Preview Batch Call Leads:
preview_batch_call_leads - Update Batch Call Status:
update_batch_call_status - List Agent Versions:
list_agent_versions - Create Upload URL:
create_upload_url - List Agent Phone Numbers:
list_agent_phone_numbers - List Batch Calls:
list_batch_calls - List Calls In Batch:
list_calls_in_batch