End an agent run
gate_revoke_runEnd 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"admin_key": "<admin_key>",
"run_id": "<run_id>"
},
"name": "gate_revoke_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run id: run.run_id in gate_create_run's result | |
| admin_key | Yes | The project admin key (ga_...). Read it from the .env; never print it. | |
| project_id | Yes | The project id from gate_create_project, e.g. p1a2b3... |