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

deploy_and_run

Upload Python code to a mobile automation project, execute it on a real device, and retrieve logs and screenshots for validation.

Instructions

一步完成开发验证循环:上传代码 → 运行 → 收集日志 → 截图验证。 代码会上传为 init.py(入口文件),工程不存在时自动创建。 返回上传结果、运行结果、日志内容和运行后截图。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_nameYes工程名称
codeYesPython 脚本代码内容
log_secondsNo收集日志的秒数,默认 5
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that code is uploaded as __init__.py and projects are auto-created. However, it does not mention side effects like overwriting existing files or potential failures.

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?

The description is extremely concise, consisting of two sentences that first state the main loop (upload→run→logs→screenshot) then detail specifics (upload as __init__.py, auto-create project, return values). No wasted words.

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

Completeness4/5

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

Given the tool's complexity (multi-step) and the absence of an output schema, the description covers the workflow and return values reasonably. It could be improved by mentioning behavior for existing projects and error handling, but is largely complete for a dev loop tool.

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?

Schema coverage is 100% so parameters are documented. The description adds context that code is uploaded as an entry file and that projects are auto-created, which adds meaning beyond the schema. It does not elaborate on the project_name parameter's relation to existing projects.

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 function: uploading code, running it, collecting logs, and taking a screenshot in one step. It distinguishes from sibling tools that only handle individual steps (upload_file, run_project, screen_capture, get_run_log).

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 rapid development loops but does not explicitly state when to use this tool versus alternatives. It mentions auto-creation of missing projects but lacks clear when-to-use or 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