Skip to main content
Glama

run_scan

Start an AI-visibility scan of a project now — the same scan as Run scan in the app: 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 engines that run on CrunchJunkie's managed keys count against the workspace's Managed-AI allowance (premium engines count three times), then as overage, and pause at the workspace's overage cap; checks on the workspace's own keys are billed by that provider. Needs write actions AND 'Allow actions that spend AI' switched on, and at most 20 assistant-started scans, briefs and rankings refreshes a day per workspace. Returns a cost preview until called with confirm:true — call get_usage first and show the user the preview. The scan runs in the background on CrunchJunkie's servers; follow it with get_scan_status. It never stops a running scan: if the project is already scanning, this one is queued and starts by itself when that one finishes (one queued scan per project — a second call updates it to the new settings). Only the project's automatic first scan, or a scan that has not run a single check yet, is replaced instead (its saved answers count).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoMust be true to start 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. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes far beyond the annotations (readOnly=false, openWorld=true, destructive=false), disclosing AI spend accounting, premium-engine 3x weighting, overage caps, own-key billing, the two required write/spend permissions, and a 20-per-day-per-workspace rate limit. It also describes background execution, queue-vs-replace semantics, and that a second queued call updates settings.

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 the spend warning are front-loaded, and nearly every sentence carries distinct operational information. However, it is a dense wall-of-text paragraph where the queue/replace rules could be broken out for faster scanning.

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 no-output-schema, side-effecting, cost-incurring operation, it covers permissions, cost model, rate limit, async execution, follow-up tool, and queue/replace behavior. An agent has everything needed to invoke it safely and correctly.

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%, so the schema already documents all four parameters and the baseline is 3. The description adds the surrounding workflow semantics — preview is returned until confirm:true, and get_usage should be consulted first — which gives the confirm/previewToken pair operational meaning beyond the schema text.

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+resource ('Start an AI-visibility scan of a project now') and defines the exact scope — every active tracked prompt, on each engine with a key, for the project's passes per prompt. It clearly separates itself from siblings like get_scan_status, update_scan_settings and refresh_rankings by describing what actually gets scanned.

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?

Explicitly routes the agent: call get_usage first and show the user the cost preview, follow execution with get_scan_status, and pass confirm:true plus previewToken only after previewing. It also states the queuing rule when a scan is already running, so the agent knows what happens on repeat invocation.

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