# veryfront__update_agent_push_runtime_service

Drain or resume a runtime service. Requires project.runtime.manage.

Risk: mutating.

## Arguments

| Name                | Type   | Required | Description                                                                                                                                                                                                                                                                    |
| ------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project_reference` | string |          | Project that owns the service. A source project may drain its shared runtime grant using its own project reference. Only a project service is found; a global service answers not\_found.                                                                                      |
| `service_id`        | string | Yes      | Runtime service to change. Draining stops selection for new work and, for managed source connections, revokes queued and child dispatch; either project may revoke. Resuming re-enables selection; managed source connections require project.runtime.manage in both projects. |
| `availability`      | string | Yes      | active makes the runtime service available for selection; drained stops selecting it for new work. For a managed source connection, drained also revokes queued and child dispatch.                                                                                            |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__update_agent_push_runtime_service",
    "arguments": {
      "service_id": "<service_id>",
      "availability": "<availability>"
    }
  }
}
```
