kernel/system-control
Read or write Linux kernel parameters (sysctl) at runtime via /proc/sys to adjust network, memory, or other kernel settings without rebooting.
Instructions
Reads or writes a kernel parameter (sysctl) at runtime through /proc/sys. With value omitted it reads: key (dotted net.ipv4.ip_forward or slash form; a directory such as net.ipv4 prints its subtree) returns key = value lines, and read_all: true (only when key is empty) prints every parameter, thousands of lines, uncapped. Reading needs no grant. With value it WRITES: that needs privileged: true and a grant, is refused for keys outside the user's sysctl.write_keys globs in mcp-sudo.yaml, and the reply shows the value the kernel now holds. Writes last until reboot; nothing is persisted to /etc/sysctl.d. For OS and kernel version use system/os-release, for memory figures memory/usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Kernel parameter name, dotted (net.ipv4.ip_forward) or slash form (net/ipv4/conf/eth0.100/rp_filter). A directory (e.g. net.ipv4) reads its whole subtree. | |
| value | No | Value to write (single line). If omitted, the parameter is read. Writing needs privileged: true and a matching sysctl.write_keys grant | |
| read_all | No | Only when key is empty: read every parameter (thousands of lines, uncapped) | |
| privileged | No | Run as root - required for writes. Needs a grant for this tool in mcp-sudo.yaml |