Skip to main content
Glama

davinci_script_read

Read Groovy script source and return statically parsed tasks, parameters, and issue lists, with a character limit to flag truncated output.

Instructions

读取 Groovy 脚本源码,并返回静态解析出的任务、参数与问题清单。

Args: script: .dv.groovy / .groovy 路径。 max_chars: 返回内容的最大字符数,超出会标记 truncated。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "script": "<script>"
    },
    "name": "davinci_script_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptYes
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load; it does disclose that parsing is static and that oversized output is flagged as truncated. However, it never states that the operation is read-only/non-mutating, and says nothing about missing-file errors, encoding, or permission requirements.

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 summary sentence comes first and is followed by a compact Args block; nothing is padded. The Args entries do partly restate the schema titles, but they earn their place by adding extension and truncation details.

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 read tool with no output schema, the description does well to explain the return payload (tasks, parameters, issues). It is incomplete on failure modes and on the read-only safety profile, which matters more because no annotations exist to cover them.

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 largely does: 'script' is scoped to .dv.groovy/.groovy paths and 'max_chars' is explained along with the truncation behaviour it triggers. The default value of 200000 is not mentioned, which is a minor gap.

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?

The description gives a specific verb and resource ('读取 Groovy 脚本源码' — read Groovy script source) and adds what is returned: statically parsed tasks, parameters, and a problem list. It never distinguishes itself from near-neighbours such as davinci_script_info, davinci_script_lint (also surfaces issues), or davinci_script_write, so an agent must guess which one to pick.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no when-not-to-use guidance, and no named alternative. The only usage signal is the implicit read intent plus the accepted file extensions.

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