> ## 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.

# DialNexa MCP Responses And Errors

> Handle DialNexa MCP transport errors, tool failures, confirmation requirements, and safe retries.

DialNexa MCP errors fall into two categories: transport or authentication errors that prevent the MCP request from running, and tool-level errors returned inside a valid MCP response. Check the HTTP result first, then inspect `isError` and the response text.

## Successful MCP tool response

Successful tools return the same JSON object in `structuredContent` and in a JSON-encoded text content block. Array payloads use an `items` property; scalar payloads use `value`:

```json theme={null}
{
  "content": [
    {
      "type": "text",
      "text": "{\"id\":\"agent_abc123\",\"title\":\"Support Agent\"}"
    }
  ],
  "structuredContent": {"id": "agent_abc123", "title": "Support Agent"}
}
```

After checking `isError`, read `structuredContent` or parse `content[0].text` as JSON. Each tool page includes its registered output schema. An empty schema permits any JSON value at that position; it does not promise a fixed object shape. Upload tools can also return host-only `_meta` for the upload interface.

## Tool-level failure

When the MCP request is valid but the DialNexa operation fails, the server returns readable text and sets `isError: true`:

```json theme={null}
{
  "content": [
    {
      "type": "text",
      "text": "Could not get call call_abc123: Call log with ID abc123 not found or is deleted"
    }
  ],
  "isError": true
}
```

Treat the text as the operation-specific error message. Do not assume that every tool failure uses the same JSON shape inside `text`.

## Transport and authentication errors

| Result | Meaning | Recovery |
| - | - | - |
| `401 Unauthorized` | OAuth has not completed, the OAuth token is invalid, or the API key is missing, malformed, revoked, or invalid. | Let an OAuth-capable client follow the `WWW-Authenticate` discovery response, or replace the API key and keep the `Bearer ` prefix. |
| MCP initialization failure | The client did not complete the Streamable HTTP handshake or used an incompatible transport. | Confirm remote Streamable HTTP support and reconnect. |
| Network timeout | The client cannot determine whether the server completed the request. | Use the retry rules below before sending another call. |
| `isError: true` | MCP transport succeeded, but the selected DialNexa tool failed. | Read the text block and correct the tool arguments or resource state. |

## Retry rules by safety level

Each tool reference page shows a safety label beside its title.

| Safety label | Retry guidance |
| - | - |
| Read only | Safe to retry after a transient timeout because the tool does not change workspace data. |
| Changes state | Read the affected resource first. Retry only when the intended change did not happen. |
| Destructive | Verify whether the target still exists or remains connected before retrying. |
| Billable | Check call, batch, or phone-number state before retrying to avoid duplicate spend. |

MCP transport success does not guarantee operation success. Likewise, a client-side timeout does not prove that a state-changing operation failed.

## Confirmation errors

These tools refuse to run unless `confirm: true` is sent: `create_batch_call`, `redact_call`, `delete_agent`, `delete_knowledge_base`, `delete_phone_number`, `delete_campaign`, `delete_organization_folder`, `disconnect_integration`, and `update_batch_call_status` when the action is `cancel`. `create_call` has no `confirm` argument and places the call when invoked, so the client must confirm the number with the user before calling it. Set `confirm: true` only after the user approves the exact target and action in the current conversation.

If a tool rejects a missing confirmation:

1. Restate the resource and effect to the user.
2. Obtain explicit approval.
3. Re-read the target if it could have changed.
4. Call the tool once with `confirm: true`.

Do not cache approval for a different resource or a later unrelated action.

## Common tool failures

| Failure | Likely cause | Recovery |
| - | - | - |
| Resource not found | The ID is wrong, stale, or belongs to another workspace. | Use the matching list tool and pass the prefixed ID exactly as returned. |
| Invalid arguments | A required field, enum, nested object, or resource state is missing. | Compare the request with the tool's parameter table and description. |
| Insufficient wallet balance | A call, batch, or purchase requires more balance. | Recharge the workspace, then verify that the first attempt did not complete before retrying. |
| Account verification required | The workspace has not completed account verification for the requested calling action. | Complete account verification in the DialNexa dashboard before placing outbound calls. |
| Confirmation required | A protected operation did not receive approved `confirm: true`. | Obtain explicit approval for that exact action. |
| Result marked `truncated` | A list tool reached its item cap. These tools take no page argument. | Use the tool's filter where it has one (`lead_ids` on `list_workflow_leads`), or use the dashboard or REST API for the full list. |

## Verify recovery

After correcting an error, use a read-only list or get tool to confirm the intended state. For calls and batches, store returned IDs and inspect their current status instead of inferring success from the absence of another error.

## File Input And Protocol Errors

Send one JSON-RPC message per HTTP request. JSON-RPC arrays return `400` with code `-32600`; send separate requests instead.

For file tools, supply exactly one source: host attachment, `upload_id`, or supported inline text/base64. Optional arguments sent as `null` are treated as omitted. An upload ID must match the workspace, resource, and upload kind and must still be valid. If the file is missing, oversized, expired, or the upload host is blocked, correct that issue before finalization. See [MCP file uploads](https://dialnexa.com/docs/mcp-tools/quickstart.md#mcp-file-uploads).

## Related pages

* [DialNexa MCP quickstart](https://dialnexa.com/docs/mcp-tools/quickstart.md)
* [MCP server overview](https://dialnexa.com/docs/mcp-tools/overview.md)
* [REST API errors](https://dialnexa.com/docs/api-reference/api-fundamentals.md#handle-dialnexa-api-errors)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.