validate_script
Validate Python script metadata and dependencies without execution. Checks PEP 723 syntax, dependency format, and requires-python compatibility.
Instructions
Validate a Python script's PEP 723 metadata and dependencies without executing it.
Checks metadata syntax, dependency format, and requires-python compatibility.
Args: script: Python source code to validate. May include inline dependency metadata (# /// script blocks, see https://peps.python.org/pep-0723/). dependencies: Extra dependency specifiers to validate, using standard pip-style format like "requests>=2.28" (see https://peps.python.org/pep-0508/).
Returns: Validation result with metadata details or error information.
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": "validate_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| dependencies | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |