Skip to main content
Glama

pentest_osint_js_secrets

Analyze served JavaScript to extract API endpoints and redacted secret material, supporting OSINT and security assessment of web applications.

Instructions

Analyse served JavaScript: extract API endpoints and secret material (values redacted).

Input Schema

NameRequiredDescriptionDefault
urlYes
max_scriptsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries full burden, and it does disclose one meaningful behaviour: secret values are redacted in output. It does not say whether the tool is read-only, whether it fetches all scripts referenced by the page or only inline ones, what limits apply, or how failures on unreachable scripts are handled.

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?

One tight sentence with the resource and outcome front-loaded and zero filler. It is arguably too terse given the total absence of parameter or behavioural detail elsewhere, but no wording is wasted.

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

Completeness3/5

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

For a two-parameter tool with no annotations and no output schema, the description explains what the tool produces conceptually and that secrets are redacted, but leaves the required url semantics and the return structure (per-script breakdown? endpoint list?) undocumented.

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

Parameters2/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 and largely fails to. It never clarifies whether "url" is the page URL or a direct .js URL, nor what max_scripts (default 15) bounds — either total scripts fetched or something else.

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?

"Analyse served JavaScript: extract API endpoints and secret material" gives a specific verb (analyse/extract) and two concrete resources (endpoints, secrets). It implicitly separates itself from pentest_web_secrets_scan by scoping to served JavaScript, but never names that sibling, so an agent must infer the boundary.

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?

The phrase "served JavaScript" implies you call this on a page whose scripts you want mined, which is a usable hint. However, there is no explicit when-to-use, no exclusion against pentest_web_secrets_scan or pentest_web_crawl, and no stated prerequisite such as scope authorisation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools