Introduction¶
In DSH skill development, tool definitions (the tools array or MCP tool manifest) directly determine whether a model can invoke capabilities correctly. Models rely on descriptions to select tools. If descriptions are vague, schemas are incomplete, or naming conventions are not followed, the model may pick the wrong tool or ignore it entirely. This calls for a systematic way to audit tool definitions before publishing.
What Is This¶
@deepwhale-cn/dsh-tool-schema-lint is a DeepSeek Harness plugin that performs a “security check” on tool definitions exposed to large language models. It inspects description quality, schema completeness, naming conventions, conflicts with official tools, and whether dangerous operations lack confirmation prompts. Since models depend on descriptions to select tools, poorly written definitions can lead to mis-selection or omission.
Core Features¶
- Description quality check: Verifies whether descriptions are clear, understandable, and accurately convey the tool’s purpose.
- Schema completeness check: Ensures that input and output schemas are complete and valid.
- Naming convention check: Validates that tool names are compliant and consistent.
- Conflict detection with official tools: Prevents name collisions or conflicts with DSH official tools.
- Dangerous operation confirmation check: Verifies that confirmation prompts are included when dangerous operations are involved.
The plugin applies 10 rules to the input tools array, {tools:[...]}, or {functions:[...]}, and sets an exit code based on the results (high severity → exit code 1).
Installation & Setup¶
Run the following in a DSH environment:
dsh plugin --profile web add @deepwhale-cn/dsh-tool-schema-lint
You can also install it via npm:
npm i @deepwhale-cn/dsh-tool-schema-lint
Or install directly from a repository directory:
dsh plugin install ./
Typical Usage¶
Check a JSON file directly from the command line:
npx @deepwhale-cn/dsh-tool-schema-lint --file tools.json [--html report.html]
Input can be a tools array, or an object containing a tools or functions field. The plugin evaluates all 10 rules and generates a report (HTML format supported).
Use Cases & Notes¶
- Ideal for MCP server developers and full-stack application developers who want to self-audit tool definitions before publishing.
- The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license before installing.
Conclusion¶
By adopting this tool definition audit mechanism, you can reduce the risk of tools being mis-selected or overlooked due to poor descriptions or incomplete definitions before going live. For more details, refer to the plugin directory page and the GitHub repository.