Skip to main content
Glama

One API recovery scan: what it saw, its findings, the fixes and what changed since the last scan

sites_by_slug_scans_by_id
Read-onlyIdempotent

Wraps GET /api/sites/{slug}/scans/{id}. One API recovery scan: what it saw, its findings, the fixes and what changed since the last scan. Call this for a scan's results: findings by weight with the places on the site, three to five fixes in words and as a block for a coding agent, and new, fixed and still-open findings since the previous scan. It never includes text from the scanned site.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>",
      "id": "<id>"
    },
    "name": "sites_by_slug_scans_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesscan id, as in /api/sites/{slug}/scans
slugYessite slug, as in /api/sites

Output Schema

NameRequiredDescriptionDefault
dataNo
next_stepsNocalls that usually come next, each naming its tool

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changed
    • changedOutput schema / properties / data / properties / compare / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "added": {
      -        "type": "number"
      -      },
      -      "fixed": {
      -        "type": "number"
      -      },
      -      "notChecked": {
      -        "type": "number"
      -      },
      -      "open": {
      -        "type": "number"
      -      },
      -      "previous": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "added": {
      +        "description": "findings new since",
      +        "type": "number"
      +      },
      +      "fixed": {
      +        "description": "findings fixed since",
      +        "type": "number"
      +      },
      +      "notChecked": {
      +        "description": "findings this scan couldn't check again",
      +        "type": "number"
      +      },
      +      "open": {
      +        "description": "findings still open",
      +        "type": "number"
      +      },
      +      "previous": {
      +        "description": "the scan it's compared with",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / data / properties / compare / description
      Added value: +"against the previous scan, for a re-scan; null otherwise"
    • changedOutput schema / properties / data / properties / findings / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "high": {
      -        "type": "number"
      -      },
      -      "light": {
      -        "type": "number"
      -      },
      -      "medium": {
      -        "type": "number"
      -      },
      -      "warning": {
      -        "type": "number"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "high": {
      +        "description": "high-weight findings",
      +        "type": "number"
      +      },
      +      "light": {
      +        "description": "light findings",
      +        "type": "number"
      +      },
      +      "medium": {
      +        "description": "medium-weight findings",
      +        "type": "number"
      +      },
      +      "warning": {
      +        "description": "warnings",
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / data / properties / findings / description
      Added value: +"findings by weight; null before the report"
    • removedOutput schema / properties / data / properties / finishedAt / anyOf
      Removed value: -[
      -  {
      -    "description": "ISO 8601, UTC (…Z)",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / finishedAt / description
      Added value: +"when it finished (ISO 8601, UTC); null when there's none"
    • addedOutput schema / properties / data / properties / finishedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / data / properties / fixes / description
      Added value: +"the fixes, most important first"
    • addedOutput schema / properties / data / properties / fixes / items / properties / more / description
      Added value: +"places beyond those listed"
    • addedOutput schema / properties / data / properties / fixes / items / properties / places / description
      Added value: +"where it applies (paths)"
    • addedOutput schema / properties / data / properties / fixes / items / properties / text / description
      Added value: +"how to make it, in our words"
    • addedOutput schema / properties / data / properties / fixes / items / properties / title / description
      Added value: +"the fix, in a line"
    • addedOutput schema / properties / data / properties / id / description
      Added value: +"the scan's id, for /api/sites/{slug}/scans/{id}"
    • addedOutput schema / properties / data / properties / items / description
      Added value: +"each finding"
    • addedOutput schema / properties / data / properties / items / items / properties / check / description
      Added value: +"the check's id"
    • addedOutput schema / properties / data / properties / items / items / properties / count / description
      Added value: +"places it was found"
    • addedOutput schema / properties / data / properties / items / items / properties / weight / description
      Added value: +"how much it matters"
    • addedOutput schema / properties / data / properties / kind / description
      Added value: +"a scan, a free re-scan of a finished one, or a re-run"
    • removedOutput schema / properties / data / properties / startedAt / anyOf
      Removed value: -[
      -  {
      -    "description": "ISO 8601, UTC (…Z)",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / startedAt / description
      Added value: +"when it started (ISO 8601, UTC); null when there's none"
    • addedOutput schema / properties / data / properties / startedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / data / properties / state / description
      Added value: +"where it is: being quoted, quoted, waiting, running, paused, finished, stopped early or failed"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds real behavioral detail beyond that: the response shape (weighted findings, 3–5 fixes as prose and as a code block, new/fixed/still-open deltas) and the non-obvious constraint that site text is never included. Rate limits, pagination and freshness/latency behavior are not mentioned.

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-loaded with the endpoint, then the purpose, then the call cue and payload — good ordering with no filler. There is mild repetition between the sentence "what it saw, its findings, the fixes and what changed since the last scan" and the later enumeration of findings, fixes and deltas, but it reinforces rather than wastes space.

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 two-parameter read tool with full schema coverage, an output schema, and complete annotations, the description covers purpose, payload and one meaningful caveat, which is sufficient. It could add scan-status or freshness context for an agent deciding whether the data is current, but nothing required for correct invocation is missing.

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% and both parameters already document their path context ("as in /api/sites", "as in /api/sites/{slug}/scans"). The description adds nothing about parameter format, id shape, or validity, which is acceptable at this coverage level — baseline 3.

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 states a concrete verb and resource — retrieve one recovery scan by slug and id — and spells out the payload (findings by weight, places, fixes, deltas since the previous scan). That clearly separates it from the scan-listing sibling, though it never names that sibling explicitly, so the differentiation is inferred from content rather than stated.

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?

"Call this for a scan's results" gives a direct usage cue, and the slug/id path pattern implies you first reach it via the scans list. It never states when NOT to use it or names an alternative tool for listing scans, so the guidance is clear but not complete.

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.

Resources