Skip to main content

Management Tool Catalog

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.


Tool categories​

CategoryCountDescription
Collections7Create, read, update, delete, and toggle collection status
Proxies5Manage proxy routes within collections
Proxy history4List, compare and restore proxy versions (settings and workflow)
Workflow9Manage, validate, and test proxy workflows and trigger capture
Workflows11List, create, edit, publish, delete, export and import standalone workflows; see versions and usages
Workflow runs3Run standalone workflows and read run history
Policies6Rate limit and quota policies
Clients6Manage API consumer clients
Profiles8Manage auth profiles and credentials
Credentials5Manage backend secrets
Audit2Query audit logs
Metrics6Query dashboard metrics
Logs3Query and delete request logs
AI Gateway33Providers, models, guardrails, AI budgets, settings, AI logs and usage

Collections (7 tools)​

ToolDescription
list_collectionsReturns all collections with name, base path, status, and endpoint count
get_collectionReturns full detail for one collection including target URL, headers, and credential
get_collection_proxiesReturns all proxies for a specific collection
create_collectionCreates a new collection (name, base_path, endpoint URL, headers, credential)
update_collectionUpdates collection settings (name, description, endpoint, headers, credential)
delete_collectionPermanently deletes a collection and all its proxies
toggle_collection_statusPublishes or unpublishes a collection

Proxies (5 tools)​

ToolDescription
list_proxiesReturns all proxies, optionally filtered by collection
get_proxyReturns full proxy detail including headers, parameters, schemas, and workflow status
create_proxyCreates a proxy. Requires collection_id, name, path and methods; optional description, target_path, path_params, query_params, headers, status, log_level
update_proxyUpdates an existing proxy's settings by id, including methods and its request log_level
delete_proxyPermanently 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.

ToolDescriptionRole
list_proxy_versionsLists a proxy's versions, newest first, with who saved each, when, a note and the fields that changedViewer
get_proxy_versionReturns one version: the proxy's settings and workflow as saved (workflow secrets masked as ********)Viewer
compare_proxy_versionsCompares two versions (from/to: a version number or current): changed settings with old and new values, and workflow steps added, removed and changedViewer
restore_proxy_versionRestores a proxy's settings and workflow to a version and saves the result as a new version; audited as proxy / restore_versionModifier

Workflow (9 tools)​

ToolDescription
workflow_list_nodesReturns 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_templatesReturns all available prebuilt workflow templates
workflow_test_nodeExecutes a single node in isolation for testing
workflow_test_workflow_streamExecutes a full workflow test and returns streamed progress events
workflow_trigger_test_listenStarts a trigger test-listen session (HTTP webhook or IMAP capture)
workflow_trigger_test_streamReads the captured trigger event for a test-listen session
get_proxy_workflowReturns the current workflow definition for a proxy, and workflow_id when the proxy links a workflow
update_proxy_workflowSaves 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_workflowValidates 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 (9 tools)​

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.

ToolDescriptionRole
list_workflowsOne 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 itViewer
get_workflowReturns the draft and published definitions, version, settings and the proxies that run it. Secret values are masked as ********Viewer
create_workflowCreates 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_workflowSaves the draft (name, description, definition, settings). Sending ******** back keeps a stored secretModifier
validate_workflowChecks 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_workflowValidates 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 themModifier
list_workflow_versionsLists published versions with who published them and whenViewer
workflow_usagesShows what uses a workflow: proxies, other workflows (Execute Workflow node or AI Agent tool) and AI guardrail connectorsViewer
delete_workflowDeletes a workflow and its versions. Refused while anything uses it; the error lists the usesModifier
export_workflowExports one workflow as a zerq.workflow.v1 file. Secret values are removed and listed in secrets_removed; credential ids are keptViewer
import_workflowCreates 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.


Workflow runs (3 tools)​

ToolDescription
run_workflowRuns 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_runsLists run history, newest first: filters workflow_id, status, trigger, mode, from, to, page, page_size
get_workflow_runReturns 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.


Policies (6 tools)​

ToolDescription
list_policiesReturns all policies with rate limit and quota settings
get_policyReturns full detail for one policy
create_policyCreates a rate limit/quota policy
update_policyUpdates policy limits or window settings
toggle_policy_statusEnables or disables a policy
delete_policyPermanently removes a policy

Clients (6 tools)​

ToolDescription
list_clientsReturns all clients with status, email, and collection count
get_clientReturns full client detail including portal access settings and authorized emails
create_clientCreates a client (name, email, collections, policy, portal access)
update_clientUpdates client settings including authorized emails and portal access toggle
toggle_client_statusActivates or deactivates a client
delete_clientPermanently removes a client and all its profiles

Profiles (8 tools)​

ToolDescription
list_profilesReturns all profiles for a client with auth type and status
get_profileReturns full profile detail including method restrictions and IP allowlist
create_profileCreates a profile (name, auth_type, allowed_methods, allowed_ips)
update_profileUpdates profile settings
delete_profilePermanently removes a profile
get_profile_credentialsReturns credential metadata (auth_type, has_credentials, expiry, last_rotated); never the token value
rotate_profile_credentialsGenerates new credentials; old credentials are immediately invalidated
set_profile_auth_typeChanges the auth type of an existing profile

Credentials (5 tools)​

ToolDescription
list_credentialsReturns all credentials with name, type and stored_secrets; never secret values
get_credentialsReturns credential metadata (type, non-secret fields, env var names, public certificates, stored_secrets). Never returns secret values
create_credentialsCreates a credential of any supported type
update_credentialsUpdates the fields you pass; omitted fields and blank secret fields keep their stored values
delete_credentialsPermanently 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.


Audit (2 tools)​

ToolDescription
list_audit_logsReturns audit log entries with filters (actor, action, resource, time range)
get_audit_logReturns full detail for one audit log entry

Metrics (6 tools)​

ToolDescription
get_metrics_overviewReturns total requests, success rate, average latency, error count for a time period
get_metrics_status_distributionReturns request counts grouped by HTTP status class
get_metrics_method_distributionReturns request counts grouped by HTTP method
get_metrics_top_endpointsReturns the most-called endpoints ranked by request volume
get_metrics_failed_endpointsReturns endpoints with the highest error rates
get_metrics_requests_over_timeReturns request volume time series (interval: minute/hour/day/month)

Logs (3 tools)​

ToolDescription
list_logsReturns request log entries with filters (path, method, status, client, latency, payload search)
get_logReturns full detail for one log entry including headers, body, and error
delete_logDeletes a specific log entry (admin only)

AI Gateway (33 tools)​

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.

ToolDescriptionRole
ai_list_providers, ai_get_providerList providers or read oneViewer
ai_create_provider, ai_update_provider, ai_delete_providerManage providers (the key is a Credential ID)Modifier
ai_test_providerTest a provider connection with its stored keyModifier
ai_providers_healthRouter health and cooldown state per providerViewer
ai_list_models, ai_get_modelList models or read oneViewer
ai_create_model, ai_update_model, ai_delete_model, ai_toggle_model_statusManage models, deployments, routing, fallback and contextModifier
ai_list_guardrails, ai_get_guardrailList or read guardrail profilesViewer
ai_create_guardrail, ai_update_guardrail, ai_delete_guardrailManage guardrail profilesModifier
ai_test_guardrailRun a guardrail profile against sample textViewer
ai_list_budgets, ai_get_budgetList or read AI budgetsViewer
ai_create_budget, ai_update_budget, ai_delete_budgetManage AI budgetsModifier
ai_get_settings, ai_update_settingsRead or change AI Gateway settingsViewer / Modifier
ai_list_logs, ai_get_logQuery AI request logsViewer
ai_usage_overview, ai_usage_over_time, ai_top_usageAI usage, cost and error metricsViewer
ai_spend_reportSpend per client, model, profile or provider for a period, with totalsViewer
ai_client_usageA client's live budget meters and profile token capsViewer

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.