# Tool errors · shared shapes

When a tool refuses a call or fails, it answers with a normal result marked `isError: true` and one plain sentence. This page lists the sentences every tool can give, what each means, and what to do.

Checked 2026-12-02 · https://xale.app/docs/ai/tool-errors-shared-shapes

## The shape

A refused or failed `tools/call` is still a JSON-RPC `result`, not an `error`:

```json
{ "jsonrpc": "2.0", "id": 12, "result": { "content": [{ "type": "text", "text": "Nothing with that id is available in this Xale." }], "isError": true } }
```

The text is the sentence itself, not JSON. Show it or act on it. A failure inside Xale never shows its own error text: only a reference, as “(ref 1a2b3c4d)”, which the person can quote if they report it.

`isError: true` doesn't always mean nothing was saved. Read the sentence before you retry.

## Before the tool runs

| The text says | When | What to do |
| --- | --- | --- |
| “This connection wasn't given permission to …. Connect the app to Xale again, and leave that permission ticked, to use xale_….” | The connection lacks the tool's permission. The sentence names it in the consent page's words. | Tell the person. They connect again with that permission ticked. |
| “Xale's AI connector needs Xale Pro. The connection is kept and works again when Pro is active.” | The person doesn't have Pro. Every tool checks, reads too. | Tell the person. Nothing was done. |
| “Invalid arguments for xale_…: check … against the tool's input schema.” | A value the schema rejects. It names up to five fields, each with its rule, as `field (rule)`, and never the values. | Fix each named field. |
| “Invalid arguments for xale_…: … must be a single id from another Xale tool.” | An id field (`id`, or a name ending in `Id`) that isn't one plain id: a title, a path, a URL. | Send the id exactly as another Xale tool returned it. |
| “This app has made many changes to Xale in the last minute. Wait a minute, then try again.” | More than 30 writes from this connection in a minute. | Wait a minute, then send the same call. |
| “Nothing with that id is available in this Xale.” | The item is missing, in Trash, or in an Area kept away from connected AI. All three read the same. | Read again for a current id. Don't guess which it is. |

## While a write runs

| The text says | What it means | What to do |
| --- | --- | --- |
| A tool's own refusal (on its page, under “When it refuses”) | Refused before anything was written. | Fix the call and send it again. |
| “Xale couldn't record this change, so it wasn't made. Try again shortly.” | Xale couldn't write its record of the change, so it didn't make it. | Wait, then send the same call. |
| “Xale couldn't confirm that this finished (ref …). Check with a read tool before trying again.” | Something failed part-way. The change may have been made. | Read first. Send it again only if it wasn't made. |
| “Xale couldn't confirm that this finished (ref …). Check with a read tool before trying again, and use a new requestId if you do.” | The same, for a tool that takes a `requestId`. | Read first. If it isn't there, send it with a new `requestId`. |

A few tools also pass on a sentence of their own that ends with “(ref …)”: that's uncertain too. Read before you retry. The retry sentences for `requestId` are on [Request ids · safe retries](https://xale.app/docs/ai/request-ids-safe-retries).

## When a read fails

“Xale couldn't complete that. Try again shortly (ref …).” Nothing changed. Try again shortly.

## Protocol errors

These come back as a JSON-RPC `error` (and sometimes an HTTP status), not as a tool result:

| HTTP | Code | Message |
| --- | --- | --- |
| 429 | `-32000` | “Too many requests on this connection. Try again in a minute.” (with `Retry-After: 60`) |
| 413 | `-32600` | “This request is over Xale's 256 KB limit. Save a shorter first part, then add the rest with xale_append_to_note or xale_append_to_list; for a Mindmap, save the main branches first, then add the rest with xale_add_mindmap_nodes.” |
| 400 | `-32600` | “Batches are not supported; send one message per POST.” |
| 400 | `-32600` | “Not a valid JSON-RPC 2.0 message.” |
| 400 | `-32600` | “… is a request and needs an id.” |
| 400 | `-32700` | “Parse error.” |
| 200 | `-32602` | “Unknown tool: …” |
| 200 | `-32601` | “Method not found: …” |
| 503 | `-32000` | “Xale is temporarily unavailable. Try again shortly.” |

The 429 limit is 120 calls a minute per connection, counted before the request is read.

## Related

- For people: [Why can't my AI find Xale?](https://xale.app/help/ai-can-t-find-xale-fixes)
- Tools: [xale_plan_block](https://xale.app/docs/ai/tools/xale_plan_block)
- Tools: [xale_read_note](https://xale.app/docs/ai/tools/xale_read_note)
- Read next: [Request ids · safe retries](https://xale.app/docs/ai/request-ids-safe-retries)
- Read next: [Error codes · what they mean](https://xale.app/docs/ai/error-codes-what-they-mean)
- Read next: [Partial saves · what to tell people](https://xale.app/docs/ai/partial-saves-what-to-tell-people)
- Read next: [Rate limits · and retries](https://xale.app/docs/ai/rate-limits-and-retries)
