Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_syscall

Trace Linux/Android syscalls in a target process by syscall name or category, then list, inspect, or stop active traces. Read captured trace lines separately through the events tool.

Instructions

Trace Linux/Android syscalls in the target process (Syscall.* API).

Actions:

  • trace: Trace specific syscalls (syscalls=["openat", "read", "connect"], optional caller="libapp.so") OR trace an entire category ("file", "network", "memory", "process", "ipc")

  • trace_all: Trace all supported syscalls (Syscall.traceAll())

  • untrace: Stop tracing specific syscalls (syscalls=[...])

  • stop: Stop all active syscall tracing (Syscall.stop())

  • list: List available traceable syscalls (optional category filter)

  • active: Show currently active syscall traces

Note: Syscall trace lines are delivered on the separate event channel — call renef_events to read captured syscall traces!

Args: action: "trace", "trace_all", "untrace", "stop", "list", or "active" syscalls: List of syscall names (for "trace" / "untrace") category: Syscall category ("file", "network", "memory", "process", "ipc") caller: Optional caller library filter when tracing named syscalls (e.g., "libtarget.so")

Returns: JSON status or list of syscalls/active traces

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": {
      "action": "<action>"
    },
    "name": "renef_syscall"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
callerNo
categoryNo
syscallsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add genuinely useful behavior not in any structured field: trace output arrives on a separate event channel and must be read via `renef_events`, and the tool returns JSON status or lists. However, it says nothing about whether tracing requires a privileged/attached process, the runtime overhead of `trace_all` versus a narrow `trace`, whether traces survive detach, or that `trace_all` is heavy — all material for a tracing primitive.

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?

Front-loaded with a one-line purpose, then a scannable per-action bullet list, then args, then returns — good structure with no wasted sentences. It is somewhat long, and the Args section restates much of what the bullets already established, which is mild redundancy rather than filler.

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

Completeness5/5

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

An output schema exists, so return values need not be explained, yet the description still summarizes them. Combined with the action breakdown, parameter meanings, and the cross-channel note pointing to renef_events, an agent has everything required to invoke this correctly without opening another tool's docs.

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

Parameters4/5

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

Schema coverage is 0% and the schema does not even enumerate the `action` values, so the description is doing all the work: it lists the six valid actions, the five category strings, example syscall names, and the meaning of `caller` as a library filter that applies only when tracing named syscalls. The main gap is that it never states the precedence between `syscalls` and `category` when both are sent, or that `category` is ignored for `untrace`.

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 and resource ('Trace Linux/Android syscalls in the target process') and then enumerates every action (trace, trace_all, untrace, stop, list, active) with the API call each maps to. An agent can distinguish this from hooking tools and from renef_events purely from the description.

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?

Each action is given a condition of use: `trace` for named syscalls or a whole category, `untrace` for specific ones, `stop` for everything, `list`/`active` for inspection. It also explicitly routes the agent to the `renef_events` sibling to read captured traces, which is the key alternative it needs to know about. It does not contrast syscall tracing with the native hooking tools (renef_hook_native, renef_interceptor) for the same target, so the choice between approaches is left implicit.

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