Skip to main content
Glama

drift_baseline

Capture an SEO baseline snapshot of a URL by extracting key signals and storing them locally to detect regressions later with drift_compare.

Instructions

Capture an SEO baseline snapshot for a URL.

Fetches the page, extracts critical SEO signals (title, meta tags, canonical, headings, JSON-LD, OpenGraph), and stores them in a local SQLite database as a "known good" reference. Call drift_compare later to detect regressions.

Adapted from scripts/drift_baseline.py in claude-seo (Dan Colta methodology, MIT). No Google API calls. CWV capture requires CRUX_API_KEY (skipped otherwise).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
skip_cwvNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the fetch side effect, that results are persisted to a local SQLite database as a 'known good' reference, that no Google API calls are made, and that CWV capture requires CRUX_API_KEY and is skipped without it. This is meaningful behavioral context, though error/failure behavior on unreachable pages is not covered.

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?

Front-loads the purpose, then the mechanics and caveats, with no filler in the operational sentences. The provenance line about drift_baseline.py / Dan Colta methodology is arguably extraneous but is short and bounded.

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?

An output schema exists, so return-value explanation is unnecessary, and the description covers purpose, side effects, dependency, and the follow-up tool. It is nearly complete; only the sibling-routing detail (versus drift_history) and failure handling are absent, which are minor for a baseline-capture 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?

Schema coverage is 0%, so the description needs to compensate for two undocumented parameters. It indirectly clarifies skip_cwv by explaining that CWV capture requires CRUX_API_KEY and is 'skipped otherwise,' and url's role is self-evident, but neither parameter is named or given format/type details. Partial compensation warrants a mid score.

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?

States a specific verb and resource ('Capture an SEO baseline snapshot for a URL') and immediately enumerates what it extracts, so an agent knows exactly what this produces. It also names the sibling it pairs with (drift_compare), distinguishing it from that tool without opening either schema.

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?

Gives clear sequencing guidance ('Call drift_compare later to detect regressions'), which establishes the baseline-then-compare workflow with the sibling drift_compare. It stops short of stating when NOT to use it (e.g. versus drift_history or when a baseline already exists), so it is clear but not exhaustive.

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