Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_load_script

Loads and executes one or more local Lua script files inside a target process, returning per-script results with Lua error reporting.

Instructions

Load and execute one or more local Lua script files in the target process.

Reads the file(s) on the host and sends them over Renef v0.4.0's framed protocol (supports scripts of any size with full Lua error reporting).

Args: script_paths: Path to a Lua file, or space-separated paths to multiple files (e.g., "hook.lua" or "taint_filter.lua root_emulator_bypass.lua") timeout: Execution timeout per script in seconds (default: 30.0)

Returns: JSON summary with per-script execution results

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": {
      "script_paths": "<script_paths>"
    },
    "name": "renef_load_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNo
script_pathsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/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 and does provide real behavioral context: files are read host-side, transported via Renef v0.4.0's framed protocol, support scripts of any size, and report full Lua errors. It omits side effects in the target process, whether the script runs once or persists, and permission or safety considerations for what is effectively arbitrary code execution.

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 action, then Args and Returns in a conventional, scannable layout. The protocol version and 'any size' remark are marginally useful context rather than filler, though the return section only restates what the output schema already covers.

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?

An output schema exists, so the Returns note is sufficient and parameter documentation is solid. For a tool that executes arbitrary code against a target process with zero annotations, however, the description should say more about prerequisites, effects, and failure modes than it does.

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 description coverage is 0%, so the description must compensate and largely does: it explains that script_paths accepts one path or space-separated multiple paths with a concrete example, and that timeout is per-script in seconds with a 30.0 default. The only gap is quoting or escaping behavior for paths containing spaces, which makes the space-separated convention ambiguous.

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?

The description opens with a specific verb and resource: 'Load and execute one or more local Lua script files in the target process.' That is unambiguous about what the tool does. It does not, however, distinguish itself from siblings such as renef_exec or renef_hook_generate, so an agent must infer the boundary itself.

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?

Usage is only implied by the purpose statement: the agent can guess this is the tool for running local Lua against a process, but there is no explicit when-to-use, when-not-to-use, or named alternative. No prerequisites (attachment state, target process selection) are stated.

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