gate_create_run
Grant one agent run
Gate Actions: give one agent session narrow, expiring permission. Actions are rules with {placeholders} bound by scope (e.g. "PATCH /customers/{customer}/tickets/:id" with scope {"customer":"A"}), each with an optional max and approval. Add a human approver with gate_add_approver before granting approval:true actions; without an active approver the grant is refused. Returns a run token (shown once) the agent sends as x-odile-run with its app key. Writes in a run need an Idempotency-Key. Give a write a check ("GET /bookings?idempotency_key={key}") and the agent can settle a lost answer with POST /g/<id>/_gate/recover.
输入参数app必填labelscopeactions必填admin_key必填max_callsproject_id必填ttl_seconds
gate_delegate_run
Delegate a narrower run
Hand a narrower run to another active app in the same project. Uses the parent app key and run token, never the admin key. Scope, expiry, approvals and ancestor budgets stay enforced; maximum depth five.
输入参数app必填labelactions必填app_key必填max_callsrun_token必填project_id必填ttl_seconds
gate_revoke_run
End an agent run
End one run granted with gate_create_run: its token stops working at once (403 run_revoked) while the app itself keeps working. Use it to stop an agent mid-job; grant a new run with gate_create_run if the work should continue.
输入参数run_id必填admin_key必填project_id必填
gate_list_actions
List held actions
Actions waiting for approval (or in another state), with the exact call. With an installed approval-risk model, pending actions sort by risk descending and include risk (0–1) and risk_features (top two advisory signals). No model means no score and newest first. Only a person decides in the dashboard.
输入参数stateadmin_key必填project_id必填
gate_read_audit
Read the audit log
Returns recent gateway calls (time, app, matched route, status, reason, duration); use it to investigate individual calls across the project rather than gate_get_metrics aggregates or a single gate_get_run_timeline. Newest first, with totals by status and refusal reason for the returned calls. This view never returns bodies, query values or headers. For 24-hour totals and anomaly scores use gate_get_metrics; for a signed export an auditor can check, gate_export_audit_proof; for one run's history, gate_get_run_timeline.
输入参数applimitstatusadmin_key必填project_id必填
gate_export_audit_proof
Export a signed audit proof
Returns chained audit rows, decided-action feature snapshots and signed anchors; use it for a portable tamper-evident export instead of gate_read_audit's recent-call view, then check it with gate_verify_audit_proof. No sealed paths/bodies, notes, keys or IPs in the action labels. Legacy actions lack snapshots and are excluded. store_audit=false has no chain. Follow next_from for audit rows and next_actions_after as actions_after for labels (10,000 each). Use API/SDK to verify exports above the MCP request size limit. The signature is HMAC-SHA256.
输入参数tofromadmin_key必填project_id必填actions_after
gate_verify_audit_proof
Verify a signed audit export
Returns intact or broken_at for a supplied signed export; use it to check a gate_export_audit_proof export rather than retrieve audit rows. Recomputes the chain and project signature; broken_at is a one-based row position. Does not approve actions or change permissions.
输入参数proof必填admin_key必填project_id必填
gate_get_metrics
Read Gate operational metrics
Returns project-wide 24-hour call aggregates, anomaly scores, idle apps and current-month usage; use it for operational trends rather than individual calls in gate_read_audit or one run in gate_get_run_timeline. Includes stored call counts by HTTP status and reason, measured duration through response headers (including upstream wait), per-app anomaly scores and 24-hour anomaly counts, idle apps (active apps whose key made no allowed call in the project's idle_days, default 14; a flag only, never a revoke), and separate current-month gateway usage: plan, used, allowed, plus upgrade URL and checkout path on Free at 80% or above. Only POST the checkout path when the admin asks to upgrade; reading metrics never starts checkout. Requires the project owner key or an active member key. Audit may be partial: invalid-key sampling and audit-off periods are disclosed. No upstream requests, quota use or policy changes; not a health certificate or performance guarantee. For individual calls use gate_read_audit.
输入参数admin_key必填project_id必填
gate_get_run_timeline
Read run timeline
Returns one run's call metadata, approvals and approver names, recovery outcomes and delegated children; use it to reconstruct that session instead of gate_read_audit's project-wide calls or gate_get_run_tree's permission state. No bodies or query values. One run only; the project-wide log is gate_read_audit.
输入参数beforerun_id必填admin_key必填project_id必填
gate_get_run_tree
Read run tree
Returns one run and its delegated descendants without tokens; use it to inspect delegation and permission state instead of gate_get_run_timeline events. One run only; the project-wide log is gate_read_audit.
输入参数run_id必填admin_key必填project_id必填
gate_explain_refusal
Explain a refused call
What a Gate refusal means and how to fix it, from the x-gate-refused header value (e.g. route_not_allowed).
输入参数reason必填recoverable
gate_learn_suggestions
Read learning suggestions
Read normalized routes and a suggested per-minute limit from an admin-enabled, time-boxed learning session. Records only method, normalized path templates and counts per minute; no query values, raw ids, headers or bodies. Never enables learning or applies rules.
输入参数app必填admin_key必填project_id必填
gate_update_app
Apply learned app routes and rate limit
Apply stored learning suggestions to an existing app and return the applied routes, suggested per-minute limit and learning-session metadata. Review gate_learn_suggestions first, then explicitly confirm; requires the project owner key or an admin member key. mode="extend" adds learned routes (default); "replace" removes existing routes before applying them. Both modes set the learned rate limit and keep the app key. Only learned suggestions can be applied: arbitrary routes or rate limits are not accepted, and this tool never starts learning.
输入参数app必填modeconfirm必填admin_key必填project_id必填