Your agent runs the integration. You keep the yes.

Six jobs an AI agent can do on EchoRelay over MCP, the protocol agents use to call tools. Each recipe shows the prompt, the tool calls, what comes back, and where you approve the change.

reads
Looks and changes nothing.
adds
Adds something new and replaces nothing.
overwrites
Replaces or removes something. Your MCP client can ask you first.
Your MCP client mcp.echorelay.dev
  1. you

    Anything stuck overnight?

  2. list_dlq reads

    Thirteen entries. Twelve to the warehouse between 02:10 and 02:40, retries_exhausted on a 503. One target_rejected with a 422.

  3. get_dlq_entry reads

    Reads the rejected one by requestId, with the payload as it was attempted and its credentials masked.

  4. retry_dlq_entry adds

    Sends the twelve again, one call each. A retry is charged the credits its original delivery was billed.

  5. discard_dlq_entry overwrites

    Deletes the rejected entry for good, once you allow it.

  6. agent

    Twelve are back in the queue. The thirteenth would be refused the same way, so I would discard it. Allow?

  7. Allow discard_dlq_entry?

    The tool is marked destructive, so your client can stop and ask you.

One recipe, played back. The tool names are real; the data is an example.

Six jobs, from the prompt to the yes.

Hand your agent the prompt, or one like it. Every tool below is one it can call today; the data is an example.

Build from samples

You have one example of what arrives and the API it has to reach. Nobody wants to write the mapping.

Where you say yes

Publishing replaces what is live, so publish_line_draft is marked destructive and your MCP client can ask before it runs. Or leave the draft and publish it yourself in the panel.

You

Here is a sample order from our shop and the warehouse API’s OpenAPI file. Send every new order to the warehouse.

  1. generate_line_draft adds

    Drafts an endpoint on line v1 and maps each warehouse field to the order field of the same name. gift_message has no match in the sample, so it is listed as unmapped, not guessed.

  2. preview_line_draft reads

    Shows the draft. Nothing is published.

  3. dry_run_endpoint reads

    Runs the sample through the mapping and returns the body it builds for the warehouse. Nothing is sent.

  4. config_diff reads

    One endpoint added on v1, with one target.

  5. publish_line_draft overwrites

    Puts the draft live, once you allow it.

Agent

Ready to publish. One question first: should gift_message stay empty, or come from another field in the order?

Debug a failed delivery

An order reached Slack and never reached the warehouse. Someone has to find out why before the customer does.

Where you say yes

Nothing to approve. Every call here only reads, so a token with the read scope is enough, and that token cannot change anything.

You

Order 4411 showed up in Slack but not in the warehouse. What happened?

  1. list_requests reads

    Narrows the log to requests from the time of order 4411 where a target failed, and finds its requestId.

  2. get_request reads

    Two delivery attempts. Slack: success. Warehouse: permanent_failure.

  3. get_receipts reads

    The warehouse receipt is failed, and its terminalError is a 422: sku is required.

Agent

The warehouse refused the order because it arrived without sku. A permanent failure is not retried: it goes to the dead-letter queue. Fix the mapping or the sender, then send the order again.

Triage the dead-letter queue

A target was down overnight. The deliveries that kept failing wait in the dead-letter queue for someone to look.

Where you say yes

A retry adds a delivery, so your client may run it without asking. Discarding cannot be undone, so discard_dlq_entry is marked destructive.

You

Anything stuck overnight?

  1. list_dlq reads

    Thirteen entries. Twelve to the warehouse between 02:10 and 02:40, retries_exhausted on a 503. One target_rejected with a 422.

  2. get_dlq_entry reads

    Reads the rejected one by requestId, with the payload as it was attempted and its credentials masked.

  3. retry_dlq_entry adds

    Sends the twelve again, one call each. A retry is charged the credits its original delivery was billed.

  4. discard_dlq_entry overwrites

    Deletes the rejected entry for good, once you allow it.

Agent

Twelve are back in the queue. The thirteenth would be refused the same way, so I would discard it. Allow?

Change a field safely

The warehouse renamed sku to item_code. Orders keep arriving while you fix it.

Where you say yes

Both update_endpoint and publish_line_draft are marked destructive, so a careful client asks twice: once to stage, once to go live.

Going back: list_config_revisions lists the retained revisions, and rollback_config first shows the diff back to one of them. It changes nothing until it is called again to confirm, and it refuses if someone published in between.

You

The warehouse wants item_code instead of sku now. Change it without breaking live orders.

  1. get_endpoint reads

    Reads the endpoint and its warehouse target.

  2. get_line_draft reads

    Reads the draft revision of line v1, so the change cannot land on top of someone else’s.

  3. update_endpoint overwrites

    Stages the rename in the line draft with commitMode: "draft". Live orders still use the published version.

  4. dry_run_endpoint reads

    Runs last night’s order through the new mapping: item_code is filled. Nothing is sent.

  5. config_diff reads

    One field changed, on one target.

  6. publish_line_draft overwrites

    Goes live, once you allow it.

Agent

Published. If the warehouse objects, the previous revision is one rollback away.

Rotate a key

A key is due for rotation, and the service that uses it cannot go down.

Where you say yes

Rotating needs the mint:keys scope, which config includes. A token with neither does not see the tool at all. With it, rotate_api_key is marked destructive, so your client can ask first.

When keys rotate on a schedule instead, reveal_rotation_successor hands over the new key once and then destroys the stored copy.

You

Rotate the key our billing service uses. The old one has to keep working until we deploy.

  1. list_api_keys reads

    Finds the billing service’s key by name.

  2. rotate_api_key overwrites

    Mints a linked successor and shows it once. The old key keeps working until it expires or you revoke it.

Agent

Here is the new key. Store it now; it will not be shown again. The old key works until its expiry date, so deploy before then and revoke it once you have.

Check the bill

Someone asks how long the credits will last and what more would cost.

Where you say yes

An agent that connected by signing in is never given a money scope, so it cannot buy. You top up in the panel.

You

How many credits do we have left, and what would a top-up cost?

  1. get_billing reads

    The paid and testing credit balances, and whether the project is prepaid or invoiced.

  2. list_credit_packs reads

    Every credit pack on sale, with its price.

Agent

Here are the balances and the packs side by side. Buying one is your call.

Built so a mistake is cheap.

Draft first

An endpoint change can wait in a line draft, and dry_run_endpoint runs a sample through the mapping without writing, queueing, billing or sending anything.

Check the diff, then publish

config_diff shows what will change. rollback_config puts back a retained revision, and shows you the diff before it does.

Scoped tokens

A read token reads and cannot change anything. Changes need config. A mint:keys token can mint and rotate keys and change nothing else. An agent that signs in is never given a money scope.

Errors name the fix

If someone published after your preview, rollback_config refuses with rollback_confirmation_conflict instead of overwriting their change: read the fresh diff, confirm again.

You decide what it may change.

An MCP client that supports sign-in needs only https://mcp.echorelay.dev. In your browser you pick the project and see what the agent will be allowed to do there, and no token is copied anywhere.

  • Looking into something? Give it a read token.

    It can find the failed delivery, read the dead-letter queue and explain the bill. It cannot change a thing.

  • Changing something? Let your MCP client ask.

    Every tool says whether it reads, adds, or overwrites. Your client can run the reads on its own and stop for your yes before anything that overwrites or removes.

  • Rather press the button yourself? Publish in the panel.

    Ask the agent to leave its change as a draft. You review it and publish it in the panel.