{"name":"dev.echorelay/management","slug":"echorelay-management","title":"EchoRelay","description":"A managed runtime for custom API integrations. Manage lines, endpoints, keys, logs and DLQ via MCP.","url":"https://mcp.market/server/echorelay-management","rating":null,"grade":"C","score":60,"certified":false,"status":"active","category":"other","tags":[],"presence":{"score":5,"stars":null,"forks":null,"downloads_week":null,"last_push_at":null,"license":null},"uptime":{"percent":100,"checks":20,"ok":20,"last_checked_at":"2026-09-24T07:02:09.304Z","last_ok_at":"2026-09-24T07:02:09.304Z","latency_ms":87},"claimed":false,"transport":"remote","callable_via_gateway":true,"default_price_micros":0,"repository":null,"website":null,"version":"0.13.0","remotes":[{"type":"streamable-http","url":"https://mcp.echorelay.dev","headers":[{"description":"Bearer <MCP token> — create one in the EchoRelay panel under the project's API keys.","isRequired":true,"isSecret":true,"name":"Authorization"}]}],"packages":[],"tools":[{"name":"activate_line","description":"Activate and immediately publish an inactive line so it serves traffic again. Blocked at the active-line cap — deactivate another line first. Requires edit access.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."},"commitMode":{"type":"string","enum":["draft","publish"],"description":"Defaults to publish. Draft writes require draftRevision."},"draftRevision":{"type":"integer","description":"Current line draft revision, required for draft writes."}},"required":["lineKey"]}},{"name":"archive_project","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of a project you own."}},"required":["slug"]}},{"name":"cancel_line_publish","description":"Cancel one line schedule before its two-minute lock.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string"},"draftRevision":{"type":"integer"}},"required":["lineKey","draftRevision"]}},{"name":"cancel_subscription","description":"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 a token minted with the billing scope.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"change_plan","description":"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 a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"plan":{"type":"string","enum":["free","pro","scale"]}},"required":["plan"]}},{"name":"config_diff","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"create_api_key","description":"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).","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Human-readable label, up to 120 characters."},"mode":{"type":"string","enum":["live","test"],"description":"live → paid pool, test → testing pool (rate-limited to the plan's live rate)."},"ttlDays":{"type":["integer","null"],"description":"Lifetime in days. Omit to use the project's defaultKeyTtlDays from get_key_policy. Null = never expires (owner-only unless editorsMayCreateNonExpiringKeys is set)."}},"required":["name","mode"]}},{"name":"create_credential","description":"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. `destinationHost` is required and permanent: the credential is only ever sent to that host, over https, and no later call can re-aim it.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Human-readable label, up to 120 characters."},"destinationHost":{"type":"string","description":"The 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 scheme, port or path. Internationalised hosts must be given in punycode (\"xn--…\"). Permanent: attaching this credential to a target on any other host is refused, and it cannot be changed later — a different destination means a new credential, which means entering the secret again."},"auth":{"type":"object","description":"The credential's auth shape.","properties":{"type":{"type":"string","enum":["none","bearer","basic","apiKeyHeader","apiKeyQuery","publicPrivateKey"]},"token":{"type":"string","description":"bearer only."},"username":{"type":"string","description":"basic only."},"password":{"type":"string","description":"basic only."},"headerName":{"type":"string","description":"apiKeyHeader only, e.g. \"X-Api-Key\"."},"paramName":{"type":"string","description":"apiKeyQuery only, e.g. \"api_key\"."},"key":{"type":"string","description":"apiKeyHeader / apiKeyQuery / publicPrivateKey."},"secret":{"type":"string","description":"publicPrivateKey only."}},"required":["type"]}},"required":["name","destinationHost","auth"]}},{"name":"create_endpoint","description":"Create an endpoint under a line. Defaults to immediate publish; draft mode requires draftRevision. scheduledAt stages the line draft then schedules it. Requires edit access.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key to create the endpoint under."},"endpoint":{"type":"object","description":"An EchoRelay endpoint. Round-trips with the JSON returned by get_endpoint.","additionalProperties":false,"properties":{"name":{"type":"string","description":"Human-readable label for the endpoint.","minLength":1},"url":{"type":"string","description":"Path under the line, e.g. \"/webhook\". Must start with \"/\" and contain only [A-Za-z0-9/_-{}].","pattern":"^/[A-Za-z0-9/_\\-{}]*$"},"httpMethod":{"type":"string","description":"HTTP method callers must use. GET endpoints cannot declare a body attribute (see attributes[].in).","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]},"strict":{"type":"boolean","description":"When true, validation rejects any attribute not declared in attributes[]. Default false."},"rateLimit":{"type":["object","null"],"description":"Per-endpoint rate limit. Set to null to remove. Both fields required together.","additionalProperties":false,"properties":{"requests":{"type":"integer","minimum":1,"description":"Requests allowed per window."},"windowSeconds":{"type":"integer","minimum":1,"description":"Window size in seconds."}},"required":["requests","windowSeconds"]},"allowedIPs":{"type":"array","description":"Inbound IP allowlist, in CIDR notation (e.g. \"203.0.113.0/24\", \"::1/128\"). Empty array = allow all.","items":{"type":"string"}},"transformers":{"type":["array","null"],"description":"Endpoint-level request transformation pipeline, applied before any target-level transformers. Set to null to remove the override and inherit the line default (if the line has one); set to an empty array to explicitly apply no transformation even when the line has a default. Omit on update_endpoint to leave the existing value unchanged.","items":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["mergeFields","renameField","removeField","addField","mapValue","binaryToUrl"],"description":"mergeFields: from+to(+separator). renameField: from+to. removeField: field. addField: to+value. mapValue: field+mapping. binaryToUrl: ttlSeconds?+maxSizeMB? (both clamped server-side — omit for the server default)."},"params":{"type":["object","null"],"additionalProperties":false,"description":"Only the keys the chosen type reads are accepted; see the type description above.","properties":{"from":{"type":"array","items":{"type":"string"},"description":"mergeFields (all sources) / renameField (first element is the source)."},"to":{"type":"string","description":"Destination field — mergeFields / renameField / addField."},"field":{"type":"string","description":"Target field — removeField / mapValue."},"value":{"type":"string","description":"Constant value to set — addField."},"separator":{"type":"string","description":"Join separator — mergeFields (default \" \")."},"mapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Value lookup table — mapValue."},"ttlSeconds":{"type":"integer","minimum":1,"description":"Temp file lifetime in seconds — binaryToUrl."},"maxSizeMB":{"type":"integer","minimum":1,"description":"Max upload size in MB — binaryToUrl."}}}},"required":["type"]}},"idempotencyEnabled":{"type":"boolean","description":"When true, the Framework deduplicates on the caller's Idempotency-Key header. Default true."},"mock":{"type":"boolean","description":"When true, callers receive mockResponse without fan-out to targets. Targets are saved but not invoked."},"mockResponse":{"type":["object","null"],"description":"Response returned in mock mode. Required when mock=true.","additionalProperties":false,"properties":{"statusCode":{"type":"integer","minimum":100,"maximum":599},"contentType":{"type":"string","description":"e.g. \"application/json\"."},"body":{"type":"string","description":"Literal response body."}}},"attributes":{"type":"array","description":"Request validators. One entry per attribute; the Framework rejects callers whose payload fails the configured rules. Empty array = no validation.","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid","description":"Stable attribute id. Optional on create; generated when omitted."},"name":{"type":"string","description":"Attribute field name (matches the inbound payload key)."},"in":{"type":"string","enum":["body","query","header","path"],"description":"Where the attribute is read from on the inbound request."},"attributeType":{"type":"string","enum":["string","int","double","bool","array","object"],"description":"Expected value type."},"required":{"type":"boolean","description":"When true, requests missing this attribute are rejected."},"defaultValue":{"description":"Used when the attribute is absent and required=false. Any scalar."},"validators":{"type":"array","description":"Validator names to run, in order. See params for any bounds/values they need.","items":{"type":"string","enum":["email","phone","int","double","bool","string","array","dictionary","range","oneOf","type","nil","not","empty","arrayType","arrayLength","arraySubset","arrayIntersect","intString","doubleString","boolString","numberString","numberOneOf","stringLength","stringEmpty","stringJson","dictionaryString"]}},"params":{"type":"object","description":"Validator parameters. Recognised keys: min, max (range/stringLength/arrayLength), values (oneOf/arraySubset/arrayIntersect), numbers (numberOneOf), type (typeValidator/arrayType).","additionalProperties":true},"logging":{"type":"string","enum":["loggable","obscured","nonLoggable"],"description":"How the value appears in the request log. obscured = masked; nonLoggable = stripped entirely."},"forwarding":{"type":"string","enum":["blocked","forwardInPlace"],"description":"Only meaningful for in=query or in=path. blocked (default): validated, never sent to the target. forwardInPlace: sent to the target in the same location — a query attribute as a query parameter, a path attribute as a path segment. A path attribute forwards only when its name is its own zero-based segment position (\"0\" for the first segment after the endpoint URL, \"1\" for the next, …) — path segments are matched positionally, not by name. To carry a value into the body or a header instead, leave this blocked and add a field mapping on the target sourced from this attribute."},"description":{"type":"string","description":"Shown in the auto-generated OpenAPI doc."},"schema":{"type":["object","null"],"description":"Optional precise JSON shape, enforced recursively alongside validators[]. scalar: {type}. array: {type:\"array\", items:<schema>, minItems?, maxItems?}. object: {type:\"object\", properties:{name:<schema>}, required?:[...], additionalProperties?:bool}. type must match attributeType.","additionalProperties":true,"properties":{"type":{"type":"string","enum":["string","int","double","bool","array","object"]},"items":{"type":"object","description":"For type=array: the element schema (same form)."},"minItems":{"type":"integer","minimum":0},"maxItems":{"type":"integer","minimum":0},"properties":{"type":"object","description":"For type=object: map of property name → schema (same form)."},"required":{"type":"array","items":{"type":"string"},"description":"For type=object: property names that must be present."},"additionalProperties":{"type":"boolean","description":"For type=object: when false, reject members not in properties."}},"required":["type"]}},"required":["name","in","attributeType"]}},"targets":{"type":"array","description":"Outbound destinations. Required unless mock=true. Each entry becomes one queue fan-out.","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Display name for the target."},"targetUrl":{"type":"string","format":"uri","description":"Outbound URL. Cannot point back to this project (the Framework rejects relay loops)."},"auth":{"type":"object","description":"Outbound auth applied to the request. On reads, secrets are redacted to \"***\" — round-trip the sentinel to keep the stored secret. Ignored when credentialVaultEntryId is set.","additionalProperties":false,"properties":{"type":{"type":"string","enum":["none","bearer","basic","apiKeyHeader","apiKeyQuery","publicPrivateKey"]},"token":{"type":"string","description":"Required when type=bearer."},"username":{"type":"string","description":"Required when type=basic."},"password":{"type":"string","description":"Required when type=basic."},"headerName":{"type":"string","description":"Required when type=apiKeyHeader."},"paramName":{"type":"string","description":"Required when type=apiKeyQuery."},"key":{"type":"string","description":"Required when type=apiKeyHeader or type=apiKeyQuery or type=publicPrivateKey."},"secret":{"type":"string","description":"Required when type=publicPrivateKey."}},"required":["type"]},"credentialVaultEntryId":{"type":"string","description":"References a saved credential (see list_credentials/create_credential) instead of inline auth — the auth field above is ignored when this is set. Must belong to the same project. The credential is bound to a destination when it is created: targetUrl must be https and its host must match that credential's destinationHost, or the write is rejected."},"mapping":{"type":"array","description":"Optional transformer rules. Each rule moves or renames a field from the inbound request to the outbound one.","items":{"type":"object","additionalProperties":false,"properties":{"sourceIn":{"type":"string","enum":["body","query","header","path"]},"sourceName":{"type":"string","description":"Inbound field name to read."},"targetIn":{"type":"string","enum":["body","query","header"]},"targetName":{"type":"string","description":"Outbound field name to write."},"template":{"type":"string","description":"Optional templated value (e.g. \"Bearer {value}\")."}},"required":["sourceIn","sourceName","targetIn","targetName"]}},"deliveryMode":{"type":"string","enum":["async","sync","stream"],"description":"async = queued + retried (default); sync = caller waits up to syncTimeout for the target response; stream = SSE pass-through (max 1 per endpoint)."},"syncTimeout":{"type":"integer","minimum":1,"maximum":90,"description":"Seconds the caller waits for a sync target. Ignored unless deliveryMode=sync."},"retryPolicy":{"type":["object","null"],"description":"Async retry policy. Ignored unless deliveryMode=async. Leave it unset (null) and the platform default applies, which behaves the same as maxAttempts at its maximum. get_endpoint reports which is in effect: this object when set, null when the platform default applies.","additionalProperties":false,"properties":{"maxAttempts":{"type":"integer","minimum":1,"maximum":14,"description":"Total delivery attempts, counting the first. 1 fails fast: one try, then the dead-letter queue. Higher values keep retrying with a widening gap between tries — at the default backoffMultiplier, roughly under a minute at 4, a few minutes at 7, about an hour at 10, a few hours at 14. Anything still undelivered lands in the dead-letter queue. Defaults to 14."},"backoffMultiplier":{"type":"number","minimum":1,"maximum":5,"description":"How sharply the gap between tries widens. Higher spends the same attempts over a longer stretch. Defaults to 2.0."},"retryOn":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"description":"HTTP status codes that trigger a retry. Default [429, 500, 502, 503, 504]."}}},"callbackURL":{"type":"string","format":"uri","description":"Pushed once this target's delivery reaches a terminal status — see get_receipts' callbackState. Must be https. Meaningful for async targets only — refused on sync/stream. Cannot point back into this project (the same relay-loop rule as targetUrl) and must be inside the project's outbound host allowlist when one is set. Unset = the customer polls the receipt instead."},"signingSecret":{"type":["string","null"],"description":"Signs the body delivered to this target — separate from auth above, which authenticates OUTBOUND to the target. Shape: \"whsec_\" followed by base64 of 32 random bytes. Omit to leave unchanged; set to null to disable signing; set to your own whsec_-shaped value to use it verbatim (rejected otherwise, including an empty string — you hold this secret, so only you can supply it). On reads, a configured secret is redacted to \"***\" — round-trip that sentinel to keep the stored secret."},"transformers":{"type":"array","description":"Request transformation pipeline applied to this target before delivery. Empty array = no transformation.","items":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["mergeFields","renameField","removeField","addField","mapValue","binaryToUrl"],"description":"mergeFields: from+to(+separator). renameField: from+to. removeField: field. addField: to+value. mapValue: field+mapping. binaryToUrl: ttlSeconds?+maxSizeMB? (both clamped server-side — omit for the server default)."},"params":{"type":["object","null"],"additionalProperties":false,"description":"Only the keys the chosen type reads are accepted; see the type description above.","properties":{"from":{"type":"array","items":{"type":"string"},"description":"mergeFields (all sources) / renameField (first element is the source)."},"to":{"type":"string","description":"Destination field — mergeFields / renameField / addField."},"field":{"type":"string","description":"Target field — removeField / mapValue."},"value":{"type":"string","description":"Constant value to set — addField."},"separator":{"type":"string","description":"Join separator — mergeFields (default \" \")."},"mapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Value lookup table — mapValue."},"ttlSeconds":{"type":"integer","minimum":1,"description":"Temp file lifetime in seconds — binaryToUrl."},"maxSizeMB":{"type":"integer","minimum":1,"description":"Max upload size in MB — binaryToUrl."}}}},"required":["type"]}},"outgoingMapping":{"type":["object","null"],"description":"Reshapes the request into what this target expects — a tree of typed nodes conforming to the published grammar at \"https://schemas.echorelay.dev/transform/mapping/v1.json\" (its own $schema key must name that value). Mutually exclusive with mapping and transformers on this target, and with the endpoint's own transformers — the write is rejected if both are set. null = no reshaping (today's behaviour, and the only value this schema itself can validate; paths, types and cycles are checked server-side)."},"answerMapping":{"type":["object","null"],"description":"Reshapes this target's answer into what the caller receives — a tree of typed nodes conforming to the same published grammar as outgoingMapping. Refused on a stream target (deliveryMode=stream) — a stream's response is proxied straight through and never reshaped. null = no reshaping, the answer reaches the caller verbatim; paths, types and cycles are checked server-side."},"answerVariants":{"type":["object","null"],"description":"The conditional form of answerMapping, for a target whose answers do not all share one shape: one mapping per reply instead of one for every reply. Requires \"distinguishBy\" naming the single thing that tells them apart ({\"source\":\"status\"}, {\"source\":\"header\",\"name\":…} or {\"source\":\"bodyField\",\"path\":…}), \"variants\" as an object keyed by the value it matches — an exact status like \"429\", a class like \"4XX\", or \"default\" — each holding a tree in the same grammar as answerMapping — or, where the caller should be answered with a status of your own, an object {\"mapping\": <tree>, \"replyStatus\": 402} — and \"onNoMatch\", which has no default and must be either \"passthrough\" (hand the vendor's answer back untouched) or \"fail\" (answer 422 naming the value that matched nothing). A replyStatus is what the caller sees and never what the delivery is measured or charged as; it must be a status that can carry a body (200–599, excluding 204, 205 and redirects), and setting one drops the vendor's own response headers, which describe the answer it replaced. A variant keyed on a status that carries no body (204, 205, 304) is reachable only when it sets one. Mutually exclusive with answerMapping on this target, and refused on a stream target for the same reason answerMapping is. A variant whose tree does not compile is refused when the line is published, not silently dropped. null = no reshaping."}},"required":["name","targetUrl","auth","deliveryMode"]}}}},"scheduledAt":{"type":"string","description":"Compatibility alias: stage this endpoint in its line draft then schedule that line."},"commitMode":{"type":"string","enum":["draft","publish"],"description":"Defaults to publish. Draft writes require draftRevision."},"draftRevision":{"type":"integer","description":"Current line draft revision, required for draft writes."}},"required":["lineKey","endpoint"]}},{"name":"create_line","description":"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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Human-readable line name."},"lineKey":{"type":"string","description":"URL key, lowercase letters/digits/hyphens, e.g. \"v1\"."},"commitMode":{"type":"string","enum":["draft","publish"],"description":"Defaults to publish. Draft writes require draftRevision."},"draftRevision":{"type":"integer","description":"Current line draft revision, required for draft writes."}},"required":["name","lineKey"]}},{"name":"create_project","description":"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}); call create_project_token next to mint a management token for it.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Human-readable project name (1–100 chars). The slug is derived from it."}},"required":["name"]}},{"name":"create_project_token","description":"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 the project's panel instead. Requires an ACCOUNT-scoped management token and the `config` scope. Returns the plaintext exactly once; only its hash is stored.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of a project you own."},"label":{"type":"string","description":"Human-readable management token label (1–100 chars)."},"scopes":{"type":"array","items":{"type":"string","enum":["read","config","mint:keys","manage:billing"]},"description":"Scopes 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). Default: read + config."},"expiresInDays":{"type":"integer","minimum":1,"maximum":90,"description":"Days until the minted management token expires. Default 30. API-minted management tokens always expire."}},"required":["slug","label"]}},{"name":"deactivate_line","description":"Take a line off the data plane immediately (callers get 404) without deleting it — endpoints/targets/config are preserved and it can be reactivated later. A deliberate action; live traffic is never auto-disabled. Requires edit access.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."},"commitMode":{"type":"string","enum":["draft","publish"],"description":"Defaults to publish. Draft writes require draftRevision."},"draftRevision":{"type":"integer","description":"Current line draft revision, required for draft writes."}},"required":["lineKey"]}},{"name":"default_endpoint_template","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."}},"required":["lineKey"]}},{"name":"delete_credential","description":"Delete a saved credential. Blocked (not a permission or not-found error — a validation error) while any target still references it; repoint or remove those targets first.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"credentialId":{"type":"string","description":"UUID of the credential to delete."}},"required":["credentialId"]}},{"name":"delete_endpoint","description":"Delete an endpoint and its targets, publishing the removal immediately. Requires edit access.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."},"endpointId":{"type":"string","description":"The endpoint UUID."},"commitMode":{"type":"string","enum":["draft","publish"],"description":"Defaults to publish. Draft writes require draftRevision."},"draftRevision":{"type":"integer","description":"Current line draft revision, required for draft writes."}},"required":["lineKey","endpointId"]}},{"name":"delete_line","description":"Delete a line and every endpoint under it, publishing the removal immediately. Requires edit access.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."},"commitMode":{"type":"string","enum":["draft","publish"],"description":"Defaults to publish. Draft writes require draftRevision."},"draftRevision":{"type":"integer","description":"Current line draft revision, required for draft writes."}},"required":["lineKey"]}},{"name":"discard_dlq_entry","description":"Permanently delete a DLQ entry without retrying. Requires edit access.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"id":{"type":"string","description":"Dead-letter entry id from list_dlq."}},"required":["id"]}},{"name":"discard_draft_endpoint","description":"Discard one endpoint change from a line draft.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string"},"endpointId":{"type":"string"},"draftRevision":{"type":"integer"}},"required":["lineKey","endpointId","draftRevision"]}},{"name":"discard_line_draft","description":"Discard every unpublished change and schedule for one line.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string"},"draftRevision":{"type":"integer"}},"required":["lineKey","draftRevision"]}},{"name":"downgrade_addon","description":"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 a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"addonKey":{"type":"string","description":"Current active add-on key to downgrade from."},"targetAddonKey":{"type":"string","description":"Target (lower) add-on key to downgrade to."}},"required":["addonKey","targetAddonKey"],"additionalProperties":false}},{"name":"dry_run_endpoint","description":"Validate an endpoint document without writing it. Returns either {ok: true, resolved: <Framework config slice>} or {ok: false, errors: {...}}. Pass endpointId to dry-run a PATCH against an existing endpoint; omit it to dry-run a create. Supply sample and/or answerSample to also run each target's mapping against a real payload and see what it produces, which field came from which node, and every rule that failed with the value that broke it. No DB write, no queue entry, no billing, and the payload is never sent anywhere.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key."},"endpointId":{"type":"string","description":"Optional: dry-run a PATCH against this endpoint UUID."},"endpoint":{"type":"object","description":"Endpoint document (for create dry-run) or PATCH body (when endpointId is supplied).","additionalProperties":false,"properties":{"name":{"type":"string","description":"Human-readable label for the endpoint.","minLength":1},"url":{"type":"string","description":"Path under the line, e.g. \"/webhook\". Must start with \"/\" and contain only [A-Za-z0-9/_-{}].","pattern":"^/[A-Za-z0-9/_\\-{}]*$"},"httpMethod":{"type":"string","description":"HTTP method callers must use. GET endpoints cannot declare a body attribute (see attributes[].in).","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]},"strict":{"type":"boolean","description":"When true, validation rejects any attribute not declared in attributes[]. Default false."},"rateLimit":{"type":["object","null"],"description":"Per-endpoint rate limit. Set to null to remove. Both fields required together.","additionalProperties":false,"properties":{"requests":{"type":"integer","minimum":1,"description":"Requests allowed per window."},"windowSeconds":{"type":"integer","minimum":1,"description":"Window size in seconds."}},"required":["requests","windowSeconds"]},"allowedIPs":{"type":"array","description":"Inbound IP allowlist, in CIDR notation (e.g. \"203.0.113.0/24\", \"::1/128\"). Empty array = allow all.","items":{"type":"string"}},"transformers":{"type":["array","null"],"description":"Endpoint-level request transformation pipeline, applied before any target-level transformers. Set to null to remove the override and inherit the line default (if the line has one); set to an empty array to explicitly apply no transformation even when the line has a default. Omit on update_endpoint to leave the existing value unchanged.","items":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["mergeFields","renameField","removeField","addField","mapValue","binaryToUrl"],"description":"mergeFields: from+to(+separator). renameField: from+to. removeField: field. addField: to+value. mapValue: field+mapping. binaryToUrl: ttlSeconds?+maxSizeMB? (both clamped server-side — omit for the server default)."},"params":{"type":["object","null"],"additionalProperties":false,"description":"Only the keys the chosen type reads are accepted; see the type description above.","properties":{"from":{"type":"array","items":{"type":"string"},"description":"mergeFields (all sources) / renameField (first element is the source)."},"to":{"type":"string","description":"Destination field — mergeFields / renameField / addField."},"field":{"type":"string","description":"Target field — removeField / mapValue."},"value":{"type":"string","description":"Constant value to set — addField."},"separator":{"type":"string","description":"Join separator — mergeFields (default \" \")."},"mapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Value lookup table — mapValue."},"ttlSeconds":{"type":"integer","minimum":1,"description":"Temp file lifetime in seconds — binaryToUrl."},"maxSizeMB":{"type":"integer","minimum":1,"description":"Max upload size in MB — binaryToUrl."}}}},"required":["type"]}},"idempotencyEnabled":{"type":"boolean","description":"When true, the Framework deduplicates on the caller's Idempotency-Key header. Default true."},"mock":{"type":"boolean","description":"When true, callers receive mockResponse without fan-out to targets. Targets are saved but not invoked."},"mockResponse":{"type":["object","null"],"description":"Response returned in mock mode. Required when mock=true.","additionalProperties":false,"properties":{"statusCode":{"type":"integer","minimum":100,"maximum":599},"contentType":{"type":"string","description":"e.g. \"application/json\"."},"body":{"type":"string","description":"Literal response body."}}},"attributes":{"type":"array","description":"Request validators. One entry per attribute; the Framework rejects callers whose payload fails the configured rules. Empty array = no validation.","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid","description":"Stable attribute id. Optional on create; generated when omitted."},"name":{"type":"string","description":"Attribute field name (matches the inbound payload key)."},"in":{"type":"string","enum":["body","query","header","path"],"description":"Where the attribute is read from on the inbound request."},"attributeType":{"type":"string","enum":["string","int","double","bool","array","object"],"description":"Expected value type."},"required":{"type":"boolean","description":"When true, requests missing this attribute are rejected."},"defaultValue":{"description":"Used when the attribute is absent and required=false. Any scalar."},"validators":{"type":"array","description":"Validator names to run, in order. See params for any bounds/values they need.","items":{"type":"string","enum":["email","phone","int","double","bool","string","array","dictionary","range","oneOf","type","nil","not","empty","arrayType","arrayLength","arraySubset","arrayIntersect","intString","doubleString","boolString","numberString","numberOneOf","stringLength","stringEmpty","stringJson","dictionaryString"]}},"params":{"type":"object","description":"Validator parameters. Recognised keys: min, max (range/stringLength/arrayLength), values (oneOf/arraySubset/arrayIntersect), numbers (numberOneOf), type (typeValidator/arrayType).","additionalProperties":true},"logging":{"type":"string","enum":["loggable","obscured","nonLoggable"],"description":"How the value appears in the request log. obscured = masked; nonLoggable = stripped entirely."},"forwarding":{"type":"string","enum":["blocked","forwardInPlace"],"description":"Only meaningful for in=query or in=path. blocked (default): validated, never sent to the target. forwardInPlace: sent to the target in the same location — a query attribute as a query parameter, a path attribute as a path segment. A path attribute forwards only when its name is its own zero-based segment position (\"0\" for the first segment after the endpoint URL, \"1\" for the next, …) — path segments are matched positionally, not by name. To carry a value into the body or a header instead, leave this blocked and add a field mapping on the target sourced from this attribute."},"description":{"type":"string","description":"Shown in the auto-generated OpenAPI doc."},"schema":{"type":["object","null"],"description":"Optional precise JSON shape, enforced recursively alongside validators[]. scalar: {type}. array: {type:\"array\", items:<schema>, minItems?, maxItems?}. object: {type:\"object\", properties:{name:<schema>}, required?:[...], additionalProperties?:bool}. type must match attributeType.","additionalProperties":true,"properties":{"type":{"type":"string","enum":["string","int","double","bool","array","object"]},"items":{"type":"object","description":"For type=array: the element schema (same form)."},"minItems":{"type":"integer","minimum":0},"maxItems":{"type":"integer","minimum":0},"properties":{"type":"object","description":"For type=object: map of property name → schema (same form)."},"required":{"type":"array","items":{"type":"string"},"description":"For type=object: property names that must be present."},"additionalProperties":{"type":"boolean","description":"For type=object: when false, reject members not in properties."}},"required":["type"]}},"required":["name","in","attributeType"]}},"targets":{"type":"array","description":"Outbound destinations. Required unless mock=true. Each entry becomes one queue fan-out.","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Display name for the target."},"targetUrl":{"type":"string","format":"uri","description":"Outbound URL. Cannot point back to this project (the Framework rejects relay loops)."},"auth":{"type":"object","description":"Outbound auth applied to the request. On reads, secrets are redacted to \"***\" — round-trip the sentinel to keep the stored secret. Ignored when credentialVaultEntryId is set.","additionalProperties":false,"properties":{"type":{"type":"string","enum":["none","bearer","basic","apiKeyHeader","apiKeyQuery","publicPrivateKey"]},"token":{"type":"string","description":"Required when type=bearer."},"username":{"type":"string","description":"Required when type=basic."},"password":{"type":"string","description":"Required when type=basic."},"headerName":{"type":"string","description":"Required when type=apiKeyHeader."},"paramName":{"type":"string","description":"Required when type=apiKeyQuery."},"key":{"type":"string","description":"Required when type=apiKeyHeader or type=apiKeyQuery or type=publicPrivateKey."},"secret":{"type":"string","description":"Required when type=publicPrivateKey."}},"required":["type"]},"credentialVaultEntryId":{"type":"string","description":"References a saved credential (see list_credentials/create_credential) instead of inline auth — the auth field above is ignored when this is set. Must belong to the same project. The credential is bound to a destination when it is created: targetUrl must be https and its host must match that credential's destinationHost, or the write is rejected."},"mapping":{"type":"array","description":"Optional transformer rules. Each rule moves or renames a field from the inbound request to the outbound one.","items":{"type":"object","additionalProperties":false,"properties":{"sourceIn":{"type":"string","enum":["body","query","header","path"]},"sourceName":{"type":"string","description":"Inbound field name to read."},"targetIn":{"type":"string","enum":["body","query","header"]},"targetName":{"type":"string","description":"Outbound field name to write."},"template":{"type":"string","description":"Optional templated value (e.g. \"Bearer {value}\")."}},"required":["sourceIn","sourceName","targetIn","targetName"]}},"deliveryMode":{"type":"string","enum":["async","sync","stream"],"description":"async = queued + retried (default); sync = caller waits up to syncTimeout for the target response; stream = SSE pass-through (max 1 per endpoint)."},"syncTimeout":{"type":"integer","minimum":1,"maximum":90,"description":"Seconds the caller waits for a sync target. Ignored unless deliveryMode=sync."},"retryPolicy":{"type":["object","null"],"description":"Async retry policy. Ignored unless deliveryMode=async. Leave it unset (null) and the platform default applies, which behaves the same as maxAttempts at its maximum. get_endpoint reports which is in effect: this object when set, null when the platform default applies.","additionalProperties":false,"properties":{"maxAttempts":{"type":"integer","minimum":1,"maximum":14,"description":"Total delivery attempts, counting the first. 1 fails fast: one try, then the dead-letter queue. Higher values keep retrying with a widening gap between tries — at the default backoffMultiplier, roughly under a minute at 4, a few minutes at 7, about an hour at 10, a few hours at 14. Anything still undelivered lands in the dead-letter queue. Defaults to 14."},"backoffMultiplier":{"type":"number","minimum":1,"maximum":5,"description":"How sharply the gap between tries widens. Higher spends the same attempts over a longer stretch. Defaults to 2.0."},"retryOn":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"description":"HTTP status codes that trigger a retry. Default [429, 500, 502, 503, 504]."}}},"callbackURL":{"type":"string","format":"uri","description":"Pushed once this target's delivery reaches a terminal status — see get_receipts' callbackState. Must be https. Meaningful for async targets only — refused on sync/stream. Cannot point back into this project (the same relay-loop rule as targetUrl) and must be inside the project's outbound host allowlist when one is set. Unset = the customer polls the receipt instead."},"signingSecret":{"type":["string","null"],"description":"Signs the body delivered to this target — separate from auth above, which authenticates OUTBOUND to the target. Shape: \"whsec_\" followed by base64 of 32 random bytes. Omit to leave unchanged; set to null to disable signing; set to your own whsec_-shaped value to use it verbatim (rejected otherwise, including an empty string — you hold this secret, so only you can supply it). On reads, a configured secret is redacted to \"***\" — round-trip that sentinel to keep the stored secret."},"transformers":{"type":"array","description":"Request transformation pipeline applied to this target before delivery. Empty array = no transformation.","items":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["mergeFields","renameField","removeField","addField","mapValue","binaryToUrl"],"description":"mergeFields: from+to(+separator). renameField: from+to. removeField: field. addField: to+value. mapValue: field+mapping. binaryToUrl: ttlSeconds?+maxSizeMB? (both clamped server-side — omit for the server default)."},"params":{"type":["object","null"],"additionalProperties":false,"description":"Only the keys the chosen type reads are accepted; see the type description above.","properties":{"from":{"type":"array","items":{"type":"string"},"description":"mergeFields (all sources) / renameField (first element is the source)."},"to":{"type":"string","description":"Destination field — mergeFields / renameField / addField."},"field":{"type":"string","description":"Target field — removeField / mapValue."},"value":{"type":"string","description":"Constant value to set — addField."},"separator":{"type":"string","description":"Join separator — mergeFields (default \" \")."},"mapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Value lookup table — mapValue."},"ttlSeconds":{"type":"integer","minimum":1,"description":"Temp file lifetime in seconds — binaryToUrl."},"maxSizeMB":{"type":"integer","minimum":1,"description":"Max upload size in MB — binaryToUrl."}}}},"required":["type"]}},"outgoingMapping":{"type":["object","null"],"description":"Reshapes the request into what this target expects — a tree of typed nodes conforming to the published grammar at \"https://schemas.echorelay.dev/transform/mapping/v1.json\" (its own $schema key must name that value). Mutually exclusive with mapping and transformers on this target, and with the endpoint's own transformers — the write is rejected if both are set. null = no reshaping (today's behaviour, and the only value this schema itself can validate; paths, types and cycles are checked server-side)."},"answerMapping":{"type":["object","null"],"description":"Reshapes this target's answer into what the caller receives — a tree of typed nodes conforming to the same published grammar as outgoingMapping. Refused on a stream target (deliveryMode=stream) — a stream's response is proxied straight through and never reshaped. null = no reshaping, the answer reaches the caller verbatim; paths, types and cycles are checked server-side."},"answerVariants":{"type":["object","null"],"description":"The conditional form of answerMapping, for a target whose answers do not all share one shape: one mapping per reply instead of one for every reply. Requires \"distinguishBy\" naming the single thing that tells them apart ({\"source\":\"status\"}, {\"source\":\"header\",\"name\":…} or {\"source\":\"bodyField\",\"path\":…}), \"variants\" as an object keyed by the value it matches — an exact status like \"429\", a class like \"4XX\", or \"default\" — each holding a tree in the same grammar as answerMapping — or, where the caller should be answered with a status of your own, an object {\"mapping\": <tree>, \"replyStatus\": 402} — and \"onNoMatch\", which has no default and must be either \"passthrough\" (hand the vendor's answer back untouched) or \"fail\" (answer 422 naming the value that matched nothing). A replyStatus is what the caller sees and never what the delivery is measured or charged as; it must be a status that can carry a body (200–599, excluding 204, 205 and redirects), and setting one drops the vendor's own response headers, which describe the answer it replaced. A variant keyed on a status that carries no body (204, 205, 304) is reachable only when it sets one. Mutually exclusive with answerMapping on this target, and refused on a stream target for the same reason answerMapping is. A variant whose tree does not compile is refused when the line is published, not silently dropped. null = no reshaping."}},"required":["name","targetUrl","auth","deliveryMode"]}}}},"sample":{"type":["object","array","string","number","boolean","null"],"description":"Optional: a request payload, shaped as one a caller would actually send, passed as JSON rather than as a string containing JSON. Every target carrying an outgoingMapping is evaluated against it and the verdict is attached to that target as outgoingMappingEvaluation."},"answerSample":{"type":["object","array","string","number","boolean","null"],"description":"Optional: an answer payload, shaped as one a target would actually return. Drives answerMapping the same way, as answerMappingEvaluation. It cannot be inferred from sample — the two travel in opposite directions."}},"required":["lineKey","endpoint"]}},{"name":"duplicate_line","description":"Copy a line and all its endpoints/targets/rules into a new line key — build v2 from v1. The copy is saved inactive and remains off the data plane; edit it, then activate_line when ready. Requires edit access.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The source line key to copy."},"newLineKey":{"type":"string","description":"New line key for the copy, e.g. \"v2\"."},"name":{"type":"string","description":"Optional name for the copy (defaults to \"<source name> (copy)\")."},"commitMode":{"type":"string","enum":["draft","publish"],"description":"Defaults to publish. Draft writes require draftRevision."},"draftRevision":{"type":"integer","description":"Current line draft revision, required for draft writes."}},"required":["lineKey","newLineKey"]}},{"name":"generate_line_draft","description":"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 draft flows through preview_line_draft, dry_run_endpoint, config_diff and publish_line_draft like any other. Requires edit access.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key to draft the generated endpoint under."},"sample":{"type":"object","description":"A sample inbound request body, shaped as one a real caller would send — one JSON field per key."},"targetDocument":{"type":"string","description":"The target's OpenAPI 3.x document (YAML or JSON). Mutually exclusive with targetSample; must describe exactly one operation."},"targetFilename":{"type":"string","description":"Filename hint for targetDocument, to decide YAML vs JSON. Defaults to \"target.json\"."},"targetSample":{"type":"object","description":"A raw sample of the target's own request body, used instead of targetDocument when there is no spec to read. Requires targetUrl."},"targetUrl":{"type":"string","description":"The target URL. Required when targetSample is used; ignored when targetDocument is used (its servers[] entry wins)."},"targetHttpMethod":{"type":"string","description":"HTTP method for the target when using targetSample. Defaults to POST."},"deliveryMode":{"type":"string","enum":["async","sync","stream"],"description":"The caller contract this endpoint offers: async acceptance with later outcomes, one sync reply, or a stream."},"draftRevision":{"type":"integer","description":"The line's current draft revision (0 for a line with no draft yet) — see get_line_draft."}},"required":["lineKey","sample","deliveryMode","draftRevision"]}},{"name":"get_billing","description":"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 that a project cannot send. On a Pro or Scale plan billed for overage, `overage` reports the billing cycle running now: `usedCredits`, `overageCredits` (beyond the allowance and prepaid credits), `amount` so far in minor units of `currency` (null when it cannot be worked out), `windowEndsAt`, `throttled` (true while this cycle's request limit is halved because spend passed five times the plan's credits) and `throttledUntil` (when the halved limit ends, or null); it is absent otherwise. On Pro or Scale, `overageBilling` is the account's own overage setting, changed with set_overage_billing.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"get_config","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"get_dlq_entry","description":"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 age out the same as any other.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"id":{"type":"string","description":"Dead-letter entry id, e.g. \"1717930000000-0\" (as returned by list_dlq). Changes on every retry — prefer requestId to track an entry across replays."},"requestId":{"type":"string","description":"The 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 / requestId."}},"oneOf":[{"required":["id"]},{"required":["requestId"]}]}},{"name":"get_endpoint","description":"Get the full JSON of one endpoint, including its targets, auth keys and attributes.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."},"endpointId":{"type":"string","description":"The endpoint UUID."}},"required":["lineKey","endpointId"]}},{"name":"get_key_policy","description":"Returns the project's key policy: defaultKeyTtlDays, maxKeyTtlDays, editorsMayCreateNonExpiringKeys.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"get_line_draft","description":"Read one line draft, its optimistic revision, preview, and schedule.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."}},"required":["lineKey"]}},{"name":"get_metrics","description":"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 downgraded to \"day\" otherwise (the response includes `planGated: true` when that happens). Returns `{window, requestedWindow, planGated, scope, targetId?, endpointId?, bucketSeconds, buckets[], volume[], errors[], totalVolume, totalErrors, errorRate}` plus latency series whose keys depend on scope: an inbound read (project-wide, or `endpointId`) carries `relayP50[]/relayP95[]/relayP99[]` for our own time and `targetP50[]/targetP95[]/targetP99[]` for the destination's, never blended; a `targetId` read carries `p50[]/p95[]/p99[]` for that target's attempts — series arrays are dense (one point per bucket, zero-filled when no traffic).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"window":{"type":"string","enum":["hour","day","week","month"],"description":"Time horizon. Defaults to \"day\". \"week\"/\"month\" require a paid plan; otherwise the server returns \"day\" with planGated=true."},"targetId":{"type":"string","description":"Optional 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."},"endpointId":{"type":"string","description":"Optional endpoint UUID (from list_endpoints / get_endpoint). When set, the series aggregate inbound request rows for that endpoint only. Mutually exclusive with targetId."}}}},{"name":"get_project","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"get_receipts","description":"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 (none/pending/delivered/failed — whether the target's completion-callback URL, if any, has been notified). When available is false, `reason` is \"sync_or_stream_delivery\" (the target answers inside the original HTTP response and is never tracked here — see the response body from that call instead) or \"not_found\" (no record for this target, e.g. aged past the retention window).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"requestId":{"type":"string","description":"UUID returned by the relay in 202 responses or visible in list_requests rows."}},"required":["requestId"]}},{"name":"get_request","description":"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).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"requestId":{"type":"string","description":"UUID returned by the relay in 202 responses or visible in list_requests rows."}},"required":["requestId"]}},{"name":"get_subscription","description":"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 a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"invite_member","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address to invite."},"role":{"type":"string","enum":["editor","viewer","billing"],"description":"Role to assign on acceptance."}},"required":["email","role"]}},{"name":"list_active_addons","description":"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 a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"list_addons","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"list_api_keys","description":"List the project's inbound API keys (metadata only — the secret plaintext is never returned).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"list_audit_events","description":"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`.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"action":{"type":"string","description":"Exact action match, e.g. \"endpoint.updated\", \"target.created\", \"key.revoked\"."},"entityType":{"type":"string","description":"Exact entity type, e.g. \"endpoint\", \"target\", \"line\", \"key\"."},"entityId":{"type":"string","description":"Exact entity id (UUID or stream id depending on entityType)."},"since":{"type":"integer","description":"Lower bound on createdAt (unix ms). Inclusive."},"until":{"type":"integer","description":"Upper bound on createdAt (unix ms). Inclusive."},"limit":{"type":"integer","minimum":1,"maximum":200,"description":"Page size. Default 50."},"offset":{"type":"integer","minimum":0,"description":"Page offset. Default 0."}}}},{"name":"list_config_revisions","description":"List retained revisions for one line so a prior revision can be selected for rollback.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."}},"required":["lineKey"]}},{"name":"list_credentials","description":"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).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"list_credit_packs","description":"List the prepaid credit packs the project owner can purchase. Read-only. Identify a pack to start_topup by its `eurCents`.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"list_dlq","description":"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`, `failedAt`, `payload` (the JSON of the queued delivery as it was attempted); `evictedCount` is the lifetime count of entries the queue's capacity cap discarded before they could be triaged. DLQ entries — including the original request body and headers — are kept for up to 30 days from the failure time or until cleared, then purged automatically (or discarded early past capacity — see `evictedCount`); they are never written to a database. get_request still answers what happened to a purged/evicted/discarded entry's inbound request for the project's requestLogRetentionDays window, independent of whether the DLQ row itself still exists. `requestId` is the durable handle across a retry: an entry's own `id` changes every time it is replayed and later dead-letters again, so get_dlq_entry accepts a `requestId` lookup as well as `id`.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":200,"description":"Page size. Default 50."},"offset":{"type":"integer","minimum":0,"description":"Page offset. Default 0."}}}},{"name":"list_endpoints","description":"List the endpoints under one line of the project.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."}},"required":["lineKey"]}},{"name":"list_lines","description":"List the project's versioned API lines (e.g. v1, v2), each with its endpoint count.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"list_members","description":"List accepted and pending members of this project. Shows name/email, role, and whether the invite has been accepted. Owner only.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"list_project_tokens","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of a project you own."}},"required":["slug"]}},{"name":"list_projects","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"list_requests","description":"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).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"status":{"type":"integer","description":"Exact HTTP status code (e.g. 404)."},"method":{"type":"string","description":"HTTP method (POST, GET, …). Case-insensitive."},"path":{"type":"string","description":"Substring of the request path (e.g. \"/webhook\"). LIKE-matched."},"since":{"type":"integer","description":"Lower bound on ts (unix ms). Inclusive."},"until":{"type":"integer","description":"Upper bound on ts (unix ms). Inclusive."},"targetOutcome":{"type":"string","enum":["success","permanent_failure","retry_scheduled","dlq"],"description":"Narrow 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."},"limit":{"type":"integer","minimum":1,"maximum":200,"description":"Page size. Default 50."},"offset":{"type":"integer","minimum":0,"description":"Page offset. Default 0."}}}},{"name":"list_subscription_plans","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{}}},{"name":"preview_line_draft","description":"Preview one line draft without publishing it.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."}},"required":["lineKey"]}},{"name":"preview_plan_change","description":"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 a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"plan":{"type":"string","enum":["free","pro","scale"],"description":"Target plan to preview a switch to."}},"required":["plan"]}},{"name":"protect_project","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of a project you own."}},"required":["slug"]}},{"name":"publish_line_draft","description":"Publish one line draft now and clear only its schedule.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string"},"draftRevision":{"type":"integer"}},"required":["lineKey","draftRevision"]}},{"name":"remove_member","description":"Remove a member (accepted or pending) from this project by their member ID or email. Owner only.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"memberId":{"type":"string","description":"Member record UUID (from list_members)."},"email":{"type":"string","description":"Email address (alternative to memberId — removes the first matching member)."}}}},{"name":"rename_project","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of a project you own."},"name":{"type":"string","description":"The new display name (1–100 chars)."}},"required":["slug","name"]}},{"name":"resend_invite","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"memberId":{"type":"string","description":"Member record UUID (from list_members)."},"email":{"type":"string","description":"Email address (alternative to memberId — targets the first matching pending invite)."}}}},{"name":"resume_addon","description":"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 a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"addonKey":{"type":"string","description":"Add-on key to resume (e.g. \"log_retention\", \"rpm_5000\")."}},"required":["addonKey"],"additionalProperties":false}},{"name":"retry_dlq_entry","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"id":{"type":"string","description":"Dead-letter entry id from list_dlq."}},"required":["id"]}},{"name":"reveal_rotation_successor","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"keyId":{"type":"string","description":"UUID of the predecessor key whose successor to reveal."}},"required":["keyId"]}},{"name":"revoke_api_key","description":"Manual hard revoke. The key stops authenticating on the next request. Owner anywhere, editor on own keys.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"keyId":{"type":"string","description":"UUID of the key to revoke."}},"required":["keyId"]}},{"name":"revoke_project_token","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of a project you own."},"tokenId":{"type":"string","description":"The management token UUID (from create_project_token or list_project_tokens)."}},"required":["slug","tokenId"]}},{"name":"rollback_config","description":"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 diff and confirm again. Applying also requires confirmUnsigned, the preview's unsignedFingerprint, so a signing secret expiring between the preview and the confirm cannot roll a target back unsigned without you having seen it named.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string"},"revision":{"type":"integer","minimum":1},"confirmRevision":{"type":"integer","minimum":1,"description":"The currently-published revision number from the preview diff. Omit to preview only; include to apply."},"confirmUnsigned":{"type":"string","description":"The 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 preview named as coming back unsigned. A stale one is refused with \"rollback_confirmation_conflict\"."}},"required":["lineKey","revision"]}},{"name":"rotate_api_key","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"keyId":{"type":"string","description":"UUID of the key to rotate."}},"required":["keyId"]}},{"name":"schedule_line_publish","description":"Schedule one non-empty line draft. Active subscribers required.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string"},"draftRevision":{"type":"integer"},"scheduledAt":{"type":"string"}},"required":["lineKey","draftRevision","scheduledAt"]}},{"name":"set_burst_opt_in","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"true to enable the burst window; false to disable."}},"required":["enabled"]}},{"name":"set_docs_shared","description":"Turn the line's public OpenAPI docs on or off. When enabled, the line's spec is published at docs.{baseDomain}/{slug}/{lineKey} (and …/openapi.json); when disabled those URLs return 404. The `docsShared` field on each line read (list_lines) reflects the current state. Requires edit access.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key, e.g. \"v1\"."},"enabled":{"type":"boolean","description":"true to publish the line's public docs; false to take them down."},"commitMode":{"type":"string","enum":["draft","publish"],"description":"Defaults to publish. Draft writes require draftRevision."},"draftRevision":{"type":"integer","description":"Current line draft revision, required for draft writes."}},"required":["lineKey","enabled"]}},{"name":"set_key_policy","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"defaultKeyTtlDays":{"type":["integer","null"]},"maxKeyTtlDays":{"type":["integer","null"]},"editorsMayCreateNonExpiringKeys":{"type":"boolean"}}}},{"name":"set_member_role","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"memberId":{"type":"string","description":"Member record UUID (from list_members)."},"email":{"type":"string","description":"Email address (alternative to memberId — targets the first matching member)."},"role":{"type":"string","enum":["editor","viewer","billing"],"description":"The new role."}},"required":["role"]}},{"name":"set_outbound_allowlist","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"patterns":{"type":"array","items":{"type":"string"},"description":"The full replacement list of allowed hosts, e.g. [\"api.stripe.com\", \"*.internal.example.com\"]. Must be a subset of the current outboundHostAllowlist."}},"required":["patterns"]}},{"name":"set_overage_billing","description":"Turn the project owner's overage billing on or off, for the whole account. Returns `{overageBilling}`, the setting get_billing reads back. Owner-only; requires a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"True (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 still bills overage already used this billing cycle; turning it on bills only usage after the change."}},"required":["enabled"]}},{"name":"set_rpm_ceiling","description":"Set or clear a self-set ceiling on this project's own effective live-traffic RPM (Traffic shaping) — 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. Steady traffic is capped at the ceiling; if Burst Protect is on, its headroom is measured above the ceiling, not above the plan rate. The current value is on get_project as `rpmCeiling` (null = no ceiling). Requires edit access.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"rpmCeiling":{"type":["integer","null"],"minimum":1,"description":"A positive integer to set the ceiling, or null to clear it."}},"required":["rpmCeiling"]}},{"name":"start_subscription","description":"Begin a new Pro or Scale subscription for the project owner. Returns `{checkoutUrl, plan}` — surface the URL to the human for approval. Errors if the owner is already on an active paid plan (use change_plan instead). Owner-only; requires a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"plan":{"type":"string","enum":["pro","scale"]}},"required":["plan"]}},{"name":"start_topup","description":"Begin a credit-pack top-up for the project owner. Pass the pack`s `eurCents` (from list_credit_packs). Returns `{checkoutUrl, credits, eurCents, directCharge}` or `{transactionId, credits, eurCents, directCharge:true}` on subsequent MCP purchases. Owner-only; requires a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"eurCents":{"type":"integer","minimum":1,"description":"Pack price in EUR cents, matching a pack returned by list_credit_packs."}},"required":["eurCents"]}},{"name":"subscribe_addon","description":"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, activatedAt, nextRenewalAt}`. `transactionId`: The Paddle transaction id, or null while Paddle has not yet listed the charge. The purchase is recorded either way; do not retry it. `chargeStatus`: `pending` or `completed`. Owner-only; requires a token minted with the billing scope.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"addonKey":{"type":"string","description":"Stable key from list_addons (e.g. \"team_member\", \"rpm_2000\", \"log_retention\", \"file_storage\")."}},"required":["addonKey"]}},{"name":"unarchive_project","description":"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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of a project you own."}},"required":["slug"]}},{"name":"unsubscribe_addon","description":"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 a token minted with the billing scope.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"addonKey":{"type":"string"}},"required":["addonKey"]}},{"name":"update_credential","description":"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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"credentialId":{"type":"string","description":"UUID of the credential (from list_credentials)."},"name":{"type":"string","description":"New name. Omit to keep the existing one."},"destinationHost":{"type":"string","description":"Permanent — 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."},"auth":{"type":"object","description":"Same shape as create_credential. Omit to keep the existing auth entirely."}},"required":["credentialId"]}},{"name":"update_endpoint","description":"Update an endpoint immediately or in its line draft. The patch is merged field-by-field. Requires edit access.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"lineKey":{"type":"string","description":"The line key."},"endpointId":{"type":"string","description":"The endpoint UUID."},"patch":{"type":"object","description":"Partial endpoint document — same shape as create_endpoint, every field optional.","additionalProperties":false,"properties":{"name":{"type":"string","description":"Human-readable label for the endpoint.","minLength":1},"url":{"type":"string","description":"Path under the line, e.g. \"/webhook\". Must start with \"/\" and contain only [A-Za-z0-9/_-{}].","pattern":"^/[A-Za-z0-9/_\\-{}]*$"},"httpMethod":{"type":"string","description":"HTTP method callers must use. GET endpoints cannot declare a body attribute (see attributes[].in).","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]},"strict":{"type":"boolean","description":"When true, validation rejects any attribute not declared in attributes[]. Default false."},"rateLimit":{"type":["object","null"],"description":"Per-endpoint rate limit. Set to null to remove. Both fields required together.","additionalProperties":false,"properties":{"requests":{"type":"integer","minimum":1,"description":"Requests allowed per window."},"windowSeconds":{"type":"integer","minimum":1,"description":"Window size in seconds."}},"required":["requests","windowSeconds"]},"allowedIPs":{"type":"array","description":"Inbound IP allowlist, in CIDR notation (e.g. \"203.0.113.0/24\", \"::1/128\"). Empty array = allow all.","items":{"type":"string"}},"transformers":{"type":["array","null"],"description":"Endpoint-level request transformation pipeline, applied before any target-level transformers. Set to null to remove the override and inherit the line default (if the line has one); set to an empty array to explicitly apply no transformation even when the line has a default. Omit on update_endpoint to leave the existing value unchanged.","items":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["mergeFields","renameField","removeField","addField","mapValue","binaryToUrl"],"description":"mergeFields: from+to(+separator). renameField: from+to. removeField: field. addField: to+value. mapValue: field+mapping. binaryToUrl: ttlSeconds?+maxSizeMB? (both clamped server-side — omit for the server default)."},"params":{"type":["object","null"],"additionalProperties":false,"description":"Only the keys the chosen type reads are accepted; see the type description above.","properties":{"from":{"type":"array","items":{"type":"string"},"description":"mergeFields (all sources) / renameField (first element is the source)."},"to":{"type":"string","description":"Destination field — mergeFields / renameField / addField."},"field":{"type":"string","description":"Target field — removeField / mapValue."},"value":{"type":"string","description":"Constant value to set — addField."},"separator":{"type":"string","description":"Join separator — mergeFields (default \" \")."},"mapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Value lookup table — mapValue."},"ttlSeconds":{"type":"integer","minimum":1,"description":"Temp file lifetime in seconds — binaryToUrl."},"maxSizeMB":{"type":"integer","minimum":1,"description":"Max upload size in MB — binaryToUrl."}}}},"required":["type"]}},"idempotencyEnabled":{"type":"boolean","description":"When true, the Framework deduplicates on the caller's Idempotency-Key header. Default true."},"mock":{"type":"boolean","description":"When true, callers receive mockResponse without fan-out to targets. Targets are saved but not invoked."},"mockResponse":{"type":["object","null"],"description":"Response returned in mock mode. Required when mock=true.","additionalProperties":false,"properties":{"statusCode":{"type":"integer","minimum":100,"maximum":599},"contentType":{"type":"string","description":"e.g. \"application/json\"."},"body":{"type":"string","description":"Literal response body."}}},"attributes":{"type":"array","description":"Request validators. One entry per attribute; the Framework rejects callers whose payload fails the configured rules. Empty array = no validation.","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid","description":"Stable attribute id. Optional on create; generated when omitted."},"name":{"type":"string","description":"Attribute field name (matches the inbound payload key)."},"in":{"type":"string","enum":["body","query","header","path"],"description":"Where the attribute is read from on the inbound request."},"attributeType":{"type":"string","enum":["string","int","double","bool","array","object"],"description":"Expected value type."},"required":{"type":"boolean","description":"When true, requests missing this attribute are rejected."},"defaultValue":{"description":"Used when the attribute is absent and required=false. Any scalar."},"validators":{"type":"array","description":"Validator names to run, in order. See params for any bounds/values they need.","items":{"type":"string","enum":["email","phone","int","double","bool","string","array","dictionary","range","oneOf","type","nil","not","empty","arrayType","arrayLength","arraySubset","arrayIntersect","intString","doubleString","boolString","numberString","numberOneOf","stringLength","stringEmpty","stringJson","dictionaryString"]}},"params":{"type":"object","description":"Validator parameters. Recognised keys: min, max (range/stringLength/arrayLength), values (oneOf/arraySubset/arrayIntersect), numbers (numberOneOf), type (typeValidator/arrayType).","additionalProperties":true},"logging":{"type":"string","enum":["loggable","obscured","nonLoggable"],"description":"How the value appears in the request log. obscured = masked; nonLoggable = stripped entirely."},"forwarding":{"type":"string","enum":["blocked","forwardInPlace"],"description":"Only meaningful for in=query or in=path. blocked (default): validated, never sent to the target. forwardInPlace: sent to the target in the same location — a query attribute as a query parameter, a path attribute as a path segment. A path attribute forwards only when its name is its own zero-based segment position (\"0\" for the first segment after the endpoint URL, \"1\" for the next, …) — path segments are matched positionally, not by name. To carry a value into the body or a header instead, leave this blocked and add a field mapping on the target sourced from this attribute."},"description":{"type":"string","description":"Shown in the auto-generated OpenAPI doc."},"schema":{"type":["object","null"],"description":"Optional precise JSON shape, enforced recursively alongside validators[]. scalar: {type}. array: {type:\"array\", items:<schema>, minItems?, maxItems?}. object: {type:\"object\", properties:{name:<schema>}, required?:[...], additionalProperties?:bool}. type must match attributeType.","additionalProperties":true,"properties":{"type":{"type":"string","enum":["string","int","double","bool","array","object"]},"items":{"type":"object","description":"For type=array: the element schema (same form)."},"minItems":{"type":"integer","minimum":0},"maxItems":{"type":"integer","minimum":0},"properties":{"type":"object","description":"For type=object: map of property name → schema (same form)."},"required":{"type":"array","items":{"type":"string"},"description":"For type=object: property names that must be present."},"additionalProperties":{"type":"boolean","description":"For type=object: when false, reject members not in properties."}},"required":["type"]}},"required":["name","in","attributeType"]}},"targets":{"type":"array","description":"Outbound destinations. Required unless mock=true. Each entry becomes one queue fan-out.","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Display name for the target."},"targetUrl":{"type":"string","format":"uri","description":"Outbound URL. Cannot point back to this project (the Framework rejects relay loops)."},"auth":{"type":"object","description":"Outbound auth applied to the request. On reads, secrets are redacted to \"***\" — round-trip the sentinel to keep the stored secret. Ignored when credentialVaultEntryId is set.","additionalProperties":false,"properties":{"type":{"type":"string","enum":["none","bearer","basic","apiKeyHeader","apiKeyQuery","publicPrivateKey"]},"token":{"type":"string","description":"Required when type=bearer."},"username":{"type":"string","description":"Required when type=basic."},"password":{"type":"string","description":"Required when type=basic."},"headerName":{"type":"string","description":"Required when type=apiKeyHeader."},"paramName":{"type":"string","description":"Required when type=apiKeyQuery."},"key":{"type":"string","description":"Required when type=apiKeyHeader or type=apiKeyQuery or type=publicPrivateKey."},"secret":{"type":"string","description":"Required when type=publicPrivateKey."}},"required":["type"]},"credentialVaultEntryId":{"type":"string","description":"References a saved credential (see list_credentials/create_credential) instead of inline auth — the auth field above is ignored when this is set. Must belong to the same project. The credential is bound to a destination when it is created: targetUrl must be https and its host must match that credential's destinationHost, or the write is rejected."},"mapping":{"type":"array","description":"Optional transformer rules. Each rule moves or renames a field from the inbound request to the outbound one.","items":{"type":"object","additionalProperties":false,"properties":{"sourceIn":{"type":"string","enum":["body","query","header","path"]},"sourceName":{"type":"string","description":"Inbound field name to read."},"targetIn":{"type":"string","enum":["body","query","header"]},"targetName":{"type":"string","description":"Outbound field name to write."},"template":{"type":"string","description":"Optional templated value (e.g. \"Bearer {value}\")."}},"required":["sourceIn","sourceName","targetIn","targetName"]}},"deliveryMode":{"type":"string","enum":["async","sync","stream"],"description":"async = queued + retried (default); sync = caller waits up to syncTimeout for the target response; stream = SSE pass-through (max 1 per endpoint)."},"syncTimeout":{"type":"integer","minimum":1,"maximum":90,"description":"Seconds the caller waits for a sync target. Ignored unless deliveryMode=sync."},"retryPolicy":{"type":["object","null"],"description":"Async retry policy. Ignored unless deliveryMode=async. Leave it unset (null) and the platform default applies, which behaves the same as maxAttempts at its maximum. get_endpoint reports which is in effect: this object when set, null when the platform default applies.","additionalProperties":false,"properties":{"maxAttempts":{"type":"integer","minimum":1,"maximum":14,"description":"Total delivery attempts, counting the first. 1 fails fast: one try, then the dead-letter queue. Higher values keep retrying with a widening gap between tries — at the default backoffMultiplier, roughly under a minute at 4, a few minutes at 7, about an hour at 10, a few hours at 14. Anything still undelivered lands in the dead-letter queue. Defaults to 14."},"backoffMultiplier":{"type":"number","minimum":1,"maximum":5,"description":"How sharply the gap between tries widens. Higher spends the same attempts over a longer stretch. Defaults to 2.0."},"retryOn":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"description":"HTTP status codes that trigger a retry. Default [429, 500, 502, 503, 504]."}}},"callbackURL":{"type":"string","format":"uri","description":"Pushed once this target's delivery reaches a terminal status — see get_receipts' callbackState. Must be https. Meaningful for async targets only — refused on sync/stream. Cannot point back into this project (the same relay-loop rule as targetUrl) and must be inside the project's outbound host allowlist when one is set. Unset = the customer polls the receipt instead."},"signingSecret":{"type":["string","null"],"description":"Signs the body delivered to this target — separate from auth above, which authenticates OUTBOUND to the target. Shape: \"whsec_\" followed by base64 of 32 random bytes. Omit to leave unchanged; set to null to disable signing; set to your own whsec_-shaped value to use it verbatim (rejected otherwise, including an empty string — you hold this secret, so only you can supply it). On reads, a configured secret is redacted to \"***\" — round-trip that sentinel to keep the stored secret."},"transformers":{"type":"array","description":"Request transformation pipeline applied to this target before delivery. Empty array = no transformation.","items":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["mergeFields","renameField","removeField","addField","mapValue","binaryToUrl"],"description":"mergeFields: from+to(+separator). renameField: from+to. removeField: field. addField: to+value. mapValue: field+mapping. binaryToUrl: ttlSeconds?+maxSizeMB? (both clamped server-side — omit for the server default)."},"params":{"type":["object","null"],"additionalProperties":false,"description":"Only the keys the chosen type reads are accepted; see the type description above.","properties":{"from":{"type":"array","items":{"type":"string"},"description":"mergeFields (all sources) / renameField (first element is the source)."},"to":{"type":"string","description":"Destination field — mergeFields / renameField / addField."},"field":{"type":"string","description":"Target field — removeField / mapValue."},"value":{"type":"string","description":"Constant value to set — addField."},"separator":{"type":"string","description":"Join separator — mergeFields (default \" \")."},"mapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Value lookup table — mapValue."},"ttlSeconds":{"type":"integer","minimum":1,"description":"Temp file lifetime in seconds — binaryToUrl."},"maxSizeMB":{"type":"integer","minimum":1,"description":"Max upload size in MB — binaryToUrl."}}}},"required":["type"]}},"outgoingMapping":{"type":["object","null"],"description":"Reshapes the request into what this target expects — a tree of typed nodes conforming to the published grammar at \"https://schemas.echorelay.dev/transform/mapping/v1.json\" (its own $schema key must name that value). Mutually exclusive with mapping and transformers on this target, and with the endpoint's own transformers — the write is rejected if both are set. null = no reshaping (today's behaviour, and the only value this schema itself can validate; paths, types and cycles are checked server-side)."},"answerMapping":{"type":["object","null"],"description":"Reshapes this target's answer into what the caller receives — a tree of typed nodes conforming to the same published grammar as outgoingMapping. Refused on a stream target (deliveryMode=stream) — a stream's response is proxied straight through and never reshaped. null = no reshaping, the answer reaches the caller verbatim; paths, types and cycles are checked server-side."},"answerVariants":{"type":["object","null"],"description":"The conditional form of answerMapping, for a target whose answers do not all share one shape: one mapping per reply instead of one for every reply. Requires \"distinguishBy\" naming the single thing that tells them apart ({\"source\":\"status\"}, {\"source\":\"header\",\"name\":…} or {\"source\":\"bodyField\",\"path\":…}), \"variants\" as an object keyed by the value it matches — an exact status like \"429\", a class like \"4XX\", or \"default\" — each holding a tree in the same grammar as answerMapping — or, where the caller should be answered with a status of your own, an object {\"mapping\": <tree>, \"replyStatus\": 402} — and \"onNoMatch\", which has no default and must be either \"passthrough\" (hand the vendor's answer back untouched) or \"fail\" (answer 422 naming the value that matched nothing). A replyStatus is what the caller sees and never what the delivery is measured or charged as; it must be a status that can carry a body (200–599, excluding 204, 205 and redirects), and setting one drops the vendor's own response headers, which describe the answer it replaced. A variant keyed on a status that carries no body (204, 205, 304) is reachable only when it sets one. Mutually exclusive with answerMapping on this target, and refused on a stream target for the same reason answerMapping is. A variant whose tree does not compile is refused when the line is published, not silently dropped. null = no reshaping."}},"required":["name","targetUrl","auth","deliveryMode"]}}}},"scheduledAt":{"type":"string","description":"Compatibility alias: stage this update then schedule its line."},"commitMode":{"type":"string","enum":["draft","publish"],"description":"Defaults to publish. Draft writes require draftRevision."},"draftRevision":{"type":"integer","description":"Current line draft revision, required for draft writes."}},"required":["lineKey","endpointId","patch"]}}],"scan":{"score":60,"grade":"C","scanned_at":"2026-09-23T04:54:40.041Z","report":{"scannerVersion":"0.1.9","scannedAt":"2026-09-23T04:54:39.974Z","components":{"code":{"score":-1,"max":25,"notes":["remote-only server, no package to scan"]},"reliability":{"score":17,"max":20,"notes":["remote reachable in 2426ms"]},"poisoning":{"score":15,"max":15,"notes":["80 tool descriptions checked"]},"auth":{"score":8,"max":15,"notes":["API key sent as a header"]},"maintenance":{"score":3,"max":15,"notes":["no repository listed"]},"identity":{"score":2,"max":10,"notes":["no repository or website to verify"]}},"findings":[{"id":"maint.no-repo","severity":"low","component":"maintenance","title":"No source repository listed"}],"inputs":{"probes":[{"url":"https://mcp.echorelay.dev","reachable":true,"authRequired":false,"latencyMs":2426,"serverInfo":{"name":"echorelay-mcp","version":"1.15.0"}}],"packages":[],"repo":{"found":false},"icon":{"url":"https://mcp.echorelay.dev/favicon.ico","source":"site","width":48,"height":48},"presence":{"stars":null,"forks":null,"downloadsWeek":null,"license":null,"lastPushAt":null,"score":5}}}},"grade_history":[],"reviews":[]}