Skip to main content
Glama

davinci_script_tasks

Compiles DaVinci scripts and lists all automation tasks, catching Groovy syntax and API spelling errors that local parsing misses.

Instructions

让 DaVinci 加载脚本并列出全部任务(automation list,权威结果)。

与 davinci_script_list 的区别:后者只做本地文本解析,前者会真正编译脚本, 能发现 Groovy 语法错误和 API 拼写错误。加载失败时退出码非 0。

Args: project: .dvjson 工程文件。 bsw_package: BSW 包目录;缺省用 DAVINCI_BSW_PACKAGE。 locations: 脚本目录列表(包含 .dv.groovy 的文件夹或脚本工程的 build/libs)。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "davinci_script_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
locationsNo
bsw_packageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers: it discloses that the script is actually compiled, that failures produce a non-zero exit code, and that results are authoritative. It does not describe the shape of the returned task list, which keeps it below 5.

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?

Front-loaded with purpose and the sibling differentiation before the parameter block; every sentence adds information. Slightly verbose in the parameter section but not wasteful.

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?

For a three-parameter tool with no annotations and no output schema, the description covers purpose, trade-off versus the lighter sibling, failure semantics, and every parameter. Return-value details are the main remaining gap.

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 description coverage is 0%, so the description must compensate, and it does: it documents all three parameters, including the .dvjson project file, the BSW package directory with its DAVINCI_BSW_PACKAGE fallback, and the expected contents of locations (.dv.groovy folders or build/libs). Only the exact accepted path format is left implicit.

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?

States a specific verb and resource ('load scripts and list all tasks', authoritative automation list) and explicitly distinguishes itself from the sibling davinci_script_list. An agent can tell the two apart without inspecting schemas.

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

Usage Guidelines4/5

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

Names the alternative davinci_script_list and the condition that selects this one (real compilation vs local text parsing, catching Groovy/API errors). No explicit when-not guidance and no comparison against similarly named siblings such as davinci_automation_list, so not quite a 5.

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