Skip to main content
Glama

run_scan

Start an AI-visibility scan of a project now: every active tracked prompt on each of the project's engines that has a key, for the project's passes per prompt. It spends AI: checks on managed keys count against the workspace's Managed-AI allowance at each engine's check weight, then as overage, pausing at the overage cap; checks on the workspace's own keys are billed by that provider. Requires write actions and "Allow actions that spend AI"; counts toward 20 assistant-started scans, briefs and rankings refreshes per workspace per day. Without confirm:true it returns a cost preview and starts nothing. The scan runs in the background; get_scan_status follows it. When the project is already scanning, the new scan is queued and starts when that one finishes (one queued scan per project; a second call updates it); a running scan is never stopped.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNotrue starts the scan. Omit to preview the cost. With confirm:true, also pass the preview's previewToken.
clientIdNoClient id — uses the AI-Visibility project its Overview opens in the app (the newest).
projectIdNoAI-Visibility project id.
previewTokenNoWith confirm:true: the previewToken from this tool's preview (valid 15 minutes, once, for exactly the previewed arguments).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true to start the scan. Omit to preview the cost. With confirm:true, also pass the preview's previewToken."New value: +"true starts the scan. Omit to preview the cost. With confirm:true, also pass the preview's previewToken."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true and destructiveHint=false; the description goes far beyond by disclosing spend semantics (Managed-AI allowance at engine check weight, overage cap, own-key billing), a permission requirement ('Allow actions that spend AI'), a daily quota of 20 assistant-started scans/briefs/refreshes, and background execution. These are exactly the consequences an agent needs before committing to a costly mutation.

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?

Purpose and cost implications are front-loaded, and every clause (billing, quota, preview gate, queueing) carries distinct operational weight. The mid-paragraph spend sentence is dense and could be split for readability, but nothing is redundant.

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?

For a spend-incurring, background-executing mutation with no output schema, the definition covers cost model, gating, rate limits, concurrency/queue behavior, and where results surface. An agent has everything needed to decide whether to call it and with which arguments.

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%, so baseline is 3; the confirm/previewToken two-step flow is already documented in the schema itself, and the description largely restates it. It does not clarify the clientId vs. projectId distinction (which id wins, when to use which), so it adds only marginal meaning beyond the structured fields.

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 opening sentence gives a specific verb and resource ('Start an AI-visibility scan of a project'), then immediately defines scope: every active tracked prompt on each engine with a key, at the project's passes per prompt. It is clearly distinguishable from siblings like get_scan_status (which it names as the follow-up) and update_scan_settings.

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 states when the tool acts vs. previews ('Without confirm:true it returns a cost preview and starts nothing'), names the follow-up tool for progress, and spells out the already-scanning case (queued, one queued scan per project, second call updates it, running scan never stopped). That is explicit when/when-not guidance with the alternative path identified.

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