Skip to main content
Glama
xrntkk
by xrntkk

get_script_source

Retrieve source code of a script from an Electron app's asar bundle, specified by its script ID, for static analysis.

Instructions

Get the source code of a script by scriptId (from list_scripts). Useful for static analysis of app.asar bundles.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdNoPage id from list_pages, or "main" (default) for the main process.
scriptIdYesScript id from list_scripts.
maxLengthNoMaximum characters to return (default 200000).
sessionIdYesSession id returned by launch_app.
Behavior2/5

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

With no annotations, the description carries full burden. It states basic behavior (get source code) but omits details on truncation via maxLength, error cases (invalid scriptId), or return format. Schema covers maxLength but description doesn't reiterate its behavior.

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?

Two sentences: first defines function clearly, second adds context. No redundant or extraneous text.

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?

While the purpose is clear, the description lacks information about return format, error handling, and the optional pageId defaulting to 'main'. Given no output schema, description should provide more context to be fully complete.

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

Parameters3/5

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

Schema description coverage is 100%, so baseline is 3. The description adds context on how to obtain scriptId ('from list_scripts') but does not enhance understanding of sessionId, pageId, or maxLength beyond the 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 verb 'Get' and the resource 'source code of a script', specifying the identifier 'by scriptId (from list_scripts)' and a use case 'static analysis of app.asar bundles'. This distinguishes it from siblings like evaluate_in_main which execute code dynamically.

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 description implies usage for static analysis, but does not explicitly state when to avoid this tool or mention alternatives like evaluate_in_main for dynamic execution. No when-not-to-use guidance is provided.

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/xrntkk/debugtron-mcp'

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