Skip to main content
Glama
GoMobSec MCP server

GoMobSec MCP server

Wait for a scan

wait_for_scan
Read-only

Waits for an Android or iOS security scan to finish or reach its timeout, then reports status and findings count; call again if the scan is still running.

Instructions

Wait until a scan finishes (or the timeout passes, 1-60 minutes), reporting progress, then return its status and findings count. Scans can take longer than one wait; call it again if the scan is still running.

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": {
      "scan_id": "<scan_id>"
    },
    "name": "wait_for_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
scan_idYes
timeout_minutesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • changedInput schema / properties / timeout_minutes / default
      Previous value: -20New value: +60
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: it blocks, has a 1-60 minute timeout window, reports progress, and may need to be called repeatedly for long scans. It does not say what happens to partial results or whether the wait is server-side or polling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly written sentences. The core behavior and its key caveat (repeat calls) are both front-loaded with no filler.

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?

An output schema exists, so return details need not be described, and the description still names the two returned values. Given the blocking/repeat semantics, the description covers everything an agent needs to invoke it correctly, short of distinguishing it from get_scan.

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 description coverage is 0%, so the description compensates usefully by stating the 1-60 minute range for timeout_minutes, which the schema only shows as a default of 60 with no min/max. scan_id is self-evident and needs no elaboration.

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?

States a specific verb ('wait until a scan finishes') and resource ('scan'), plus what it returns (status and findings count). It implicitly separates itself from the immediate-return sibling get_scan, though it never names that sibling explicitly.

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?

Gives clear when-to-use context ('wait until a scan finishes') and an important repeat pattern: 'call it again if the scan is still running.' It does not explicitly contrast with polling via get_scan, which is the main alternative an agent has.

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