Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_events

Collect buffered hook output, syscall trace lines, and structured send() events from a dedicated channel, optionally waiting for new events or including Android logcat fallback.

Instructions

Collect hook output, syscall trace lines, and structured send({...}) JSON events.

In Renef v0.4.0, hook callbacks and syscall tracers emit to a dedicated event channel separate from normal command replies. Call this tool to retrieve buffered events or wait up to wait_ms milliseconds for new ones.

Args: wait_ms: Milliseconds to wait for incoming events (0 = immediate drain, max 30000) include_logcat: Also fetch recent RENEF_LUA lines from Android logcat as fallback

Returns: JSON object with events (structured send() payloads), output (printed hook/trace lines), and optionally logcat

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": "renef_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
wait_msNo
include_logcatNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior4/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: it explains that events are buffered on a separate channel, that the call can block up to a bounded wait, and that logcat acts as a fallback source. The one notable gap is whether retrieving events drains/consumes the buffer (only implied by 'immediate drain'), which matters for a tool an agent may poll repeatedly.

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 the core purpose, then cleanly separated Args and Returns blocks with no filler sentences. The version annotation ('In Renef v0.4.0') is minor context that adds little for an agent, and the Returns block partly duplicates the existing output schema.

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 a two-parameter polling tool this is nearly complete: it covers purpose, channel behavior, parameter semantics, and return shape. Remaining ambiguity is around timeout behavior (what an empty result looks like) and whether the buffer is consumed, plus any prerequisite that a hook/tracer must already be attached.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does: wait_ms is given meaning (0 = immediate drain), a hard cap (max 30000), and units, while include_logcat is explained as pulling RENEF_LUA lines from Android logcat as a fallback. Both parameters gain semantics absent from the bare schema.

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 concrete verb and resource set: collecting hook output, syscall trace lines, and structured send() JSON events from a dedicated event channel. The line 'separate from normal command replies' functionally distinguishes it from renef_command without naming it, which is enough for an agent to route correctly.

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?

Explicitly says 'Call this tool to retrieve buffered events or wait up to wait_ms milliseconds for new ones', giving a clear usage context. It does not state when not to use it or name a sibling alternative, so it falls short of full when/when-not guidance.

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