Odile Gate Oversight

v1.0.1
com.odilelabs/gate-oversight Checked 4 days ago Published 21 days ago

Watch Odile Gate: runs, held actions, audit log with signed export, metrics and refusal reasons.

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

gate_list_apps List apps

Read the project's apps, allowed calls, limits, state, idle flags and anomaly-guard settings. Use it to select an app id. Create or revoke apps on the setup endpoint, /mcp/setup.

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...

gate_list_approvers List approver keys

Approvers are people who decide held actions. List active and revoked dedicated approvers with ids, names and creation times; never returns keys or hashes. Team members with the approver role are a separate list. Requires the project owner key or an active member key. Create or revoke dedicated keys and inspect team roles on the setup endpoint, /mcp/setup.

ParameterTypeDescription
admin_key *stringThe project owner key (ga_...) or an active member key (gm_...). Never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...

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. Check gate_list_approvers for an active human approver before granting approval:true actions; create one on the setup endpoint, /mcp/setup if needed; 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?idem…

ParameterTypeDescription
actions *arrayRules, or {rule, max, approval, check}
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
app *stringThe app id (app_...) this run is for
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
labelstringOptional: what the run is for, e.g. "triage ticket 4411"
max_callsintegerOptional: calls allowed in the whole run
scopeobjectValues for the {placeholders}, e.g. {"customer":"A"}
ttl_secondsintegerHow long the run lasts (default 3600)

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.

ParameterTypeDescription
actions *array
app *stringThe destination app id
app_key *stringThe parent app key (gk_...)
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
run_token *stringThe parent run token (gr_...)
labelstringA short label for the delegated job
max_callsinteger
ttl_secondsinteger

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.

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
run_id *stringThe run id: run.run_id in gate_create_run's result

gate_list_actions List held actions

Which actions are waiting for a human decision? Read held actions (pending by default, or another requested state) and their exact calls; this tool cannot decide or resubmit them. This also expires overdue held actions in the project and clears their stored request paths and bodies. Approving or rejecting a held action is done by a person with an approver key in the dashboard, by design. No MCP tool can approve actions.

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
statestringDefault: pending

gate_read_audit Read the audit log

Which gateway calls happened recently? 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.

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
appstringOptional: only this app id (app_...)
limitintegerHow many calls (default 20)
statusstringOptional: only this HTTP status, e.g. "403"

gate_export_audit_proof Export a signed audit proof

Which signed audit records can I export for verification? 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 HM…

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
actions_afterstringAction cursor from next_actions_after
frominteger
tointeger

gate_verify_audit_proof Verify a signed audit export

Is this signed audit export intact? 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.

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
proof *objectThe full signed export from gate_export_audit_proof

gate_get_metrics Read Gate operational metrics

What are the project call trends and current usage? 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 u…

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...

gate_get_run_timeline Read run timeline

What happened during this run? 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.

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
run_id *stringThe run id
beforeintegerOlder audit events (timeline pages have at most 500 events)

gate_get_run_tree Read run tree

Which permissions and delegated descendants does this run have? 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.

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
run_id *stringThe run 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).

ParameterTypeDescription
reason *stringThe x-gate-refused value
recoverablebooleanWhether the write was granted with a recovery check

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. This also deletes learning sessions, route templates and minute counts past their retention deadline across the project.

ParameterTypeDescription
admin_key *stringThe project admin key (ga_...). Read it from the .env; never print it.
app *stringThe app id
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...

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.

ParameterTypeDescription
admin_key *stringThe project owner key (ga_...) or an accepted admin member key (gm_...). Read it from the .env; never print it.
app *stringThe app id (app_...) with stored learning suggestions
confirm *booleanExplicit confirmation to apply the reviewed learning suggestions
project_id *stringThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
modestringExtend existing routes (default), or replace them with learned routes; both set the suggested rate limit