lint
Lint a Dockerfile or Kubernetes manifest to get an A–F grade, score, pass/fail status, and every finding with its line, fix, and reference.
Instructions
Lint a Dockerfile or Kubernetes manifest. Returns the grade, score, passed and every finding with its
line, fix and reference. Give either content or path. The content of a path file is uploaded to the Shipshape API.
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": "lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A local file to lint instead of `content`. Its content is uploaded to the Shipshape API. Only files inside the working directory (or SHIPSHAPE_MCP_ROOT) named Dockerfile*, *.yaml, *.yml or *.json are read. | |
| type | No | auto detects Dockerfile vs Kubernetes YAML/JSON. | auto |
| ignore | No | Rule ids to skip, e.g. ["DF-017"]. | |
| content | No | The Dockerfile or manifest, as text (up to 512 KiB). | |
| fail_on | No | `passed` is false at this severity or worse. | high |