pseolint

v0.6.4
io.github.ouranos-labs/pseolint Checked 4 days ago Published 6 months ago

Penalty-risk audit for programmatic SEO sites: verdict, risk score, and a fix manifest.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pseolint_audit_site Audit Site for SpamBrain Risk

Use when a user asks to check their website for SEO issues, SpamBrain risk, duplicate content, thin pages, or before deploying a programmatic SEO site. Crawls the site, runs 40+ rules scored across 4 categories (integrity, discoverability, citation, data), and returns a verdict (ready/caution/concerning/critical) plus a numeric risk score (0-100, lower is better) with actionable findings. Pre-flight site classification suppresses pSEO-targeted rules on small marketing sites and blogs unless strict mode is set. When the audited site has ≥2 detected URL templates, the response includes a `temp…

ParameterTypeDescription
source *stringURL (e.g. http://localhost:3000) or local directory path (e.g. ./out) to audit
authorityScoreintegerBring-your-own domain authority (0-100). >=80 shifts the verdict one tier lenient on established brands; <=30 shifts one tier stricter on newer/lower-authority operators. The raw risk number is never…
formatstringText-content format. Use 'json' for full machine-readable output, 'console' for a human-readable summary. structuredContent is always returned regardless.
sampleSeedintegerInteger seed for deterministic stratified sampling. Same seed + same sampleSize = same audit = same verdict, run after run.
sampleSizeintegerAudit a random subset of N pages. 0 = all pages up to the MCP cap of 50. Set explicitly to override the cap (up to 500).
thresholdintegerRisk threshold — `passed` is false if risk >= this value (default: 40, semantically equivalent to 'caution' verdict)

pseolint_explain_score Explain pseolint Verdict

Use when a user wants to understand WHY their pseolint verdict is concerning/critical, what categories are failing, and what to fix first. Returns a prioritized breakdown with quick wins listed before structural fixes, plus a pass/fail verdict against the risk threshold. Both human-readable text and structured data (structuredContent) are returned. A failing threshold is reported via `passed`, not `isError`.

ParameterTypeDescription
source *stringURL (e.g. http://localhost:3000) or local directory path (e.g. ./out) to audit
authorityScoreintegerBring-your-own domain authority (0-100). >=80 shifts the verdict one tier lenient; <=30 shifts one tier stricter. Raw risk unchanged.
sampleSeedintegerInteger seed for deterministic stratified sampling. Same seed = same audit = same verdict.
thresholdintegerRisk threshold for the pass/fail verdict (default: 40)

pseolint_check_page_technical Check Single Page Technical SEO

Use when a user asks to check a specific page URL for technical SEO issues. Checks per-page rules only: canonical tags, Open Graph tags, JSON-LD schema, robots directives, meta tags, thin content, and author signals. Does NOT check cross-page rules (duplicates, cannibalization, linking) — use pseolint_audit_site for those. Both human-readable text and structured data (structuredContent) are returned.

ParameterTypeDescription
url *stringFull URL of the page to check (e.g. https://yoursite.com/templates/california-llc)

pseolint_orchestrate_audit Orchestrate AI-Native pSEO Audit

Use when a user wants concrete, paste-able fixes (rewritten H1s, JSON-LD blocks, robots.txt patches, internal-link suggestions) — not just a list of issues. An LLM drives 25 tools (sitemap fetch, template clustering, per-page rule checks, AEO probes) and produces a fix manifest with structured patches, each validated against a deterministic schema. Costs real money (~$1-3 per audit on managed Anthropic). Capped at $2 / 60 tool calls / 180 seconds by default — adjust if the user asks for a deeper run. Returns a text summary plus a compact structured summary (structuredContent); pass format:…

ParameterTypeDescription
domain *stringURL of the site to audit (e.g. https://example.com). The orchestrator's first tool call fetches the sitemap.
formatstring'summary' = terse text for chat UI; 'json' = full manifest + validation + diff in the text content.
maxCostUsdnumberHard USD cap for this session. Default $2 (conservative for MCP-invoked sessions). Min $0.10, max $50.
maxToolCallsintegerHard tool-call cap. Default 60. Max 500.
maxWallSecondsintegerHard wall-clock cap in seconds. Default 180 (3 minutes). Min 10, max 900.