ETLMCPData Conveyance Works
Log in Start free
Docs

MCP tool error messages

What each one-sentence error from an etlmcp MCP tool means, which tool returns it, and what you or your agent should change before calling again.

When an etlmcp MCP tool cannot do what was asked, it does not throw a protocol error. It returns a normal tool result with isError set to true, and the result's only text is a small JSON object with one error field holding one plain sentence, such as {"error": "run not found"}. Your agent can read the sentence, tell you what went wrong and, in most cases, fix the call itself. The tables below give each sentence, its cause and what to change.

How an error result looks

A successful call carries its data twice: as JSON text and as structured content that matches the tool's output schema. An error result carries the text block only, with no structured content. Either way the response is a JSON-RPC result, not a JSON-RPC error.

The MCP specification describes two ways a tool can fail: a JSON-RPC protocol error, or a tool result flagged with isError. It lists invalid arguments among protocol errors, but etlmcp reports them as tool results instead, so that the model sees the reason and can correct the call. The one case etlmcp's own handler answers with a protocol error is a tool name the server does not have, which gets JSON-RPC code -32602 and the message "Unknown tool:" followed by the name.

Refusals before a tool runs, such as a missing key or too many requests, are HTTP errors and are covered in Using an API key with the MCP server. If a call ever reaches a tool without an authenticated caller, the result is not authenticated.

Errors any tool can return

Error Cause What to do
invalid arguments: {…} The arguments break the tool's input schema: a wrong type, a value out of range, a missing required argument or an argument the tool does not take. Read the rest of the sentence and fix that argument.
arguments must be plain text A text argument contains a NUL character or broken Unicode (an unpaired surrogate), which the database cannot store. Send the value again as ordinary text, without hidden control characters.
{…} not found The id names no pipeline, run or source in the workspace the credential acts in. Take a pipeline id from list_pipelines, a source id from list_sources, and a run id from the result of run_pipeline.
internal error Something unexpected failed on etlmcp's side. The details are logged on the server, never sent to the client. Try again later. If it repeats, report the tool and the time.

The invalid arguments sentence names the argument when the problem is inside one, and leaves it out when the problem is with the arguments as a whole. For query_data, a limit above 500 comes back as invalid arguments: limit: followed by the validator's own wording, and a second entry in fields that is not a string is reported against fields.1, counting from zero. A missing pipeline_id, or an argument the tool does not know, is reported without a name in front.

The not-found sentence starts with the kind of object: pipeline not found from run_pipeline, run not found from get_run, and source not found from query_data when its source_id does not match. An id from another workspace gets the same sentence as one that does not exist, so a key made for one workspace cannot see, or confirm the existence of, anything in another.

Errors from run_pipeline

run_pipeline makes the same checks as the "Run now" button in the dashboard, and returns each refusal as its own sentence.

Error Cause What to do
this credential cannot start runs; create a key with the run scope The API key or OAuth access token does not carry the run scope. Create a key with the run scope, or ask the agent to only read.
a sync is already running for this pipeline; check it with get_run The pipeline already has a run queued or running. The database allows only one at a time. Follow the existing run with get_run instead of starting another.
this pipeline is paused by the plan's limits etlmcp switched the pipeline off when your organization's plan was lowered. Switch it back on in the dashboard. That is refused if it would take you past the plan's allowances.
this pipeline's source must be reconnected first The ad platform revoked or expired etlmcp's access. Reconnect the source in the app. An agent cannot do this.
this pipeline's source is no longer accessible The ad account can no longer be reached with the connection. Check the account on the sources page.

The dates you pass are checked next:

  • give both start and end, or neither for the trailing window: send both dates for a backfill, or none to re-pull the usual trailing window.
  • start must be a date like 2026-11-30 (or end): the value has the right shape but is not a real day, such as the 30th of February. query_data checks its dates the same way.
  • start must not be after end and end must not be in the future: swap or shorten the range.
  • a sync can cover at most 366 days: split a longer backfill into several runs.
  • the Free plan keeps 30 days of history: the start is older than your plan's history. The sentence names your plan and its number of days; see the plans.
  • {…} only provides data from {…}, with the platform's name and a date: the whole range ends before the oldest day that platform still serves. Move the range later. A range that only partly reaches back that far is accepted, and the run starts from the oldest day served.

Two refusals come from the plan's limits on runs started by hand. On Free, 10 syncs are already queued or running: wait for one means your organization already has that many manual runs in progress; scheduled syncs do not count toward it. A pipeline that is switched off can be run by hand only where switching it on would fit the plan; otherwise the sentence reads the {…} plan allows {…}: pause another pipeline first, naming the plan and the allowance it would exceed. Where the plan limits how many workspaces may run pipelines, such a run can also be refused with the {…} plan runs pipelines in {…}; pause the pipelines in another workspace first.

Errors from query_data

Besides the shared errors, query_data refuses start must not be after end, and unknown field: followed by the name, when an entry in fields is not one of the standard columns, extra, or an extra. field. A date that is not a real day gets the same must be a date like sentence as run_pipeline. Run it once without fields to see which columns exist. A result that is cut short is not an error: it comes back with truncated set to true, as the query_data reference describes.

Reading errors in your own client

Check isError on every tool result, not the HTTP status, then parse the text as JSON and read error. Pass the sentence to the person using the agent when the fix is outside the agent's reach (a reconnection, a new key, a paused pipeline), and let the agent retry by itself when the fix is in its own arguments. For what a run's status means once it has started, see run statuses.

Related

Sources

  1. Tools — modelcontextprotocol.io, checked