> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Change Batch Call Phone Number

> Use the update_batch_call_phone_number MCP tool on the DialNexa remote MCP server.

<span data-api-safety-label="changes-state"><Badge color="yellow" size="sm" shape="pill">Changes state - verify before retry</Badge></span>

Switches the number a batch dials from to another of its agent's outbound numbers (list\_agent\_phone\_numbers). Allowed while the batch is draft, scheduled or paused. A running batch must be paused first with update\_batch\_call\_status, and a paused batch must have no call still in progress. Calls not yet dialled move to the new number.

## Parameters

| Name | Type | Required | Description |
| - | - | - | - |
| `batch_id` | `string` | Yes | The batch ID, e.g. batch\_abc123 |
| `phone_number_id` | `string` | Yes | One of the agent's outbound numbers, e.g. phn\_abc123 |

## Complete input schema

```json theme={null}
{
  "type": "object",
  "properties": {
    "batch_id": {
      "type": "string",
      "description": "The batch ID, e.g. batch_abc123"
    },
    "phone_number_id": {
      "type": "string",
      "description": "One of the agent's outbound numbers, e.g. phn_abc123"
    }
  },
  "required": [
    "batch_id",
    "phone_number_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
```

## Registered output schema

```json theme={null}
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Whether the number was changed"
    },
    "message": {
      "type": "string",
      "description": "What happened"
    },
    "campaign": {
      "description": "The batch after the change, with organization_phone_number_id"
    }
  },
  "required": [
    "success",
    "message"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
```

## Before you call

* Connect and initialize the MCP client with OAuth or an API key for the intended workspace.
* Provide the required parameters: `batch_id`, `phone_number_id`.

## Example MCP request

Send `tools/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.

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_batch_call_phone_number",
    "arguments": {
      "batch_id": "batch_abc123",
      "phone_number_id": "phn_abc123"
    }
  }
}
```

Successful results include `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](/docs/mcp-tools/errors) for the full envelope and failure behavior.

## Verify the result

Confirm the response is not marked `isError`. Call [List Agent Phone Numbers](/docs/mcp-tools/phone-numbers/list-agent-phone-numbers) to read the affected resource. Verify that the intended state is visible before making another change.

## Retry safety

This tool changes workspace state. After a timeout, read the affected resource before retrying so you do not create duplicate or conflicting changes.

## Related MCP tools

* [Update Batch Call Status](/docs/mcp-tools/batch-calls/update-batch-call-status): `update_batch_call_status`
* [List Agent Phone Numbers](/docs/mcp-tools/phone-numbers/list-agent-phone-numbers): `list_agent_phone_numbers`
* [List Batch Calls](/docs/mcp-tools/batch-calls/list-batch-calls): `list_batch_calls`
* [List Calls In Batch](/docs/mcp-tools/batch-calls/list-calls-in-batch): `list_calls_in_batch`

## Related guides

* [Connect to the DialNexa MCP server](/docs/mcp-tools/overview)
* [Batch Calls MCP tools](/docs/mcp-tools/batch-calls/overview)
* [MCP responses and errors](/docs/mcp-tools/errors)
