{"uid":"cap_UG1WmFqKHNDXVFe1__HU3","slug":"k8s-dockerfile-linter-4608d70b","name":"K8s & Dockerfile Linter","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/k8s-dockerfile-lint?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["content","type"],"properties":{"type":{"type":"string","description":"Content type: 'dockerfile' or 'kubernetes'"},"content":{"type":"string","description":"Dockerfile or Kubernetes YAML content to scan"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"type":{"type":"string"},"violations":{"type":"array","items":{"type":"object","properties":{"line":{"type":"integer"},"rule":{"type":"string"},"message":{"type":"string"},"severity":{"type":"string"}}}},"violation_count":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"type":"dockerfile","violations":[{"line":1,"rule":"no-latest-tag","message":"Image uses 'latest' tag which is not reproducible","severity":"high"},{"line":3,"rule":"no-root-user","message":"Container runs as root user (USER root or no USER directive)","severity":"medium"}],"violation_count":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6-jKF4KeIqPdG23Jp8GBw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Lints Dockerfile or Kubernetes YAML content and returns a list of rule violations with severity, line number, and description.","exampleAgentPrompt":"Can you lint this Dockerfile for me and flag any best practice violations? Here's the content: FROM ubuntu:latest\\nRUN apt-get install curl\\nUSER root — scan it as a dockerfile type.","exampleUseCases":[{"title":"Security audit before image push","prompt":"Before I push this Docker image to production, can you scan this Dockerfile for security issues like running as root or using the latest tag? FROM node:latest\\nRUN npm install\\nUSER root"},{"title":"CI pipeline Kubernetes YAML validation","prompt":"I want to validate this Kubernetes deployment manifest for any rule violations before merging: apiVersion: apps/v1\\nkind: Deployment\\nmetadata:\\n  name: my-app — scan it as type kubernetes and tell me all violations."},{"title":"Onboarding new Dockerfile to best practices","prompt":"Our team just wrote their first Dockerfile and I want to make sure it follows best practices — can you lint this for me as a dockerfile and explain every violation you find? FROM python:latest\\nCOPY . /app\\nUSER root\\nCMD ['python','app.py']"}],"resultDescription":"A JSON object containing the content type scanned, an array of violations (each with line number, rule ID, human-readable message, and severity level), and a total violation count. Severity levels indicate criticality (e.g. high, medium, low).","failureModes":["Missing 'content' or 'type' query parameter returns an error","Invalid 'type' value (not 'dockerfile' or 'kubernetes') may return an error or no violations","Malformed YAML/Dockerfile that cannot be parsed may return zero violations or an error","Payment failure via x402 results in 402 status and no scan result","Very large files may time out or be rejected"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically lint Dockerfile or Kubernetes YAML content without requiring a developer account or API key, paying only $0.002 per scan via USDC micropayment. Ideal for CI/CD automation pipelines, agent-driven code review workflows, or ad-hoc container configuration audits where a lightweight, no-signup linting check is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T20:44:41.425Z","isFirstParty":false,"canonicalSlug":"k8s-dockerfile-linter-4608d70b"}