Skip to main content
Glama

style_inspect

Run style and layout checks from JSON spec files, reporting only failures to highlight non-compliant elements.

Instructions

按 JSON spec 跑样式/布局检查(setup+nodes+relations)。默认只返回失败项。有验收标准时优先用。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specNo相对 specsDir 的文件名,如 demo-modal-shell.json
indexNo按 style_tabs 的 index 选标签
specJsonNo内联完整 spec(与 spec 二选一)
urlIncludesNo选 URL 包含该串的标签
failuresOnlyNo默认 true
titleIncludesNo选 title 包含该串的标签
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses one key behavior: '默认只返回失败项' ('only returns failures by default'), which is useful. However, it does not mention other behaviors like error handling, side effects, or return format, leaving a moderate transparency level.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three short sentences, each earning its place: the first states the purpose, the second describes default behavior, and the third gives usage guidance. It is front-loaded, efficient, and free of unnecessary words.

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?

For a tool with six optional parameters and no output schema, this description provides the essential context: what it does, the default output behavior, and when to prefer it. It does not explain the selector parameters or the setup/nodes/relations structure, but the schema covers the parameters. It is reasonably complete for a read-only inspection tool.

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 input schema covers all 6 parameters with descriptions, so the baseline is 3. The description adds no new parameter-level meaning; the 'failures only' default is already documented in the failuresOnly parameter. Thus, the schema does the heavy lifting and the description does not enhance it.

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?

The description clearly identifies the tool as running style/layout checks based on a JSON spec, with a parenthetical defining the scope (setup+nodes+relations). It distinguishes from sibling tools by emphasizing spec-driven inspection and explicitly recommending it when acceptance criteria exist, which sets it apart from status, tab, and find tools.

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?

The description gives a clear when-to-use signal: '有验收标准时优先用' ('prefer when acceptance criteria exist'). This provides context for choosing this tool over alternatives, but it does not mention specific sibling names or state when not to use it, so it stops short of full guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jtrslar/style-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server