Skip to main content
Glama
fuzzmind

fuzzmind-frida-mcp

by fuzzmind

frida_hook_native_function

Hook a native function by memory address to inspect arguments and return value using custom JavaScript, with adjustable duration.

Instructions

Hook a native function by address using Interceptor.attach.

target: process name or pid (string). address: hex address of the function to hook. on_enter_js: custom JS for onEnter(args) body. Has args, this.context, send(). Leave None for a default that logs arg0-arg2. on_leave_js: custom JS for onLeave(retval) body. Has retval, this.context, send(). Leave None for a default that logs retval. duration_seconds: how long to keep the hook active (default 10).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYes
addressYes
on_enter_jsNo
on_leave_jsNo
duration_secondsNo
Behavior3/5

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

With no annotations, the description must carry the full burden. It discloses the use of Interceptor.attach, default JS behavior, and duration, but does not cover side effects, cleanup, error handling, or what happens when the hook fires.

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 description is well-structured with bullet-like parameter explanations. It is front-loaded with the core purpose. While slightly verbose, it earns its length by covering all parameters comprehensively.

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?

Given no output schema, the description lacks information about return values (e.g., hook ID or messages). It also does not mention prerequisites like an active Frida session or device connection, which are important for usage.

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?

The input schema has 0% description coverage, but the description compensates by explaining all five parameters: target, address, on_enter_js, on_leave_js, and duration_seconds. It adds meaning beyond the schema by clarifying types, defaults, and the scope of JS bodies.

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?

The description clearly states 'Hook a native function by address using Interceptor.attach.' It specifies the verb (hook), resource (native function by address), and mechanism. This distinguishes it from similar tools like frida_hook_native_by_offset.

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?

The description does not explicitly state when to use this tool vs alternatives. While it mentions hooking by address, it lacks guidance on prerequisites, scenarios, or trade-offs with other hooking tools, leaving the agent to infer context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fuzzmind/frida-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server