Skip to main content
Glama

lint

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
pathNoA 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.
typeNoauto detects Dockerfile vs Kubernetes YAML/JSON.auto
ignoreNoRule ids to skip, e.g. ["DF-017"].
contentNoThe Dockerfile or manifest, as text (up to 512 KiB).
fail_onNo`passed` is false at this severity or worse.high

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.6
    • changedInput schema / properties / path / description
      Previous value: -"A local file to lint instead of `content`."New value: +"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."
  2. First observedv0.2.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, so the safety profile is covered. The description adds genuine context beyond that: the return payload shape (grade, score, passed, findings with line/fix/reference) and, importantly, that a `path` file's content is uploaded to a remote Shipshape API — a data-egress behavior an agent needs to know. It does not mention size limits (512 KiB) or accepted file patterns, but the schema carries those.

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, then return shape, then input mode, then side effect — a sensible order with no wasted preamble. The upload note is repeated on both the tool and the `path` parameter, and the closing sentence could be folded into the input sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description specifies what comes back (grade, score, passed, per-finding line/fix/reference), how to supply input, and the remote-upload side effect. Combined with a fully documented schema, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with descriptions and enums for all five parameters, so the baseline is 3. The description's only added parameter meaning is the mutual-exclusivity of `content` versus `path` plus the upload side effect, which the schema already states as 'instead of `content`' — marginal added value.

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 two concrete resources: 'Lint a Dockerfile or Kubernetes manifest.' That is enough for an agent to know exactly what the tool does without opening the schema. No siblings exist to differentiate from, so there is no ambiguity to resolve.

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?

'Give either `content` or `path`' gives explicit invocation guidance for the two alternative input modes. There are no sibling tools and thus no alternatives to exclude, which is the only thing keeping this from a 5.

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

Deploy Server

Other Tools