Skip to main content
Glama

One site's API recovery scans, newest first: state, how each ended, and findings by weight

sites_by_slug_scans
Read-onlyIdempotent

Wraps GET /api/sites/{slug}/scans. One site's API recovery scans, newest first: state, how each ended, and findings by weight. Call this to see whether a site has been scanned for dead ends (API errors that don't say how to recover, lists without paging, pages nothing links to) and how the last scan came out. Scans are started from the dashboard by an admin or owner.

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>"
    },
    "name": "sites_by_slug_scans"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYessite slug, as in /api/sites
limitNopage size, clamped to 1–100
offsetNorows to skip, at most 1000

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedOutput schema / properties / data / items / 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 / items / properties / findings / description
      Added value: +"findings by weight; null before the report"
    • removedOutput schema / properties / data / items / properties / finishedAt / anyOf
      Removed value: -[
      -  {
      -    "description": "ISO 8601, UTC (…Z)",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / items / properties / finishedAt / description
      Added value: +"when it finished (ISO 8601, UTC); null when there's none"
    • addedOutput schema / properties / data / items / properties / finishedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / data / items / properties / id / description
      Added value: +"the scan's id, for /api/sites/{slug}/scans/{id}"
    • addedOutput schema / properties / data / items / properties / kind / description
      Added value: +"a scan, a free re-scan of a finished one, or a re-run"
    • removedOutput schema / properties / data / items / properties / startedAt / anyOf
      Removed value: -[
      -  {
      -    "description": "ISO 8601, UTC (…Z)",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / items / properties / startedAt / description
      Added value: +"when it started (ISO 8601, UTC); null when there's none"
    • addedOutput schema / properties / data / items / properties / startedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / data / items / properties / state / description
      Added value: +"where it is: being quoted, quoted, waiting, running, paused, finished, stopped early or failed"
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real value by defining what a 'dead end' is (undocumented API errors, unpaged lists, orphaned pages) and disclosing that scan creation happens elsewhere in the dashboard, but it says nothing about result size, truncation, or what an empty list means. Useful additions on top of the annotations, without being rich.

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?

Three sentences, front-loaded with the endpoint and the core scoping, then usage, then the provenance note. The endpoint line and the title restate the same content, which is mild redundancy, but nothing is padded and each sentence carries information an agent would use.

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 an output schema present, the description does not need to explain return shape, and with rich annotations it need not re-argue safety. It still covers resource, scope, ordering, and where scans originate, so an agent has everything required to call it correctly against a three-parameter read 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 100% and the schema already documents slug, limit (clamped 1-100), and offset (at most 1000). The description contributes no additional meaning about any parameter — not even that ordering is fixed, which is stated globally rather than as a parameter constraint. The 3 baseline fits because the schema carries the load.

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 states a specific verb and resource — listing one site's API recovery scans — with scope (single site), ordering (newest first), and returned fields (state, how each ended, findings by weight). That field list and the bare resource path are enough to separate it from the by-id sibling that returns a single scan.

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 to see whether a site has been scanned for dead ends ... and how the last scan came out" gives an explicit trigger, and the closing note that scans are started from the dashboard by an admin or owner implicitly steers the agent away from expecting a create/start capability here. It stops short of naming an alternative, so it is clear context but not full when/when-not routing.

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