Skip to main content
Glama
WhiteNightShadow

camoufox-reverse-mcp

trace_function

Monitor JavaScript function calls in real-time to capture arguments, return values, and call stacks for debugging and reverse engineering without halting execution.

Instructions

Trace all calls to a function without pausing execution.

Records arguments, return values, and optionally call stacks for each invocation. Data can be retrieved with get_trace_data.

Args: function_path: Full path to the function, e.g. "XMLHttpRequest.prototype.open", "window.encrypt", "JSON.stringify". log_args: Record function arguments (default True). log_return: Record return values (default True). log_stack: Record call stacks (default False, enable for call chain analysis). max_captures: Maximum number of calls to record (default 50). persistent: If True, the trace survives page navigation. Trace data is collected Python-side via console events and won't be lost on reload.

Returns: dict with status and the target function path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
function_pathYes
log_argsNo
log_returnNo
log_stackNo
max_capturesNo
persistentNo
Behavior4/5

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

With no annotations provided, the description carries full burden and does an excellent job disclosing behavioral traits: it explains the non-blocking nature ('without pausing execution'), what gets recorded (arguments, return values, call stacks), persistence behavior ('survives page navigation'), data collection mechanism ('collected Python-side via console events'), and data retrieval method ('Data can be retrieved with get_trace_data').

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 description is perfectly structured and front-loaded: the first sentence states the core purpose, subsequent sentences add crucial behavioral details, and the parameter documentation is organized in a clear 'Args' section. Every sentence earns its place with no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with 6 parameters, no annotations, and no output schema, the description provides complete coverage: purpose, behavior, parameter semantics, and output format ('dict with status and the target function path'). The mention of 'get_trace_data' for retrieving actual trace data appropriately delegates that detail to the sibling tool.

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?

Despite 0% schema description coverage, the description provides comprehensive parameter documentation in the 'Args' section, explaining each parameter's purpose, defaults, and usage examples (e.g., function_path examples like 'XMLHttpRequest.prototype.open'). This fully compensates for the schema's lack of descriptions.

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 the specific action ('Trace all calls to a function without pausing execution') and resource ('function'), distinguishing it from siblings like 'hook_function' or 'trace_property_access' by focusing on function call logging rather than hooking or property access tracing.

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?

The description provides clear context for when to use this tool (for recording function invocations) and mentions 'get_trace_data' as the complementary tool for retrieving results. However, it doesn't explicitly state when NOT to use it or compare it to alternatives like 'hook_function' or 'set_breakpoint_via_hook'.

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/WhiteNightShadow/camoufox-reverse-mcp'

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