Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_unhook

Remove native, Java, or all hooks from a target process. Specify a native hook ID, a Java ID like j0, or all to clean up instrumentation.

Instructions

Remove native hook(s), Java hook(s), or all hooks from the target process.

In Renef v0.4.0, Java hooks can also be removed individually by their j<id> ID (as shown in renef_hooks_list).

Args: hook_id: Hook ID to remove: "all" (default), native ID like "0", or Java ID like "j0"

Returns: JSON status with server reply

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_unhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
hook_idNoall

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden for a destructive operation; it never states whether removal is reversible, what happens if the hook ID does not exist, or whether the process must be attached first. It does add genuinely useful behavior beyond the schema: the version-scoped (v0.4.0) `j<id>` Java removal syntax and the fact that a JSON status reply is returned.

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?

The destructive action is front-loaded in the first sentence, and the Args/Returns breakdown is compact and scannable. No sentence is redundant filler.

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?

Output schema exists, so the 'Returns: JSON status' note suffices, and the single parameter is fully described. What remains missing is risk/prerequisite context (reversibility, required attachment state) that matters for a hook-removal tool with zero annotation coverage.

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 is a bare string with default 'all', so the description does all the work, explaining all three accepted forms ('all', native like '0', Java like 'j0') with examples. It is nearly complete, missing only edge cases such as invalid or already-removed IDs.

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 specific verb and resource ('Remove native hook(s), Java hook(s), or all hooks from the target process'), which cleanly separates it from the hook-creation siblings (renef_hook_native, renef_hook_java). It does not explicitly contrast itself with renef_hooks_list beyond citing it as an ID source, so it stops short of full sibling differentiation.

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 concrete usage context: default is 'all', and individual Java hook removal uses the `j<id>` form obtained from renef_hooks_list, which is exactly the routing an agent needs. No explicit when-not guidance (e.g., whether to prefer a targeted removal over 'all') is given.

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