Skip to main content
Glama
1193776794

Frida Agent MCP

by 1193776794

execute

Inject Frida JavaScript scripts into Android applications to analyze runtime behavior, retrieve execution data, and perform dynamic reverse engineering tasks.

Instructions

Inject a Frida JavaScript script into the frontmost application. The script is automatically wrapped with try-catch for safety. Returns immediately after injection - use get_messages() to retrieve results after the user has triggered the target functionality.

Args: script: Frida JavaScript code to inject. Use send() to return data. script_file: Path to a .js file to inject. Use this for large scripts instead of script parameter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptNo
script_fileNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: the script is wrapped with try-catch for safety, the tool returns immediately after injection (asynchronous behavior), and results must be retrieved via get_messages(). However, it doesn't mention potential side effects like application instability or permission requirements.

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 efficiently structured with a clear purpose statement upfront, followed by behavioral details, and then parameter explanations. Every sentence adds value: the first states what it does, the second explains safety wrapping, the third clarifies async behavior and result retrieval, and the parameter section provides practical guidance.

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?

Given the tool's complexity (code injection into running applications) and lack of annotations, the description does well by explaining the async nature, safety mechanism, and parameter usage. However, it doesn't mention potential failure modes or security implications. The presence of an output schema means return values don't need explanation, but more behavioral context would be beneficial.

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 clear semantic meaning for both parameters: 'script' is Frida JavaScript code with guidance to 'Use send() to return data', and 'script_file' is a path to a .js file for large scripts. The description adds essential context 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 ('Inject a Frida JavaScript script') and target ('into the frontmost application'), distinguishing it from siblings like 'spawn_and_inject' (which likely spawns a new process) or 'connect' (which establishes connection). The verb+resource combination is precise and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool ('Returns immediately after injection - use get_messages() to retrieve results after the user has triggered the target functionality') and provides a clear alternative for large scripts ('Use this for large scripts instead of script parameter'). It also distinguishes from siblings by specifying it targets the 'frontmost application'.

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/1193776794/frida-mcp'

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