The Management MCP surface exposes 108 tools across 14 categories. These tools allow AI agents and automation systems to manage the full Zerq platform — creating collections, configuring proxies, managing clients, rotating credentials, and querying observability data.
All Management MCP requests require an OIDC token: Authorization: Bearer <id_token>. Access is controlled by RBAC roles assigned to the authenticated user.
| Category | Count | Description |
|---|
| Collections | 7 | Create, read, update, delete, and toggle collection status |
| Proxies | 5 | Manage proxy routes within collections |
| Proxy history | 4 | List, compare and restore proxy versions (settings and workflow) |
| Workflow | 9 | Manage, validate, and test proxy workflows and trigger capture |
| Workflows | 11 | List, create, edit, publish, delete, export and import standalone workflows; see versions and usages |
| Workflow runs | 3 | Run standalone workflows and read run history |
| Policies | 6 | Rate limit and quota policies |
| Clients | 6 | Manage API consumer clients |
| Profiles | 8 | Manage auth profiles and credentials |
| Credentials | 5 | Manage backend secrets |
| Audit | 2 | Query audit logs |
| Metrics | 6 | Query dashboard metrics |
| Logs | 3 | Query and delete request logs |
| AI Gateway | 33 | Providers, models, guardrails, AI budgets, settings, AI logs and usage |
| Tool | Description |
|---|
list_collections | Returns all collections with name, base path, status, and endpoint count |
get_collection | Returns full detail for one collection including target URL, headers, and credential |
get_collection_proxies | Returns all proxies for a specific collection |
create_collection | Creates a new collection (name, base_path, endpoint URL, headers, credential) |
update_collection | Updates collection settings (name, description, endpoint, headers, credential) |
delete_collection | Permanently deletes a collection and all its proxies |
toggle_collection_status | Publishes or unpublishes a collection |
| Tool | Description |
|---|
list_proxies | Returns all proxies, optionally filtered by collection |
get_proxy | Returns full proxy detail including headers, parameters, schemas, and workflow status |
create_proxy | Creates a proxy. Requires collection_id, name, path and methods; optional description, target_path, path_params, query_params, headers, status, log_level |
update_proxy | Updates an existing proxy's settings by id, including methods and its request log_level |
delete_proxy | Permanently removes a proxy |
methods is an array of at least one of GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, stored upper-case and without duplicates. create_proxy and update_proxy return a tool error, without calling the API, when methods is missing (on create), empty, null, not an array of strings, or has an unsupported method. On update_proxy, leave methods out to keep the stored list. A workflow-enabled proxy checks its methods before the workflow runs and answers other methods with 405, so list every method its clients send. See Allowed methods.
Proxy history (4 tools)
Every save of a proxy (settings or workflow) is a version. See History: compare and restore versions.
| Tool | Description | Role |
|---|
list_proxy_versions | Lists a proxy's versions, newest first, with who saved each, when, a note and the fields that changed | Viewer |
get_proxy_version | Returns one version: the proxy's settings and workflow as saved (workflow secrets masked as ********) | Viewer |
compare_proxy_versions | Compares two versions (from/to: a version number or current): changed settings with old and new values, and workflow steps added, removed and changed | Viewer |
restore_proxy_version | Restores a proxy's settings and workflow to a version and saves the result as a new version; audited as proxy / restore_version | Modifier |
| Tool | Description |
|---|
workflow_list_nodes | Returns all workflow node types with schemas plus authoring metadata (entry_trigger, terminal_node, requires_source_handle, supported_source_handles, default_source_handle, dynamic_source_handles, wiring_hint) |
workflow_list_templates | Returns all available prebuilt workflow templates |
workflow_test_node | Executes a single node in isolation for testing |
workflow_test_workflow_stream | Executes a full workflow test and returns streamed progress events |
workflow_trigger_test_listen | Starts a trigger test-listen session (HTTP webhook or IMAP capture) |
workflow_trigger_test_stream | Reads the captured trigger event for a test-listen session |
get_proxy_workflow | Returns the current workflow definition for a proxy, and workflow_id when the proxy links a workflow |
update_proxy_workflow | Saves a workflow definition and/or enables or disables it. When the workflow is or becomes enabled, a new or changed definition must pass validation or the call fails and nothing is saved; disabled workflows save as drafts. Optional workflow_id links the proxy to a published workflow that starts with http_trigger (several proxies can share one; publishing it updates all of them); "" unlinks it. A linked proxy's definition is changed by publishing the workflow, not here |
validate_proxy_workflow | Validates a workflow definition without saving (it must parse and have exactly one entry trigger) |
How to read the workflow_list_nodes wiring fields:
requires_source_handle: true means the node picks a branch at run time and the engine follows only edges whose sourceHandle equals that branch. An edge without a matching sourceHandle never runs, so the workflow silently stops there. supported_source_handles lists the branch names (for example success/error on proxy_node, http_request_node, code_node, xml_node, the database, email and AI nodes; valid/invalid on validate_node; loop/done on loop_node).
dynamic_source_handles: true (condition_node, switch_node) means the branch names come from the node's config (conditions[].output or cases[].output) plus default_output, which is default when unset.
- For
crypto_node and jwt_node the branches depend on config.operation; wiring_hint says which operation uses which handles (jwt_node decode and sign do not branch).
requires_source_handle: false means every outgoing edge runs; sourceHandle is not used.
Workflow entry triggers supported by workflow validation and update flows are http_trigger, manual_trigger, cron_trigger, kafka_consumer, and imap_trigger.
workflow_test_node, workflow_test_workflow_stream, workflow_trigger_test_listen, and workflow_trigger_test_stream execute real nodes or read captured trigger payloads, so they require the modifier role. Agents with a viewer-scoped token receive 403 Insufficient permissions from these tools.
Use these tools for a proxy's own workflow (the route runs it on each request). For standalone workflows, use the Workflows tools below.
Workflows that exist on their own: schedules, Kafka consumers, mailboxes, manual runs, or workflows called by other workflows and guardrails. They have a draft and published versions; nothing runs a draft.
| Tool | Description | Role |
|---|
list_workflows | One list of every workflow: standalone ones, workflows that proxies run, and proxies' own workflows (read-only here). Filters: kind (standalone or proxy), trigger, q, published (true or false), exclude_proxy_owned (true leaves out proxies' own workflows), page, page_size; they apply before paging. Each item shows the trigger, active state, published version, whether the draft has unpublished changes, and what uses it | Viewer |
get_workflow | Returns the draft and published definitions, version, settings and the proxies that run it. Secret values are masked as ******** | Viewer |
create_workflow | Creates a standalone workflow as a draft: blank, with a definition, from_template, or from_proxy (copies a proxy's workflow into a new one; the proxy is unchanged) | Modifier |
update_workflow | Saves the draft (name, description, definition, settings). Sending ******** back keeps a stored secret | Modifier |
validate_workflow | Checks a definition without saving: it must parse and follow the trigger rule (a standalone workflow may have several entry triggers, at most one per type except schedules; with workflow_id, a workflow that a proxy runs needs exactly one) | Modifier |
publish_workflow | Validates the draft and publishes it as a new version. If proxies run the workflow, they are updated to the new version too, and the answer names them | Modifier |
list_workflow_versions | Lists published versions with who published them and when | Viewer |
workflow_usages | Shows what uses a workflow: proxies, other workflows (Execute Workflow node or AI Agent tool) and AI guardrail connectors | Viewer |
delete_workflow | Deletes a workflow and its versions. Refused while anything uses it; the error lists the uses | Modifier |
export_workflow | Exports one workflow as a zerq.workflow.v1 file. Secret values are removed and listed in secrets_removed; credential ids are kept | Viewer |
import_workflow | Creates a new draft workflow from an export file and returns warnings to fix before publishing (secrets to fill in, missing credentials, unknown node types) | Modifier |
Recommended flow: workflow_list_nodes → create_workflow → update_workflow → validate_workflow → publish_workflow. Activating a workflow (so its schedule or consumer runs) and restoring an earlier version are done in the console or with the management API.
| Tool | Description |
|---|
run_workflow | Runs a standalone workflow now (id, optional input object, optional draft). The published version runs and is kept in run history; draft: true runs the draft as a test run. Works for workflows that start with manual_trigger (input becomes the trigger's input), http_trigger (input becomes the POST body) or workflow_trigger (input becomes its input, checked against its input_schema). Returns run_id, status, duration_ms, outputs, response, return and error. Modifier role; audited |
list_workflow_runs | Lists run history, newest first: filters workflow_id, status, trigger, mode, from, to, page, page_size |
get_workflow_run | Returns one run (run_id): status, timing, trigger, error, every executed node and, when the run ended at a Return node (or, for manual runs and sub-workflows, a Response node), how it ended as return {node_id, node_type, status}; the returned body is run data, read in the console by modifiers (GET /api/v1/workflows/runs/:run_id/data) |
Run history never includes node outputs; saved run data is read in the console or the API by the modifier role only. See Manual runs and run history.
| Tool | Description |
|---|
list_policies | Returns all policies with rate limit and quota settings |
get_policy | Returns full detail for one policy |
create_policy | Creates a rate limit/quota policy |
update_policy | Updates policy limits or window settings |
toggle_policy_status | Enables or disables a policy |
delete_policy | Permanently removes a policy |
| Tool | Description |
|---|
list_clients | Returns all clients with status, email, and collection count |
get_client | Returns full client detail including portal access settings and authorized emails |
create_client | Creates a client (name, email, collections, policy, portal access) |
update_client | Updates client settings including authorized emails and portal access toggle |
toggle_client_status | Activates or deactivates a client |
delete_client | Permanently removes a client and all its profiles |
| Tool | Description |
|---|
list_profiles | Returns all profiles for a client with auth type and status |
get_profile | Returns full profile detail including method restrictions and IP allowlist |
create_profile | Creates a profile (name, auth_type, allowed_methods, allowed_ips) |
update_profile | Updates profile settings |
delete_profile | Permanently removes a profile |
get_profile_credentials | Returns credential metadata (auth_type, has_credentials, expiry, last_rotated); never the token value |
rotate_profile_credentials | Generates new credentials; old credentials are immediately invalidated |
set_profile_auth_type | Changes the auth type of an existing profile |
| Tool | Description |
|---|
list_credentials | Returns all credentials with name, type and stored_secrets; never secret values |
get_credentials | Returns credential metadata (type, non-secret fields, env var names, public certificates, stored_secrets). Never returns secret values |
create_credentials | Creates a credential of any supported type |
update_credentials | Updates the fields you pass; omitted fields and blank secret fields keep their stored values |
delete_credentials | Permanently removes a credential |
There is intentionally no MCP tool to reveal stored secret values. Agents can create, update and rotate credentials without ever reading them; revealing is a UI-only, modifier-only, audited action.
| Tool | Description |
|---|
list_audit_logs | Returns audit log entries with filters (actor, action, resource, time range) |
get_audit_log | Returns full detail for one audit log entry |
| Tool | Description |
|---|
get_metrics_overview | Returns total requests, success rate, average latency, error count for a time period |
get_metrics_status_distribution | Returns request counts grouped by HTTP status class |
get_metrics_method_distribution | Returns request counts grouped by HTTP method |
get_metrics_top_endpoints | Returns the most-called endpoints ranked by request volume |
get_metrics_failed_endpoints | Returns endpoints with the highest error rates |
get_metrics_requests_over_time | Returns request volume time series (interval: minute/hour/day/month) |
| Tool | Description |
|---|
list_logs | Returns request log entries with filters (path, method, status, client, latency, payload search) |
get_log | Returns full detail for one log entry including headers, body, and error |
delete_log | Deletes a specific log entry (admin only) |
Each tool calls one /api/v1/ai management endpoint, so the same roles, validation, audit and live updates apply as in the UI. No tool returns secrets: provider keys stay in Credentials and AI keys are issued in the UI only. See AI Gateway.
| Tool | Description | Role |
|---|
ai_list_providers, ai_get_provider | List providers or read one | Viewer |
ai_create_provider, ai_update_provider, ai_delete_provider | Manage providers (the key is a Credential ID) | Modifier |
ai_test_provider | Test a provider connection with its stored key | Modifier |
ai_providers_health | Router health and cooldown state per provider | Viewer |
ai_list_models, ai_get_model | List models or read one | Viewer |
ai_create_model, ai_update_model, ai_delete_model, ai_toggle_model_status | Manage models, deployments, routing, fallback and context | Modifier |
ai_list_guardrails, ai_get_guardrail | List or read guardrail profiles | Viewer |
ai_create_guardrail, ai_update_guardrail, ai_delete_guardrail | Manage guardrail profiles | Modifier |
ai_test_guardrail | Run a guardrail profile against sample text | Viewer |
ai_list_budgets, ai_get_budget | List or read AI budgets | Viewer |
ai_create_budget, ai_update_budget, ai_delete_budget | Manage AI budgets | Modifier |
ai_get_settings, ai_update_settings | Read or change AI Gateway settings | Viewer / Modifier |
ai_list_logs, ai_get_log | Query AI request logs | Viewer |
ai_usage_overview, ai_usage_over_time, ai_top_usage | AI usage, cost and error metrics | Viewer |
ai_spend_report | Spend per client, model, profile or provider for a period, with totals | Viewer |
ai_client_usage | A client's live budget meters and profile token caps | Viewer |
Client and profile tools (create_client, update_client, create_profile, update_profile) also accept the AI fields: aiModels, aiBudgetId and aiDefaultModel on clients; aiEnabled, aiModels and aiTokenCap on profiles.