# generate_test_case

Generate automated test cases for web pages

Agent View of the PolicyLayer registry record for `generate_test_case`. HTML page: https://policylayer.com/tools/0x-hewm-percepta-mcp/generate-test-case

## Facts

- Tool: `generate_test_case`
- Server: Percepta MCP Server (`0x-hewm/percepta-mcp`) — https://policylayer.com/tools/0x-hewm-percepta-mcp.md
- Homepage: https://github.com/0x-hewm/percepta-mcp
- Risk category: Execute (High risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

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

## Why generate_test_case is rated High

Generating test cases for web pages involves creating executable code/scripts that will drive browser automation. While the primary action is generating (Write), test case generation in the context of a browser automation server (with tools like browser_click, browser_navigate, browser_fill) strongly implies the generated artifacts are executable automation scripts.

From the tool's own definition: "'Generate automated test cases for web pages' — implies code generation and potentially execution of browser automation scripts"

## Use case

AI agents invoke generate_test_case to trigger actions in Percepta MCP Server. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Percepta MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "generate_test_case": {
      "limits": [
        {
          "counter": "generate_test_case_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Percepta MCP Server (21)

- `ai_analyze` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/ai-analyze.md
- `ai_chat` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/ai-chat.md
- `ai_generate` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/ai-generate.md
- `browser_click` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/browser-click.md
- `browser_fill` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/browser-fill.md
- `browser_navigate` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/browser-navigate.md
- `browser_wait_for_element` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/browser-wait-for-element.md
- `execute_test_case` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/execute-test-case.md
- `generate_and_execute_test` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/generate-and-execute-test.md
- `monitor_and_analyze_page` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/monitor-and-analyze-page.md
- `start_devtools_monitoring` — Execute — https://policylayer.com/tools/0x-hewm-percepta-mcp/start-devtools-monitoring.md
- `analyze_devtools_anomalies` — Read — https://policylayer.com/tools/0x-hewm-percepta-mcp/analyze-devtools-anomalies.md
- `analyze_image` — Read — https://policylayer.com/tools/0x-hewm-percepta-mcp/analyze-image.md
- `browser_extract_text` — Read — https://policylayer.com/tools/0x-hewm-percepta-mcp/browser-extract-text.md
- `browser_screenshot` — Read — https://policylayer.com/tools/0x-hewm-percepta-mcp/browser-screenshot.md
- `collect_devtools_data` — Read — https://policylayer.com/tools/0x-hewm-percepta-mcp/collect-devtools-data.md
- `compare_images` — Read — https://policylayer.com/tools/0x-hewm-percepta-mcp/compare-images.md
- `extract_structured_data` — Read — https://policylayer.com/tools/0x-hewm-percepta-mcp/extract-structured-data.md
- `extract_text_from_image` — Read — https://policylayer.com/tools/0x-hewm-percepta-mcp/extract-text-from-image.md
- `scrape_website` — Read — https://policylayer.com/tools/0x-hewm-percepta-mcp/scrape-website.md
- `generate_devtools_report` — Write — https://policylayer.com/tools/0x-hewm-percepta-mcp/generate-devtools-report.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=0x-hewm-percepta-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/0x-hewm-percepta-mcp
