Skip to main content
Glama
dsh-mcp-tools
by feely0208

站点体检

site_audit

Run a read-only pre-launch audit of a live site or local build to detect broken internal links, oversized images, SEO gaps, robots/sitemap issues, mixed content, and redirect chains.

Instructions

上线前给站点做只读体检:内部链接 4xx/5xx、图片体积、基础 SEO、robots/sitemap、混合内容、重定向链。可以查在线站点(base)或本地构建目录(dir)。只发 GET/HEAD,不提交表单、不登录。

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": "site_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNo本地站点目录,如 ./dist(与 base 二选一,不发任何请求)。
baseNo在线站点起始页,如 https://example.com(与 dir 二选一)。
offlineNo是否关掉外链探测。默认 true(离线、更快);要探测站外链接时传 false。
max_pagesNo最多抓多少页。
timeout_msNo整体超时(毫秒),默认 120000、上限 600000;超时会终止子进程并返回 timeout 错误。
concurrencyNo并发上限。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it declares the operation read-only, states that only GET/HEAD are issued, and rules out form submission and login, giving the agent the safety envelope it needs. It omits the load/politeness profile against the target site and does not mention that runs can be long (the 120s default timeout lives only in the schema), which keeps it off a 5.

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?

Three short sentences, front-loaded with the purpose and check list, then the mode choice, then the read-only safety envelope. Nothing is padding or duplicated, and the ordering matches how an agent would need to reason about the call.

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

Completeness3/5

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

For a six-parameter tool with no annotations and no output schema, the description covers what is audited and the safety profile but never indicates what comes back — report shape, per-issue detail, or summary counts — leaving the agent to guess the return value. It also leaves the default offline=true behavior and expected runtime to the schema alone, which is a meaningful gap for a crawl that may hit many pages.

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 description coverage is 100%, so the baseline is 3. The description's only parameter-bearing information — base for an online site, dir for a local build — restates the schema's own "与 base 二选一" mutual exclusion and adds no new meaning; offline, max_pages, timeout_ms, and concurrency are not touched at all in the description.

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 gives a specific verb+resource (只读体检 on a site) and enumerates the exact check categories: 4xx/5xx links, image weight, basic SEO, robots/sitemap, mixed content, redirect chains. That makes the tool unmistakable against compare_docs/merge_docs. It stops short of distinguishing itself from release_check, which shares the pre-launch framing, so it lands at 4 rather than 5.

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?

It sets clear context — "上线前" (before going live) — and explains the two operating modes, online site via base or local build directory via dir. It offers no explicit when-not guidance and does not name an alternative tool for overlapping release-time checks, so no exclusion guidance is present.

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