Skip to main content
Glama

Compare the last two audits of a page

lekta_diff
Read-onlyIdempotent

Compares the two most recent stored audits of one URL: grade and score movement, which checks improved, which regressed. This is the progress meter of the fix loop — call it after re-auditing to prove a fix worked. USE THIS after a deploy plus a fresh lekta_audit. DO NOT use it to compare two different URLs, and do not expect a result when only one audit exists. COST: free, reads stored data only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL with at least two stored audits

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description adds that the tool is 'free' and 'reads stored data only,' and discloses a hard precondition: no result when only one audit exists. This is useful context beyond the annotations, though the core safety profile is already covered by them.

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 what the tool does, then gives usage and exclusion guidance. It is slightly redundant—'call it after re-auditing' and 'USE THIS after a deploy plus a fresh lekta_audit' overlap—but still economical and well structured.

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

Completeness5/5

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

With one documented parameter, no output schema, and clear annotations, the description covers what the tool returns, when to use it, when not to use it, preconditions, and cost. Nothing essential for an agent to select and invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single 'url' parameter, so the baseline is 3. The description adds meaningful semantic clarification that only one URL may be passed and that the tool compares audits within that URL's own history, not two separate URLs. This prevents a natural misunderstanding for a diff-like tool.

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 uses a specific verb and resource: 'Compares the two most recent stored audits of one URL' and names the concrete outputs: 'grade and score movement, which checks improved, which regressed.' This clearly distinguishes lekta_diff from siblings like lekta_audit or lekta_report.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance: 'call it after re-auditing to prove a fix worked' and 'USE THIS after a deploy plus a fresh lekta_audit.' It also gives exclusions: 'DO NOT use it to compare two different URLs' and warns that a result should not be expected when only one audit exists.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.5/5.0
Disambiguation4/5

Each tool has a clear role: audit and report are the same measurement with different output formats, but the descriptions explicitly separate human-readable verdicts from machine-readable JSON. Diff and fix plan operate on stored audits, and my_sites lists account sites, so there is only minor potential confusion between audit and report.

Naming Consistency3/5

All tools share the lekta_ prefix and use snake_case, but the second part mixes verbs (audit), nouns (diff, report), and multi-word phrases (fix_plan, my_sites). The naming is readable and predictable enough, but it does not follow a single consistent verb_noun convention.

Tool Count5/5

Five tools is well-scoped for a focused audit-and-fix workflow: measure, get details, plan fixes, compare progress, and list sites. No tool feels redundant, and the count is comfortably within the ideal range.

Completeness4/5

The tool surface covers the core lifecycle of auditing a page, retrieving structured results, planning fixes, and verifying improvement via diffs. Minor gaps exist, such as no tool to manage scheduled rechecks or delete sites, but these do not block the primary workflow.

Resources