Skip to content

runbooks inventory validate-mcpΒΆ

Auto-generated from runbooks inventory validate-mcp --help on 2026-05-21. Source of truth: runbooks PyPI package v1.3.22

Usage: runbooks inventory validate-mcp [OPTIONS]

  MCP cross-validation framework for data accuracy (β‰₯99.5% target).

  πŸ”„ 4-WAYS VALIDATION WORKFLOW
  β”œβ”€β”€ Phase 1: MCP Discover
  β”‚   └── Query awslabs.core-mcp for resource counts
  β”œβ”€β”€ Phase 2: Forward Validation
  β”‚   └── Runbooks CLI β†’ MCP (verify runbooks outputs)
  β”œβ”€β”€ Phase 3: Backward Validation
  β”‚   └── MCP β†’ Runbooks CLI (verify MCP consistency)
  └── Phase 4: Ground Truth Validation
      └── Direct AWS API calls for final verification

  βœ… ACCURACY TARGETS
  β€’ Overall: β‰₯99.5% agreement across all phases
  β€’ Per-phase status: Phase 1 LIVE, Phase 2 DEFERRED, Phase 3 DEFERRED, Phase 4 LIVE
  β€’ Validation modes: MCP servers + Direct AWS APIs

  🎯 STATUS
  β€’ Framework: src/runbooks/inventory/mcp_validator.py
  β€’ Phase 1 (count): LIVE β€” uses Resource Explorer real data
  β€’ Phase 2 (cost): DEFERRED β€” MCP cost server not connected
  β€’ Phase 3 (consistency): DEFERRED β€” MCP inventory server not connected
  β€’ Phase 4 (ground truth): LIVE β€” Direct AWS API validation

  Examples:
      # Validate EC2 inventory
      runbooks inventory validate-mcp --resource-type ec2 --profile CENTRALISED_OPS_PROFILE

      # Validate Lambda with custom threshold     runbooks inventory validate-
      mcp --resource-type lambda --threshold 95.0

      # Validate VPC with larger sample     runbooks inventory validate-mcp
      --resource-type vpc --sample-size 20 --output /tmp/vpc-validation.json

  πŸ“– MCP validation ensures β‰₯99.5% accuracy across inventory discovery
  workflows

Options:
  --resource-type TEXT   AWS resource type to validate (e.g., ec2, lambda,
                         vpc)  [required]
  --profile TEXT         AWS profile for validation operations
  --output PATH          Path to save JSON validation results
  --sample-size INTEGER  Number of resources for ground truth sampling
  --threshold FLOAT      Minimum accuracy threshold (default: 99.5%)
  --help                 Show this message and exit.

ExamplesΒΆ