Skip to main content
Glama
ascript-cn
by ascript-cn

run_project_debug

Start an Android project with debug mode enabled, allowing VS Code or Cursor to attach a debugger via debugpy. Automatically forwards TCP port 5678 and waits for IDE connection.

Instructions

以调试模式启动 Android 工程,让脚本可被 VS Code / Cursor 通过 debugpy attach 调试。 前提:1) 平台为 Android(iOS 不支持);2) 设备必须通过 ADB 连接(USB / adb tcpip)。 行为:自动 adb forward tcp:5678 → 设备 127.0.0.1:5678 + 调用设备 /api/model/run?debug=1,设备端 :py 进程进入 listen+wait_for_client 阻塞,等待 IDE attach。 返回:本地端口、可直接粘贴到 .vscode/launch.json 的 attach 配置片段、操作提示。 用户在 VS Code 按 F5 attach 后,业务从 main 开始运行,断点会被命中。 停止调试请调用 stop_project(同时停止业务和调试器)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes工程名称
Behavior5/5

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

With no annotations provided, the description fully discloses all behavioral details: adb forwarding, device API call, blocking mode, return values (port and config snippet), and the attach workflow. It also explains how breakpoints are hit and how to stop, leaving no ambiguity about the tool's operation.

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 well-structured but somewhat verbose, containing detailed step-by-step behavior. It front-loads the core purpose and prerequisites, but could be slightly more concise by omitting redundant operational details. Still, it remains efficient and easy to parse.

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

Completeness5/5

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

Given the tool's complexity (debugging setup with multiple steps), the description is highly complete. It covers prerequisites, technical process, return values, usage tips, and stop instructions. No output schema exists, but the description compensates by detailing the return format.

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?

The only parameter 'name' is fully documented in the input schema (100% coverage), so the description does not need to add extra semantics. It uses the parameter in context but does not elaborate on its format or constraints beyond the schema, which is acceptable but adds no additional value.

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 tool's purpose: to start an Android project in debug mode for VS Code/Cursor attachment via debugpy. It uniquely identifies the action (debug startup) and resource (Android project), distinguishing it from siblings like run_project (non-debug) and stop_project (stop).

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 provides prerequisites (Android platform, ADB connection), usage context (debugging with IDE), and exclusions (iOS not supported). It also directs the user to call stop_project to stop debugging, offering clear when-to-use and when-not-to-use guidance.

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/ascript-cn/ascript-mcp'

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