Skip to main content
Glama

OpenFactory

walk_app

Autonomously walk a web dashboard and record what's there + what breaks.

Opens app_url in the tester VM's browser, then BFS-walks every interactive control it finds (clicks each in turn), deduping UI states by fingerprint (route_template + dom_signature). For each visited state it captures a screenshot, the DOM-truth interactive-element list, and any console / network errors that fire during the post-action settle window. Findings are persisted with severity (blocker/major/minor/info) and deduped by message — repeat errors collapse to one record.

Returns IMMEDIATELY with the walk_id; the actual walk runs in a background asyncio task. Poll get_app_walk(walk_id) to watch progress, or stop_app_walk(walk_id) to cancel.

M2 scope: mechanical BFS only — no AI mode, no auth flow, no checkpoints, no scenario emission (those come in M3/M4/M4.5/M2.D). The tester VM browser MUST be Chromium-class (Brave/Chromium/Chrome/Edge) — Firefox does not expose CDP at :9222 and the walker hard-fails on snapshot.

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": {
      "app_name": "<app_name>",
      "app_url": "<app_url>",
      "vm_name": "<vm_name>"
    },
    "name": "walk_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
authNoWhen provided, walker signs in before BFS so it walks the AUTHED landing page instead of the sign-in form. Shape: {login_url:str, username_var:str, password_var:str, totp_var?:str, email_otp?:{target?:str, sender?:str, subject_contains?:str}, post_login_url?:str, assert_text?:str, on_behalf_of?:str}. PASS KMS VAR NAMES, NEVER LITERAL SECRETS — the walker only knows the names; the libvirt scenario runner resolves them from the keystore per (user, app_name, var). Missing secrets fail the walk with a blocker 'auth_failed' finding so the operator can store them and retry.
modeNoExploration policy: 'mechanical' (default) = DOM-order BFS, 'ai' = LLM ranks unvisited candidates every state, 'hybrid' = AI for the first ai_seed_states state-seeds then mechanical, 'cot' = task-directed best-first search that stops at the first evidence-backed answer. AI modes require either an authenticated Claude Code CLI or ANTHROPIC_API_KEY in the MCP server's env; missing both → silent fallback to mechanical for ai/hybrid only. CoT mode errors if no model backend is available.mechanical
taskNoRequired when mode='cot'. The task the walker should answer, max 4000 characters.
ai_goalNoGoal sentence the LLM ranker sees when choosing what to click. Defaults to 'Find bugs and explore new flows in this app'. Examples: 'Test the new-project creation flow end-to-end', 'Audit the settings/billing path for permissions bugs'.
api_keyNoMCP API key
app_urlYesSeed URL to crawl. The VM's browser opens this and the walker explores from there.
vm_nameYesTester or desktop VM (of-tester-* or of-desktop-*) with a Chromium-class browser (DevTools at :9222).
app_nameYesStable app key, e.g. 'walker-canary' — groups history.
max_depthNoMax BFS depth from the seed state. Default 6.
max_statesNoMax distinct UI states to visit before stopping. Default 80.
project_idNoOptional project_id to file the walk under.
browser_authNoBrowser-session auth for an encrypted app/account scoped profile. Shape: {provider:'composio', connection_id:str}. Mutually exclusive with legacy auth.
fuzz_profileNoSafe form policy: 'canned' fills non-sensitive text/select fields, 'boundary' uses valid boundary values where available, and 'skip' does not prepare forms. Transactional submits remain blocked.canned
session_tokenNoSession token
ai_seed_statesNoHybrid mode only: AI ranks the first N state-seeds, then mechanical BFS takes over. Default 3.
allowed_originsNoCoT only: up to 10 HTTP(S) origins the task walk may navigate to. The starting origin is always included.
ai_max_decisionsNoHard cap on LLM calls per walk. Past this, walker falls back to mechanical for the rest of the walk. Default 12.
cot_branch_widthNoCoT only: number of alternative branches to queue per model decision. Default/max 3.
max_wall_secondsNoHard wall-clock cap on the whole walk. Default 600.
cot_max_decisionsNoCoT only: hard cap on model decisions. Default 20.
task_output_schemaNoOptional Draft 2020-12 JSON Schema for CoT structured_output. Remote references and schemas over 32 KB are rejected.
destructive_allowedNoWhen False (default) skips elements whose label/selector matches the destructive deny-list (delete/remove/sign out/etc.). When True, the walker clicks 'guarded' (regex-matched) elements AND runs a confirm-dialog probe — but high-stakes ALWAYS_GUARDED elements (delete account / revoke key / drop table / etc.) are STILL skipped unless explicitly named in destructive_label_allowlist.
mining_verificationNoM4.5 harness-verification mode for emitted scenarios. 'off' (default) skips harness verification (M3 behavior — every blocker/major finding becomes a scenario with confidence='low'). 'polling' creates a mining checkpoint per proposed scenario and waits up to 60s for the harness to call submit_scenario_checkpoint(checkpoint_id, verdict=…); 'pass' → confidence='high', 'fail'/'skip' → drop, 'investigate' → confidence='medium' + flaky=True, 'timeout' → confidence='low' + notes='harness timeout'. The harness reads pending checkpoints via get_pending_checkpoint(walk_id=…, wait_seconds=25). 'auto' is an alias for 'polling' in M4.5 (FastMCP Context.sample() integration is a follow-up).off
max_actions_per_stateNoMax interactive elements explored per state. Default 50.
destructive_label_allowlistNoPer-walk allowlist of element labels to treat as 'safe' even when the destructive deny-list (or ALWAYS_GUARDED) regex matches. Entries are case-insensitive literal substrings by default; prefix 're:' for a regex. Examples: ['remove from cart', 're:^clear ', 're:^reset filter']. Useful when an app uses destroy-verbs in benign contexts (e-commerce 'Remove' / search 'Reset filters' / etc.) — explicitly opt them in by exact label.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses that the call returns immediately with a walk_id while work runs in a background asyncio task, how states are deduped, how findings are persisted and deduped by message, and that missing auth secrets surface as an 'auth_failed' blocker rather than a silent failure. It also discloses hard failure conditions (Firefox lacking CDP at :9222).

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?

The purpose, mechanism, and return contract are front-loaded and each earns its place. The 'M3/M4/M4.5/M2.D' roadmap references are internal development noise that consume attention without helping an agent call the tool correctly.

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 high-complexity, 25-parameter async tool, the definition covers the essentials: what runs, when it returns, how to monitor or cancel, and environment prerequisites, with an output schema handling return shapes. The one real gap is the unreconciled contradiction between 'M2 scope: mechanical only' and the documented AI modes, which matters for parameter selection.

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 25 parameter descriptions are already exceptionally detailed, so the description only needs to add framing, which it largely doesn't — the meaningful parameter semantics live in the schema. Worse, the description's 'no AI mode' scope statement conflicts with the mode parameter's documented ai/hybrid/cot behavior, leaving the agent unsure which is authoritative.

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 first sentence names a specific verb and resource with scope: 'Autonomously walk a web dashboard and record what's there + what breaks.' It then details the mechanism (BFS over interactive controls, dedupe by route_template + dom_signature) and the deliverables (screenshots, DOM-truth element lists, console/network errors), so an agent knows exactly what it gets back.

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?

The description gives clear operational guidance: the walk is asynchronous, so 'Poll get_app_walk(walk_id)' to watch progress or 'stop_app_walk(walk_id)' to cancel, and it states prerequisites (Chromium-class browser in the tester VM, Firefox hard-fails). It doesn't distinguish when to pick this over the sibling walk_site, and the 'M2 scope: mechanical only' note sits awkwardly against the mode parameter that advertises ai/hybrid/cot.

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.