Skip to main content
Glama

collect_code

Read-only

Collect JavaScript from a page using smart modes—summary, priority, incremental, or full—to support reverse engineering and script analysis.

Instructions

Collect JavaScript code from a page with smart modes (summary/priority/incremental/full).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
topNNo
limitNo
patternNo
smartModeNo
returnModeNo
maxFileSizeNo
maxTotalSizeNo
includeInlineNo
includeDynamicNo
includeExternalNo
Behavior3/5

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

Annotations declare readOnlyHint=true, and the description's 'collect' aligns with a read operation. The description adds the smart modes but doesn't explain their behavioral impact (e.g., what each mode returns or how they differ), so it adds minimal context beyond the annotation.

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?

The description is a single concise sentence with no waste. However, it omits critical details in favor of brevity, so it's not a perfect 5.

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

Completeness1/5

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

With 11 parameters, no output schema, and minimal annotations, the description is grossly incomplete. It doesn't explain the modes' behavior, return format, or parameter usage, leaving an agent with almost no guidance for effective invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%. With 11 parameters, the description only hints at smartMode via the mode list, but doesn't explain any parameter semantics, including topN, pattern, limit, or include flags. The description fails to compensate for the low schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool collects JavaScript code from a page, using a specific verb and resource. It also lists the smart modes, but doesn't explain them or distinguish from sibling search tools beyond the 'collect' verb.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. It doesn't mention exclusions or alternatives, so an agent has no context for selection.

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/NoOne-hub/JSReverser-MCP'

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