Skip to main content
Glama

js_get_all_scripts

Retrieve all JavaScript scripts loaded on the current page to enable dynamic analysis and reverse engineering.

Instructions

获取当前页面加载的所有JavaScript脚本列表

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations provided, and the description lacks behavioral traits such as whether the list includes all scripts dynamically loaded, performance implications, or whether it returns URLs or IDs. The description is too minimal to inform the agent about side effects or execution context.

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?

Single sentence, concise and to the point. No wasted words. However, it could be slightly more structured with a brief note on return value.

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

Completeness2/5

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

No output schema, and description does not explain what the returned list contains (e.g., URLs, file names). For a tool that returns a list, this omission leaves the agent guessing about the data format.

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?

No parameters exist (input schema is empty), so baseline is 4. The description does not need to add parameter details as there are none.

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?

Description clearly states the tool retrieves the list of all JavaScript scripts loaded on the current page ('获取当前页面加载的所有JavaScript脚本列表'). The verb '获取' and resource '脚本列表' are specific, and it distinguishes from siblings like js_get_script_source (gets source) and js_search_in_scripts (searches within scripts).

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?

No explicit guidance on when to use or alternatives. The purpose is implied by the name and description, but without mentioning that it's a listing tool for obtaining script identities (e.g., URLs) versus siblings that operate on individual scripts.

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/jenn619/JS-reverse-mcp'

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