Skip to main content
Glama

tuning_apply

Apply or roll back kernel and network tuning (BBR/fq, conntrack, NOFILE, swap, journald) across selected hosts, with a dry-run plan first and backup restore.

Instructions

Apply or roll back the kernel/network tuning of vps-network-tuning-script (initial.sh apply|rollback): BBR+fq, conntrack, NOFILE, swap, journald limits. apply creates a backup in /root/edge-tuning-backup-*; rollback restores the latest (or backupDir).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opYes
applyNofalse (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash
batchNohosts at a time (rolling). Default depends on the action: 1 for disruptive ones
targetNohosts: all | <host> | <glob nl-*> | <group> | role:<edge|remnanode|panel|docker> | tag:<tag>; comma-separated, !x excludesall
planHashNoplanHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since
backupDirNo
continueOnErrorNokeep going after a host fails (default: stop the rollout at the first failure)
skipUnreachableNoskip hosts that do not answer over ssh instead of refusing the whole plan (they show as skipped)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden. It usefully discloses that apply creates a backup in /root/edge-tuning-backup-* and that rollback restores the latest or a given backupDir, but it omits important safety context such as required privileges, potential disruption, or dry-run/planHash workflow details that are only present in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly written sentences front-load the operation and resource, then add backup semantics without repetition or filler. Every clause contributes useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter mutation tool with no annotations and no output schema, the description covers the core actions and backup behavior but leaves gaps around prerequisites, safety, and when to use it versus tuning_status. The schema handles parameter detail, but the overall definition is only minimally complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the schema already documents most parameters. The description adds some meaning for op and backupDir, but it does not clarify the remaining parameters such as target syntax, batch behavior, or continueOnError beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb pair (apply/roll back) and resource (kernel/network tuning of vps-network-tuning-script), plus the concrete tuning areas (BBR+fq, conntrack, NOFILE, swap, journald). This clearly distinguishes it from the sibling tuning_status, which would report rather than apply changes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use each operation (apply versus rollback) and notes that rollback can target the latest backup or a specified backupDir. However, it gives no explicit when-not-to-use guidance and does not route the agent to tuning_status for inspection before applying.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.