Skip to main content
Glama

lint

Check a screen for layout, accessibility, label, link, and overlay issues—including touch targets, small or clipped text—and return findings with a marked PNG.

Instructions

Run all deterministic layout, accessibility, label, link, and overlay rules—including touch target, small text, and clipped text checks—and return findings plus a marked PNG. Example: {"screen":"checkout"}.

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": {
      "screen": "<screen>"
    },
    "name": "lint"
  }
}

Input Schema

NameRequiredDescriptionDefault
screenYesLowercase identifier matching [a-z][a-z0-9_]{0,31}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that all deterministic rules run and that the result includes findings plus a marked PNG, implying a non-mutating analysis. It does not explicitly state that the screen is unchanged, whether permissions are required, or the findings format, leaving some behavioral gaps.

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?

The description is front-loaded with the action and scope, and the rule categories earn their place by clarifying what is linted. The example is compact, though the long single sentence packs multiple concepts without visual structure.

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

Completeness4/5

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

The tool has one fully documented parameter and no output schema, so the description appropriately explains the return value as findings plus a marked PNG. It is complete enough for invocation, though a little more detail on the findings format or read-only behavior would close remaining gaps.

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?

The only parameter is fully described by the schema, including its pattern. The description adds an example showing the screen identifier format ('checkout'), which reinforces but does not add substantial meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Run') and enumerates the resource scope: deterministic layout, accessibility, label, link, and overlay rules, plus touch target, small text, and clipped text checks. This clearly distinguishes lint from rendering or tree-inspection siblings, though it does not explicitly name an alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the rule categories and example request, making it clear this is a validation pass over a screen. However, there is no explicit guidance on when to use lint versus sibling tools like links, render, or get_tree, and no exclusions or prerequisites are stated.

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