Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_native_call

Call native ARM64 functions directly inside a target process, passing integer, pointer, float, or double arguments and triggering installed hooks on the target address.

Instructions

Call a native ARM64 function directly inside the target process via NativeFunction.

Supports up to 8 integer/pointer args (x0-x7) and 8 float/double args (d0-d7). Explicit calls via NativeFunction DO trigger installed hooks on the target address.

Supported types for ret_type and arg_types: "int", "long", "pointer", "bool", "string", "void", "float", "double".

Args: address: Target function address (e.g., "0x7f8a12340") ret_type: Return type (default: "pointer") arg_types: Optional list of argument types (e.g., ["pointer", "int"]) args: Optional list of argument values (ints, hex address strings starting with "0x", floats, bools, or strings). Note: if an argument's declared type is "pointer" and you pass a hex string like "0x7f0000", it is converted to an integer pointer. timeout: Call timeout in seconds (default: 30.0)

Returns: JSON object with ok, result, and hex formatting for pointer returns

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": {
      "address": "<address>"
    },
    "name": "renef_native_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
addressYes
timeoutNo
ret_typeNopointer
arg_typesNo

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 zero annotations the description carries the full burden, and it delivers key behavioral facts: explicit calls trigger installed hooks, an ABI ceiling of 8 integer/pointer plus 8 float args, a 30s default timeout, and a JSON `ok`/`result` return with hex-formatted pointers. It omits prerequisites (whether an attach/session must already exist) and any warning about the target crashing on a bad address or type mismatch.

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?

Purpose is front-loaded in the first sentence, and the Args/Returns blocks make scanning easy. A few lines merely restate schema defaults, and the supported-types list could be tightened, but nothing is padded for its own sake.

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 high-risk native-invocation tool with no annotations, the definition covers argument marshalling, ABI limits, timeout, and return shape well. An output schema exists so return details are a bonus, but the complete absence of preconditions and failure-mode guidance leaves a real gap before an agent fires an arbitrary ARM64 call.

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: every one of the five parameters is explained, including the full set of legal `ret_type`/`arg_types` string values and the non-obvious conversion when a 'pointer'-typed arg is passed as a "0x..." hex string. Defaults for `ret_type` and `timeout` are restated in prose alongside their semantics.

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 first sentence names a precise verb ('Call') and resource ('a native ARM64 function directly inside the target process') and ties it to the specific mechanism (`NativeFunction`). The word 'native' plus the register-level detail (x0-x7, d0-d7) separates it from `renef_java_call` without needing to name the sibling.

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 tells you what happens when you invoke a function this way (hooks fire) but never states when to prefer this over `renef_java_call`, `renef_hook_native`, or `renef_exec`. Usage is implied by the mechanism rather than stated, so an agent must infer the selection rule.

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