EchoRelay

v0.13.1
dev.echorelay/management Checked 1 day ago Published 12 days ago

A managed runtime for custom API integrations.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_project_endpoints

List project endpoints with their IDs, draft status, latest published version, and line usage.

get_project_endpoint

Read a project endpoint with its numbered versions and draft. Credentials are redacted.

ParameterTypeDescription
endpointId *stringThe UUID from list_project_endpoints.

create_project_endpoint

Create a project endpoint draft. Pass publish: true to publish version 1 immediately.

save_project_endpoint_draft

Replace the unpublished endpoint draft with a complete endpoint document.

discard_project_endpoint_draft

Discard the unpublished endpoint draft.

ParameterTypeDescription
endpointId *stringThe UUID from list_project_endpoints.

publish_project_endpoint_draft

Publish the endpoint draft. Line versions following latest pick it up after verification.

ParameterTypeDescription
endpointId *stringThe UUID from list_project_endpoints.
confirmFailedTestsbooleanProceed if saved test calls fail.

delete_project_endpoint

Delete an unused endpoint or retire it when a line draft or published line version still references it.

ParameterTypeDescription
endpointId *stringThe UUID from list_project_endpoints.

attach_line_endpoint

Attach a published endpoint to a line draft. Defaults to following latest.

ParameterTypeDescription
endpointId *stringThe UUID from list_project_endpoints.
lineKey *stringThe line key, e.g. "v1".
draftRevisionintegerExpected line draft revision. Omit to use the revision read during the request.
endpointVersionFollow "latest" or lock to a published endpoint version number.

detach_line_endpoint

Remove an endpoint from a line draft. Publish the draft to apply the removal.

ParameterTypeDescription
endpointId *stringThe UUID from list_project_endpoints.
lineKey *stringThe line key, e.g. "v1".
draftRevisionintegerExpected line draft revision. Omit to use the revision read during the request.

switch_line_version_endpoint

Switch a published line attachment to follow latest or lock to a published endpoint version. Keeps the same line version number.

ParameterTypeDescription
endpointId *stringThe UUID from list_project_endpoints.
endpointVersion *Follow "latest" or lock to a published endpoint version number.
lineKey *stringThe line key, e.g. "v1".
version *integer
confirmFailedTestsbooleanProceed if saved test calls fail.

get_project

Get the EchoRelay project this token is scoped to: id, slug, name, caller-facing API base URL, whether the token has edit access, and the request-log hot-tier retention window.

list_lines

List every line in the project: returns `{lines: []}` in one call, with no paging. Each entry reports `lineKey`, `name`, `active`, `docsSharing` (`off`, `link` or `public`), `docsUrl` (the full address, null while off), `publishedAt`, `endpointCount`, and its draft state (`draftRevision`, `hasDraft`, `scheduledPublish`). A project with no lines yet returns an empty `lines` array rather than an error.

list_endpoints

List the endpoints under one line, identified by `lineKey`; returns `{lineKey, endpoints: []}` with no paging. Each entry reports `id`, `name`, `path`, `httpMethod`, `strict`, `mock`, and `targetCount` — not the endpoint's full body, which get_endpoint returns. Errors when `lineKey` is missing or doesn't match a line in the project.

ParameterTypeDescription
lineKey *stringThe line key, e.g. "v1".

get_endpoint

Get one endpoint's full document by `lineKey` and `endpointId`: `id`, `lineKey`, `name`, `url`, `httpMethod`, `strict`, `rateLimit`, `allowedIPs`, `idempotencyEnabled`, `senderSignature` (`{scheme, credentialId}`, plus `custom` for the custom-hmac scheme, or null: whether the sender's signature is verified, never the secret), `mock`, `mockResponse`, `attributes`, `targets` (auth redacted), and `transformers`. Each target carries its `id`, and its secrets come back redacted: the `targets` array can be edited and sent back in update_endpoint's `patch`, where a target that keeps its `id` keeps it…

ParameterTypeDescription
endpointId *stringThe endpoint UUID.
lineKey *stringThe line key, e.g. "v1".

get_config

Get the project's published relay configuration — the exact JSON the EchoRelay Framework consumes. Includes pendingPublish with its frozen, redacted config when one is scheduled.

config_diff

Preview what Save & Publish (or the pending scheduled publish, if one exists) would change: added/removed/changed lines, and within each changed line the added/removed/changed endpoints and targets, plus any project-level setting change. Outbound auth secrets are redacted the same as get_config.

list_config_revisions

List every retained revision of one line, newest first, so a target revision can be picked for rollback_config. Returns `{revisions: []}` with no paging; each entry has `revision`, `publishedAt`, `current`, and `active`. Errors when `lineKey` is missing or doesn't match a line in the project.

ParameterTypeDescription
lineKey *stringThe line key, e.g. "v1".

get_line_draft

Read one line draft, its optimistic revision, preview, and schedule.

ParameterTypeDescription
lineKey *stringThe line key, e.g. "v1".

preview_line_draft

Preview one line draft without publishing it.

ParameterTypeDescription
lineKey *stringThe line key, e.g. "v1".

publish_line_draft

Publish one line draft now and clear only its schedule.

ParameterTypeDescription
draftRevision *integer
lineKey *string

discard_line_draft

Discard every unpublished change and schedule for one line.

ParameterTypeDescription
draftRevision *integer
lineKey *string

discard_draft_endpoint

Discard one endpoint change from a line draft.

ParameterTypeDescription
draftRevision *integer
endpointId *string
lineKey *string

schedule_line_publish

Schedule one non-empty line draft. Active subscribers required.

ParameterTypeDescription
draftRevision *integer
lineKey *string
scheduledAt *string

cancel_line_publish

Cancel one line schedule before its two-minute lock.

ParameterTypeDescription
draftRevision *integer
lineKey *string

rollback_config

Preview or apply publishing a retained line revision over what is currently published, clearing any pending schedule. Without confirmRevision this only returns the diff (the redacted change-gate preview, same shape as config_diff) between what is currently published and the target revision — it changes nothing. To apply, call again with confirmRevision set to the diff's currentRevision; if a publish landed since the preview, confirmRevision is now stale and the call is refused with error "rollback_confirmation_conflict" instead of silently overwriting the newer publish — read the fresh dif…

ParameterTypeDescription
lineKey *string
revision *integer
confirmRevisionintegerThe currently-published revision number from the preview diff. Omit to preview only; include to apply.
confirmUnsignedstringThe preview diff's unsignedFingerprint. Required whenever confirmRevision is given: a target's retained signing secret expires on a clock, so this proves the confirm saw the same set of targets the pr…

get_billing

Get the project's credit balances (paid + testing) and which ledger it settles on. `billingModel` is `prepaid` (metered against the credit balance) or `invoiceable` (an Enterprise account, settled on the contract — its credit fields read empty/zero by design, not because it is out of credits). A zero balance is not on its own a reason to stop: live traffic is never refused for an empty balance, and a free-tier project is exempt from live credit billing entirely. Only the testing pool refuses when exhausted (402 `testing_credits_exhausted`). Read this before concluding from any other field th…

set_burst_opt_in

Enable or disable the auto-decaying burst window for live traffic and publish the change immediately. When enabled, brief spikes a little above your steady RPM cap are absorbed at the normal credit rate (no surcharge, no burst SKU) instead of being rejected. Sustained overage decays back to your steady cap; headroom returns once traffic cools below the cap or you add RPM. Burst usage is tracked so you can see when to upgrade. Default is off (steady cap is a hard 429). Requires edit access.

ParameterTypeDescription
enabled *booleantrue to enable the burst window; false to disable.

set_rpm_ceiling

Set or clear a self-set ceiling on this project's own effective RPM (Traffic shaping): steady live traffic is capped at the ceiling, and test traffic, which keeps its own limit on its own counter, never goes above it — for when your origin can't take the throughput your plan grants. Never plan-gated: the ceiling can only LOWER your effective RPM below your plan/add-on rate, never raise it, and never touches billing. If Burst Protect is on, it may briefly admit live traffic above the ceiling, and its headroom is measured above the ceiling, not above the plan rate; test traffic never bursts. T…

ParameterTypeDescription
rpmCeiling *integer | nullA positive integer to set the ceiling, or null to clear it.

set_outbound_allowlist

Narrow the project's outbound host allowlist — the hosts a target may point at. The current list is on get_project as `outboundHostAllowlist` (empty means any public host). This tool may only narrow it: `patterns` must be a strict subset of, or equal to, the current list, compared as exact strings — submitting a wildcard that would cover an existing exact host, or clearing to empty, is refused as a widen. Widening the list is web-only, in the panel. Refused when the project already has a target (inactive lines included) outside the submitted list. Requires edit access.

ParameterTypeDescription
patterns *arrayThe full replacement list of allowed hosts, e.g. ["api.stripe.com", "*.internal.example.com"]. Must be a subset of the current outboundHostAllowlist.

create_line

Create a new versioned line. A new line has no endpoints, so creating one publishes nothing and serves no traffic yet — add an endpoint, which publishes the line with it. Draft mode requires draftRevision 0. Requires edit access.

ParameterTypeDescription
lineKey *stringURL key, lowercase letters/digits/hyphens, e.g. "v1".
name *stringHuman-readable line name.
commitModestringDefaults to publish. Draft writes require draftRevision.
draftRevisionintegerCurrent line draft revision, required for draft writes.

delete_line

Delete a line and every endpoint under it, immediately or by staging the removal in the line's draft with commitMode "draft" and draftRevision (returns `{draft}`, discardable via discard_line_draft, instead of deleting right away). An immediate delete removes the line's own revision history along with it, so list_config_revisions has nothing left to list and rollback_config cannot bring the line back. Errors when `lineKey` is missing, doesn't match a line in the project, or the draft revision is stale. Requires edit access.

ParameterTypeDescription
lineKey *stringThe line key, e.g. "v1".
commitModestringDefaults to publish. Draft writes require draftRevision.
draftRevisionintegerCurrent line draft revision, required for draft writes.

list_line_versions

List every numbered version of one line with its active state, off-version policy, and each target binding's current pointer (fixed version N or "latest"). Read-only.

ParameterTypeDescription
lineKey *stringThe line key, e.g. "v1".

switch_line_version

Switch a numbered line version on or off immediately. When switching on at full active-version cap, pass `switchOffVersions` to turn other versions off in the same transaction so `@latest` never goes dark. Switching off the last active version on a line requires `confirmLineOffline: true`. Requires edit access.

ParameterTypeDescription
active *booleantrue to serve traffic on this version; false to switch it off.
lineKey *stringThe line key, e.g. "v1".
version *integerThe numbered version to switch on or off.
confirmLineOfflinebooleanRequired as true when switching off the last active version on the line.
switchOffVersionsarrayOptional version numbers to switch off in the same transaction while switching this version on.

set_line_off_version_policy

Set how the relay answers callers addressing an off version of this line: `error` returns 404; `latest` routes to the newest active version instead. Applies immediately. Requires edit access.

ParameterTypeDescription
lineKey *stringThe line key, e.g. "v1".
policy *string"error" (404) or "latest" (route to newest active version).

restore_line_version

Restore an older published line version as a brand-new numbered version, copying its current target pointers. Turns on if the plan has room, otherwise publishes off with a cap notice. Requires edit access.

ParameterTypeDescription
lineKey *stringThe line key, e.g. "v1".
version *integerThe older version number to restore as a new version.

duplicate_line

Copy a line and all its endpoints/targets/rules into a new line key — build v2 from v1. The copy goes live when the plan has a free active line; otherwise it is saved off, `notice` says why, and switch_line_version turns a version on once a line is free. Requires edit access.

ParameterTypeDescription
lineKey *stringThe source line key to copy.
newLineKey *stringNew line key for the copy, e.g. "v2".
commitModestringDefaults to publish. Draft writes require draftRevision.
draftRevisionintegerCurrent line draft revision, required for draft writes.
namestringOptional name for the copy (defaults to "<source name> (copy)").

set_docs_shared

Set who can read a line's generated API docs. Use the lowest level that achieves what the user asked for: `link` is enough to share with specific people. Set `public` only when the user has explicitly asked for public docs, and pass `userApprovedPublic: true` to confirm it. `off`: only project members, through the panel. `link`: anyone holding the unguessable address in `docsUrl` reads them without an account; search engines and AI crawlers are asked to stay out. `public`: anyone can read them at a stable address, and search engines and AI assistants can find them. `replaceLink: true` (only wi…

ParameterTypeDescription
level *stringWho can read the docs: off, link or public.
lineKey *stringThe line key, e.g. "v1".
commitModestringDefaults to publish. Draft writes require draftRevision.
draftRevisionintegerCurrent line draft revision, required for draft writes.
replaceLinkbooleantrue to replace the current link with a new one; valid only with level "link" on a line already shared by link. Takes effect at once, never staged.
userApprovedPublicbooleanRequired as true to move a line to level "public" from another level; confirms the user explicitly asked for public docs.

create_endpoint

Create an endpoint. Publishes by default. Draft writes need draftRevision. scheduledAt stages and schedules the line draft. Requires edit access.

generate_line_draft

Generate a draft endpoint under a line from a sample inbound request and a description of the target: infers the inbound body schema from the sample, reads the target's method/URL/fields from an OpenAPI document (targetDocument) or a bare sample plus targetUrl, and proposes an outgoingMapping pairing every target field to a same-named inbound field. Nothing is guessed — a target field with no same-named match is reported in the "unmapped" list instead of being mapped, and every field it did map carries "inferred": true in the stored mapping tree. Always writes a draft (never publishes); the…

ParameterTypeDescription
deliveryMode *stringThe caller contract this endpoint offers: async acceptance with later outcomes, one sync reply, or a stream.
draftRevision *integerThe line's current draft revision (0 for a line with no draft yet) — see get_line_draft.
lineKey *stringThe line key to draft the generated endpoint under.
sample *objectA sample inbound request body, shaped as one a real caller would send — one JSON field per key.
targetDocumentstringThe target's OpenAPI 3.x document (YAML or JSON). Mutually exclusive with targetSample; must describe exactly one operation.
targetFilenamestringFilename hint for targetDocument, to decide YAML vs JSON. Defaults to "target.json".
targetHttpMethodstringHTTP method for the target when using targetSample. Defaults to POST.
targetSampleobjectA raw sample of the target's own request body, used instead of targetDocument when there is no spec to read. Requires targetUrl.
targetUrlstringThe target URL. Required when targetSample is used; ignored when targetDocument is used (its servers[] entry wins).

update_endpoint

Patch an endpoint. Omitted fields keep their values. Targets match by id, then unique name and targetUrl, then position if list length, either name or URL, and scheme/host/port stay the same. Matched targets keep omitted or redacted secrets. New targets need their own secrets. Immediate updates treat draft-only targets as new. Draft writes need the current draftRevision and return {draft}. Immediate writes return {endpoint, scheduledAt}. scheduledAt stages and schedules the line draft. Requires edit access.

delete_endpoint

Delete an endpoint and its targets, immediately or by staging the removal in the line's draft with commitMode "draft" and draftRevision (returns `{draft}` instead of deleting right away). An immediate delete publishes a new revision without the endpoint and returns `{deleted: true, endpointId}`, but the line's prior revision still has it, so list_config_revisions can find that revision and rollback_config can republish over the deletion. Errors when `lineKey`/`endpointId` is missing, the line or endpoint doesn't exist, the draft revision is stale, removing the endpoint would leave an active li…

ParameterTypeDescription
endpointId *stringThe endpoint UUID.
lineKey *stringThe line key, e.g. "v1".
commitModestringDefaults to publish. Draft writes require draftRevision.
draftRevisionintegerCurrent line draft revision, required for draft writes.

default_endpoint_template

Return a canonical minimal-valid endpoint JSON for a fresh line. POST it verbatim to create_endpoint to land an immediately-working endpoint, then customise. It comes back with `mock: true`: it answers callers with its own canned body and never dials the target it carries, so a 200 from it proves the endpoint is reachable and nothing about delivery. Set `mock: false` and give the target a real URL before treating a call as delivered. Read-only.

ParameterTypeDescription
lineKey *stringThe line key, e.g. "v1".

dry_run_endpoint

Validate a create or, with endpointId, a patch. Returns {ok:true,resolved} or {ok:false,errors}. Samples show each target's mapping output, field origins and failed rules with values. The dry run never writes, queues, delivers or bills.

list_members

List accepted and pending members of this project, plus the owner (role "owner"), each with `id`, `email`, `name`, `role`, and whether the invite has been accepted. Returns `{members: [], count, seatCap, seatsUsed}` with no paging — `count` is the roster size, `seatCap`/`seatsUsed` are the plan's seat limit and how many seats are used. Errors when the caller isn't the project owner or the token lacks the config scope. Owner only.

invite_member

Invite a person by email to collaborate on this project. Returns the new invitation record; the invitee receives an email with an accept link. Enforces the seat cap for the plan tier. Owner only.

ParameterTypeDescription
email *stringEmail address to invite.
role *stringRole to assign on acceptance.

remove_member

Remove a member (accepted or pending) from this project by memberId or email, matching the first record found; returns `{message, email}`. This deletes the membership record outright with no undo, so getting the person back onto the project takes a fresh invite_member call, not a restore. Errors when neither `memberId` nor `email` is given, no member matches, the caller isn't the project owner, or the token lacks the config scope. Owner only.

ParameterTypeDescription
emailstringEmail address (alternative to memberId — removes the first matching member).
memberIdstringMember record UUID (from list_members).

set_member_role

Change a member's role between editor, viewer, and billing. Identify the member by their member ID or email (from list_members); the project owner's own role cannot be changed. Returns the updated member record. Owner only.

ParameterTypeDescription
role *stringThe new role.
emailstringEmail address (alternative to memberId — targets the first matching member).
memberIdstringMember record UUID (from list_members).

resend_invite

Re-send the invitation email for a still-pending invite, by member ID or email (from list_members). The original accept link is reused. Already-accepted members are rejected. Owner only.

ParameterTypeDescription
emailstringEmail address (alternative to memberId — targets the first matching pending invite).
memberIdstringMember record UUID (from list_members).

list_api_keys

List the project's inbound API keys as metadata only — the secret plaintext is never returned, only `id`, `name`, `mode`, `prefix`, `createdAt`, `createdBy`, `lastUsedAt`, `expiresAt`, `revokedAt`, `successorId`, `predecessorId`, and `successorRevealedAt`. Returns `{keys: []}` with no paging — every key on the project comes back in one call.

create_api_key

Mint an inbound relay (data-plane) API key for callers to send traffic to this project. Its `er_live_` or `er_test_` secret authenticates relay requests; it cannot call management MCP or REST. Returns the plaintext exactly once — store it now, it cannot be retrieved later. Editor + owner; subject to the project key policy (see get_key_policy).

ParameterTypeDescription
name *stringHuman-readable label, up to 120 characters.
modestringlive → paid pool, test → testing pool (rate-limited to the plan's live rate). Omit for live.
ttlDaysinteger | nullLifetime in days. Omit to use the project's defaultKeyTtlDays from get_key_policy. Null = never expires (owner-only unless editorsMayCreateNonExpiringKeys is set).

rotate_api_key

Mint a linked successor for an existing key. Returns the successor plaintext exactly once — store it now. The predecessor stays valid through its overlap window so callers can swap without downtime. Owner anywhere, editor on own keys.

ParameterTypeDescription
keyId *stringUUID of the key to rotate.

reveal_rotation_successor

One-shot retrieval of the plaintext for a successor minted by the auto-rotation scheduler (not by rotate_api_key — that returns its own plaintext directly). Decrypts the at-rest ciphertext, returns it once, then destroys it; a second call errors. Only available while the predecessor still has an unrevealed successor.

ParameterTypeDescription
keyId *stringUUID of the predecessor key whose successor to reveal.

revoke_api_key

Revoke a key immediately: it stops authenticating as soon as the change reaches the relay, with no overlap window, so callers still using it start failing. To replace a key without downtime, use rotate_api_key instead; if the key already has a successor, fetch it with reveal_rotation_successor, because rotate_api_key refuses a key that has one. Revoking a successor leaves its predecessor unable to rotate again. Owner anywhere, editor on own keys.

ParameterTypeDescription
keyId *stringUUID of the key to revoke.

get_key_policy

Return the project's key policy: `defaultKeyTtlDays` (what create_api_key uses when `ttlDays` is omitted), plus `maxKeyTtlDays` and `editorsMayCreateNonExpiringKeys`, the limits create_api_key enforces when minting a key. Read-only; use set_key_policy to change these values.

set_key_policy

Owner-only. Edit the project's key policy. Only fields present in the patch are touched. Editors calling this get an error — use get_key_policy to read.

ParameterTypeDescription
defaultKeyTtlDaysinteger | null
editorsMayCreateNonExpiringKeysboolean
maxKeyTtlDaysinteger | null

list_credentials

List the project's saved credentials — reusable target-auth secrets that can be referenced from any number of targets instead of entering auth inline per target. `auth` is redacted (secret fields never returned, even encrypted — see create_credential for why).

create_credential

Save a new reusable credential, sealed with the project's encryption key at write time. Neither this call nor any later read ever returns the secret back — reference it from a target by id (see create_endpoint/update_endpoint's target.credentialVaultEntryId) instead of copying the secret around. `auth.type` selects which fields apply: bearer→token, basic→username+password, apiKeyHeader→headerName+key, apiKeyQuery→paramName+key, publicPrivateKey→secret+key, oauthClientCredentials→tokenUrl+clientId+clientSecret (+ optional scope, audience, clientAuth "basic"|"post"; the access toke…

ParameterTypeDescription
auth *objectThe credential's auth shape.
name *stringHuman-readable label, up to 120 characters.
destinationHoststringThe only host this credential may be sent to, e.g. "api.stripe.com", or a single-label wildcard, e.g. "*.stripe.com" (matches api.stripe.com, not stripe.com and not a.b.stripe.com). Host only — no s…

update_credential

Rename a credential and/or rotate its secret, publishing the change immediately so every target that uses this credential picks it up right away. Omit a secret field (or the whole `auth` object) to keep the existing value — the vault can never show a secret back to confirm it, so leaving it out means "unchanged," not "cleared." The destination host cannot be changed here: create a new credential for a new destination.

ParameterTypeDescription
credentialId *stringUUID of the credential (from list_credentials).
authobjectSame shape as create_credential. Omit to keep the existing auth entirely.
destinationHoststringPermanent — may only restate the credential's current host (omit it, or send back what list_credentials reported). Any other value is refused; a credential is never re-aimed, it is replaced.
namestringNew name. Omit to keep the existing one.

delete_credential

Delete a saved credential. Blocked (not a permission or not-found error — a validation error) while any target version, binding, or draft still references it; repoint or remove those first.

ParameterTypeDescription
credentialId *stringUUID of the credential to delete.

set_credential_next

Stage a sealed replacement secret in a credential's `next` slot (or pass `auth: null` to clear it) without changing `current` or re-exporting config. Follow with rotate_credential to run pre-rotation test calls and promote `next` to `current`. Requires edit access.

ParameterTypeDescription
auth *object | nullNew auth shape (same shape as create_credential; required secret fields must be non-empty), or null to clear the staged next secret.
credentialId *stringUUID of the credential (from list_credentials).

rotate_credential

Test the staged `next` secret against every published target version pointing at this credential, then switch `next` into `current` and retain the old secret in a 7-hour overlap window for in-flight retries. Refused if any test call fails, naming the failing target version and leaving `current` and `next` untouched. Requires edit access.

ParameterTypeDescription
credentialId *stringUUID of the credential (from list_credentials).
expiresAtstring | nullOptional ISO-8601 expiry timestamp for the newly rotated secret, or null to clear expiry.

set_credential_expiry

Set or clear a saved credential's optional expiry timestamp so 30/7/1-day expiry alerts fire before it expires. Requires edit access.

ParameterTypeDescription
credentialId *stringUUID of the credential (from list_credentials).
expiresAt *string | nullISO-8601 date-time string, or null to clear expiry.

list_requests

List inbound API requests the relay has processed for this project, newest first. Hot-tier window is the project's requestLogRetentionDays (see get_project). Optional filters narrow the result. Returns {total, limit, offset, rows[]} where each row has ts (unix ms), requestId, method, path, status, durationMs, targets, creditsDeducted, authType, errorMessage, bytesSent, configVersion (the published config that authorised the request; 0 means unstamped), and closeReason (for a streaming request: complete / abortedOrError / byteCap / noValue; empty for non-stream requests).

ParameterTypeDescription
limitintegerPage size. Default 50.
methodstringHTTP method (POST, GET, …). Case-insensitive.
offsetintegerPage offset. Default 0.
pathstringSubstring of the request path (e.g. "/webhook"). LIKE-matched.
sinceintegerLower bound on ts (unix ms). Inclusive.
statusintegerExact HTTP status code (e.g. 404).
targetOutcomestringNarrow to requests that produced at least one per-target attempt with this outcome. Use "dlq" to find requests with at least one target that ended up dead-lettered.
untilintegerUpper bound on ts (unix ms). Inclusive.

get_request

Get one inbound request envelope + every per-target delivery attempt made on the way out (success / permanent_failure / retry_scheduled / dlq). The request and each attempt carry configVersion, the published config that authorised them; 0 means unstamped. Scoped to this project; returns null once the request has aged out of the project's log-retention window (requestLogRetentionDays — see get_project).

ParameterTypeDescription
requestId *stringUUID returned by the relay in 202 responses or visible in list_requests rows.

get_receipts

Get every target this request fanned out to, each with its delivery receipt or the reason it has none. A still-moving delivery (queued/retrying) answers from the live tracking copy, a terminal one (delivered/failed) from durable storage — the response shape is identical either way, so poll this on an interval with the same requestId a 202 response returned and watch `status` move to a terminal value. Each entry has targetId, targetURL, available, and when available: status (queued/retrying/delivered/failed), attempt, enqueuedAt/updatedAt/completedAt (unix ms), terminalError, callbackState (n…

ParameterTypeDescription
requestId *stringUUID returned by the relay in 202 responses or visible in list_requests rows.

get_metrics

Aggregate request metrics for this project over a time window — volume, error rate and p50/p95/p99 latency, bucketed for charting. By default the series cover inbound requests; pass `targetId` to slice over one outbound target's per-attempt rows instead (answers "which target is degraded?"); pass `endpointId` to slice over inbound rows for a single endpoint (answers "is this endpoint receiving traffic / erroring?"). Pass at most one of targetId / endpointId. Free plans see "hour" and "day"; "week" and "month" require an active paid subscription on the project owner and are silently downgrade…

ParameterTypeDescription
endpointIdstringOptional endpoint UUID (from list_endpoints / get_endpoint). When set, the series aggregate inbound request rows for that endpoint only. Mutually exclusive with targetId.
targetIdstringOptional outbound target UUID (from get_endpoint targets). When set, the series aggregate the per-attempt rows for that target instead of the project-wide inbound rows.
windowstringTime horizon. Defaults to "day". "week"/"month" require a paid plan; otherwise the server returns "day" with planGated=true.

list_dlq

List entries currently in this project's dead-letter queue, newest first. One inbound request fans out per-target, so a single request may produce several DLQ entries, one per target that didn't accept it (different `targetId`s). Returns `{total, limit, offset, rows[], evictedCount}` where each row has `id` (the dead-letter entry id, `{ms}-{seq}`), `requestId`, `targetId`, `configVersion` (the published config that authorised the delivery; 0 means unstamped), `failureReason`, `failureCode` (stable machine-readable cause; `unclassified` for entries written before codes existed), `failedAttempts…

ParameterTypeDescription
limitintegerPage size. Default 50.
offsetintegerPage offset. Default 0.

get_dlq_entry

Get DLQ entries by entry id (`{ms}-{seq}`, as returned by list_dlq's `id`) or by `requestId`. `requestId` is the durable handle — stable across a retry, unlike `id`, which changes every time an entry is replayed and later dead-letters again — and returns every fanned-out target's entry for that inbound request (one request can fan out to N targets, and several may dead-letter); `id` returns at most one. Each entry includes configVersion (the published config that authorised the delivery; 0 means unstamped). Errors if nothing matches this project — purged, retried, or discarded entries ag…

ParameterTypeDescription
idstringDead-letter entry id, e.g. "1717930000000-0" (as returned by list_dlq). Changes on every retry — prefer requestId to track an entry across replays.
requestIdstringThe UUID the relay returned in its 202, or from list_requests / list_dlq rows. Stable across retries. Returns every fanned-out target's DLQ entry for this request. Provide exactly one of id / requestI…

retry_dlq_entry

Re-enqueue a DLQ entry to the main relay stream and delete it from the DLQ. A replay is billed like any relay — it charges the entry's original credit cost to the project before re-sending; if the balance is too low the entry stays in the DLQ and this returns an insufficient-credits error (top up and retry). Succeeds if the entry exists, errors if it's already gone (retried or discarded). Requires edit access.

ParameterTypeDescription
id *stringDead-letter entry id from list_dlq.

discard_dlq_entry

Permanently delete a DLQ entry without retrying it: the delivery is never re-sent and the entry cannot be restored. Use retry_dlq_entry instead when the delivery should still reach its target. The inbound request stays answerable through get_request for the project's requestLogRetentionDays window. Errors if the entry is already gone (retried, discarded, purged or evicted). Requires edit access.

ParameterTypeDescription
id *stringDead-letter entry id from list_dlq.

list_subscription_plans

List the available subscription plans (Free, Pro, Scale) with monthly EUR price, credit allowance, per-project RPM cap, and how many active projects the plan includes. Read-only.

list_credit_packs

List the prepaid credit packs available to purchase, returned as a bare array of `{credits, eurCents, usdCents, plnGrosze, welcomeEligible}` objects — not wrapped in an envelope, and not paginated (the whole catalog every time). Read-only; identify a pack to start_topup by its `eurCents`.

list_addons

List the optional add-on subscriptions (RPM upgrades, extra team seats, extended log retention, extra file-delivery storage in +5 GB blocks, …). Each entry is monthly, renews every 30 days until cancelled, and carries `scope` (per_account or per_project). Read-only.

get_subscription

Get the project owner's current subscription: plan, active flag, period start/end, cancel-at-period-end flag, external Paddle subscription id, and whether a payment method is on file at the provider. Owner-only. Requires the `manage:billing` scope.

preview_plan_change

Preview what would happen if change_plan were called with this plan: the immediate-charge amount (cents), the next-invoice amount, the effective date, and the kind (`applied` for in-cycle upgrade, `scheduled` for at-period-end downgrade / cancel). Owner-only. Requires the `manage:billing` scope.

ParameterTypeDescription
plan *stringTarget plan to preview a switch to.

start_subscription

Start a Pro or Scale subscription. If the owner has completed an MCP purchase and has a saved payment method, charges it and returns `{transactionId, plan, directCharge:true}`. Otherwise returns `{checkoutUrl, plan, directCharge:false}` for the owner to complete. Use change_plan if a paid subscription is already active. Owner-only. Requires the `manage:billing` scope.

ParameterTypeDescription
plan *string

change_plan

Switch the project owner between Pro and Scale, or cancel the subscription (effectively dropping to Free at period end). Returns `{kind, newPlan, effectiveAt, applied}` — `applied=true` means Paddle was charged immediately, otherwise the change is queued for the current period end. Use preview_plan_change first to see the dollar impact. Owner-only. Requires the `manage:billing` scope.

ParameterTypeDescription
plan *string

cancel_subscription

Schedule the project owner's subscription for cancellation at the end of the current billing period. Returns `{kind: 'scheduled', newPlan: 'free', effectiveAt}`. Add-ons keep renewing while the plan is active; after it ends they stop renewing and each already-paid add-on cycle stays active until its own end date (use unsubscribe_addon to stop one sooner). Owner-only. Requires the `manage:billing` scope.

set_overage_billing

Turn the project owner's overage billing on or off, for the whole account. Returns `{overageBilling}`, the setting get_billing reads back. Available for Pro and Scale when the feature is enabled. Owner-only. Requires the `manage:billing` scope.

ParameterTypeDescription
enabled *booleanTrue (the default) bills credits past your allowance and prepaid balance as overage; false slows the account to the free rate once its credits are gone instead, and nothing is refused. Turning it off…

start_topup

Top up credits. Pass `eurCents` from list_credit_packs. If the owner has completed an MCP purchase and has a saved payment method, charges it and returns `{transactionId, credits, eurCents, directCharge:true}`. The token spend limit applies to direct charges. Otherwise returns `{checkoutUrl, credits, eurCents, directCharge:false}` for the owner to complete. Owner-only. Requires the `spend` scope.

ParameterTypeDescription
eurCents *integerPack price in EUR cents, matching a pack returned by list_credit_packs.

subscribe_addon

Subscribe the project owner to a monthly add-on (RPM upgrade, team seat, extended log retention, extra file storage in +5 GB blocks, …). Charges the saved payment method immediately, then auto-renews every 30 days until `unsubscribe_addon` — or until the subscription ends, after which the already-paid cycle stays active to its own end date and stops without further charges. Requires an active Pro/Scale subscription and a saved PM. RPM upgrades (rpm_*) are per-project and apply to THIS project automatically. Returns `{addonKey, project, monthlyEurCents, transactionId, chargeStatus, activate…

ParameterTypeDescription
addonKey *stringStable key from list_addons (e.g. "team_member", "rpm_2000", "log_retention", "file_storage").

unsubscribe_addon

Cancel an active add-on subscription. Stops future charges; the current cycle stays active until expiry. RPM upgrades are cancelled for THIS project. Returns `{addonKey, project, cancelledAt}`. Owner-only. Requires the `manage:billing` scope.

ParameterTypeDescription
addonKey *string

resume_addon

Resume (un-cancel) a pending-cancel add-on whose paid-through cycle has not yet ended. Clears the cancellation so the add-on renews normally at the next cycle boundary. No new charge — the cycle was already paid. Stackable add-ons cannot be resumed; buy a new unit instead. Returns {addonKey, project, nextRenewalAt, resumed}. Owner-only. Requires the `manage:billing` scope.

ParameterTypeDescription
addonKey *stringAdd-on key to resume (e.g. "log_retention", "rpm_5000").

downgrade_addon

Schedule a tier downgrade for a non-stackable add-on (RPM tier). The current tier stays active until `nextRenewalAt`; at that point the lower tier is charged and activated. No mid-cycle charge. Use list_addons to find available keys. Returns {addonKey, targetAddonKey, project, effectiveAt}. Owner-only. Requires the `manage:billing` scope.

ParameterTypeDescription
addonKey *stringCurrent active add-on key to downgrade from.
targetAddonKey *stringTarget (lower) add-on key to downgrade to.

list_active_addons

List the project owner`s currently-active add-ons. Returns `[{addonKey, project, monthlyEurCents, activatedAt, nextRenewalAt, consecutiveFailures}, ...]`. RPM upgrades are per-project; `project` is the slug they apply to (null for account-wide add-ons). Owner-only. Requires the `manage:billing` scope.

list_audit_events

List project audit-log entries, newest first. Captures who changed what — lines, endpoints, targets, API keys. Outbound-target `auth.token` / `auth.password` are redacted in the diff per the same policy used for endpoint reads. Retention is the `auditRetentionDays` advertised on get_project (default 365 days); rows older than that are purged by the cleanup job. Returns `{total, limit, offset, retentionDays, rows[]}` where each row has `id`, `createdAt`, `actor` (email or null), `action`, `entityType`, `entityId`, `entityLabel`, `diff`.

ParameterTypeDescription
actionstringExact action match, e.g. "endpoint.updated", "target.created", "key.revoked".
entityIdstringExact entity id (UUID or stream id depending on entityType).
entityTypestringExact entity type, e.g. "endpoint", "target", "line", "key".
limitintegerPage size. Default 50.
offsetintegerPage offset. Default 0.
sinceintegerLower bound on createdAt (unix ms). Inclusive.
untilintegerUpper bound on createdAt (unix ms). Inclusive.

list_projects

List the projects on your account (archived included), each with `id`, `slug`, `name`, `apiBaseUrl` and `archived`, plus `accountEmail` — the account this token authenticates as. Requires an ACCOUNT-scoped management token (one minted with no project) and the `read` scope. A PROJECT-scoped management token cannot call this: use it on its own project's tools instead.

create_project

Create a new project on your account so an agent can bootstrap from a fresh account. The slug is derived from the name and validated server-side (format, reserved words, uniqueness). Each plan includes a fixed number of active projects (free tiers one; paid plans more: see list_subscription_plans); at the limit this errors. If an existing project can host this integration, skip create_project and call create_project_token against it instead of adding another. Requires an ACCOUNT-scoped management token and the `config` scope. Returns the created project ({id, slug, name, apiBaseUrl, archived})…

ParameterTypeDescription
name *stringHuman-readable project name (1–100 chars). The slug is derived from it.

rename_project

Rename a project you own (the display name only: the slug, which identifies the project in URLs and API paths, never changes). Requires an ACCOUNT-scoped management token and the `config` scope. 404-equivalent error when you do not own the slug.

ParameterTypeDescription
name *stringThe new display name (1–100 chars).
slug *stringThe slug of a project you own.

archive_project

Archive a project you own. Reversible: the project + slug persist and credits are kept, but the data plane drops the tenant (callers get 404). Idempotent. Fails with an error if the project has archive protection enabled. That is a support-only unlock, not something this call can override. Requires an ACCOUNT-scoped management token and the `config` scope.

ParameterTypeDescription
slug *stringThe slug of a project you own.

protect_project

Turn on archive protection for a project you own: archive_project (on every surface: panel, REST, and this tool) then refuses until it is lifted. Idempotent. Permanent from here: there is no tool or API call to turn it back off; only contacting support can. Requires an ACCOUNT-scoped management token and the `config` scope.

ParameterTypeDescription
slug *stringThe slug of a project you own.

unarchive_project

Restore an archived project you own to the data plane. Restoring consumes one of your plan's active-project slots, so at the limit this returns an error telling you to archive another project or upgrade. Idempotent for an already-active project. Requires an ACCOUNT-scoped management token and the `config` scope.

ParameterTypeDescription
slug *stringThe slug of a project you own.

create_project_token

Mint a PROJECT-scoped management token (`er_mcp_`) for MCP and REST; it cannot authenticate relay traffic. Use it after create_project to configure a fresh project, or for any project you already own. Attenuated by design: the scopes must be a subset of THIS management token's own grant (`read` is always included), expiry is mandatory (1–90 days, default 30, never "never"), and the minted management token (being project-scoped) can never mint management tokens itself. `spend` is human-granted only: no management token, of any scope, can mint one carrying it. Mint a spend-scoped token from th…

ParameterTypeDescription
label *stringHuman-readable management token label (1–100 chars).
slug *stringThe slug of a project you own.
expiresInDaysintegerDays until the minted management token expires. Default 30. API-minted management tokens always expire.
scopesarrayScopes for the minted management token: must be a subset of this management token's own scopes. `read` is always granted. `spend` and the legacy `billing` scope are never mintable here (panel-only). D…

list_project_tokens

List the management tokens scoped to a project you own (any holder): id, label, scopes, createdAt, lastUsedAt, expiresAt, revokedAt: never the secret (only its hash is stored). Requires an ACCOUNT-scoped management token and the `read` scope.

ParameterTypeDescription
slug *stringThe slug of a project you own.

revoke_project_token

Revoke a PROJECT-scoped management token on a project you own, any holder's, not just your own (the account-owner kill switch for a leaked or retired integration's management token). Soft-revoke: the row stays for traceability and the management token is rejected immediately. Idempotent. Requires an ACCOUNT-scoped management token and the `config` scope.

ParameterTypeDescription
slug *stringThe slug of a project you own.
tokenId *stringThe management token UUID (from create_project_token or list_project_tokens).