Skip to main content
Glama

mumu_uname_patch

Attach a ptrace tracer to a target PID so its uname reports a handset kernel, even if it calls syscalls directly or clears LD_PRELOAD. Requires root.

Instructions

Attach the ptrace tracer to pid so its uname reports a handset kernel.

This is the only mechanism that covers a target which calls the syscall directly, ships its own loader, or clears LD_PRELOAD — it sits below libc.

Two costs, stated rather than discovered later:

  • every traced thread pays a ptrace stop per syscall, so the target runs slower;

  • PTRACE_O_EXITKILL is set, so killing the tracer kills the tracee too. That keeps a crashed tracer from leaving a game permanently stopped.

Find the pid with mumu_processes. Needs root.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mumu_uname_patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
vmindexNo
settle_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/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 burden and does well on the risky parts: it discloses the per-syscall ptrace stop cost and that PTRACE_O_EXITKILL makes killing the tracer kill the tracee. It omits how the patch is removed (a `mumu_uname_detach` sibling exists) and what state is left behind on the target, which matters for an invasive mutation.

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

Conciseness4/5

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

The core action is front-loaded in the first sentence, and the residual costs are set off as bullets so they read as caveats rather than main behavior. Slight verbosity in the framing ('Two costs, stated rather than discovered later'), but no sentence is wasted.

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

Completeness4/5

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

For an unannotated, no-output-schema, side-effecting tool, it covers the essentials: prerequisites, performance and lifecycle hazards, and pid discovery. The gaps are the two undocumented tuning parameters and the absence of any pointer to the detach/status siblings for cleanup.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, and the description only explains `pid` (and how to obtain it). `vmindex` and `settle_s` are entirely undocumented in both schema and prose, so two thirds of the inputs are opaque.

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

Purpose4/5

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

States a precise verb and mechanism: attach a ptrace tracer to `pid` so `uname` reports a handset kernel, and clarifies it sits below libc. It distinguishes itself from the LD_PRELOAD approach but never contrasts with the sibling `mumu_uname_daemon_start` or `mumu_uname_detach`, so an agent must still infer which uname mechanism to pick.

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

Usage Guidelines4/5

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

Gives an explicit selection condition ('the only mechanism that covers a target which calls the syscall directly, ships its own loader, or clears LD_PRELOAD') plus a prerequisite ('Needs root') and a routing hint to `mumu_processes` for the pid. No explicit statement of when NOT to use it versus the daemon variants.

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

Deploy Server

Other Tools