Skip to main content
Glama
WhiteNightShadow

camoufox-reverse-mcp

search_code

Search JavaScript source code across loaded scripts to find specific keywords or patterns for reverse engineering and debugging purposes.

Instructions

Search for a keyword across all loaded JavaScript sources in the page.

Fetches each script's source and searches for the keyword, returning matching lines with 2 lines of surrounding context.

Args: keyword: The keyword or pattern to search for (case-sensitive substring match). max_results: Maximum number of matches to return (default 50, max 200).

Returns: dict with matches list, total_matches count, scripts_searched count, and scripts_with_matches list. When results are truncated, total_matches shows the real total so you know how many were omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes
max_resultsNo
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 well: it explains the search behavior (case-sensitive substring match), result format (matching lines with 2 lines of surrounding context), and truncation behavior (total_matches shows real total when truncated). It doesn't mention performance implications or rate limits, but covers core behavioral aspects adequately.

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?

Well-structured with purpose first, then behavioral details, followed by parameter explanations and return format. Every sentence earns its place with no wasted words. The information is front-loaded with the core functionality stated immediately.

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 search tool with no annotations and no output schema, the description does very well: explains purpose, behavior, parameters, and return format. It could mention performance considerations for searching many scripts, but covers the essential context needed to use the tool effectively.

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 fully. It provides excellent parameter semantics: explains 'keyword' as 'case-sensitive substring match' and 'max_results' with default value (50) and maximum (200). This adds crucial meaning beyond the bare schema.

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 ('Search for a keyword'), target resource ('across all loaded JavaScript sources in the page'), and scope ('fetches each script's source'). It distinguishes from siblings like 'search_code_in_script' by specifying it searches across ALL scripts rather than a specific one.

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 about what the tool does (searching across all JavaScript sources), but doesn't explicitly state when to use this versus alternatives like 'search_code_in_script' or 'search_response_body'. The context is clear but lacks explicit sibling differentiation.

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