{
  "name": "QueryCut AI — BigQuery & Vertex AI FinOps Agent",
  "description": "Enterprise Google Cloud FinOps agent that audits BigQuery INFORMATION_SCHEMA metadata and Vertex AI / Gemini token telemetry, rewrites high-cost SQL queries with partition/cluster DDL, and quantifies verified monthly GCP savings with zero customer table row access.",
  "provider": {
    "organization": "G4G Apps",
    "url": "https://g4gapps.com"
  },
  "version": "1.0.0",
  "documentationUrl": "https://querycut.g4gapps.com/docs",
  "iconUrl": "https://querycut.g4gapps.com/assets/icon.svg",
  "supportedInterfaces": [
    {
      "url": "https://querycut.g4gapps.com/a2a/v1",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    }
  ],
  "capabilities": {
    "streaming": false,
    "pushNotifications": false,
    "extendedAgentCard": false
  },
  "securitySchemes": {
    "oauth2": {
      "type": "oauth2",
      "description": "OAuth 2.0 Authorization Code flow for enterprise tenant scoping and optional read-only GCP metadata auditing.",
      "flows": {
        "authorizationCode": {
          "authorizationUrl": "https://querycut.g4gapps.com/oauth/authorize",
          "tokenUrl": "https://querycut.g4gapps.com/oauth/token",
          "scopes": {
            "finops:audit": "Run read-only BigQuery and Vertex AI spend audits",
            "finops:rewrite": "Generate optimized SQL rewrites and partition/cluster DDL",
            "finops:report": "Generate executive FinOps savings briefs"
          }
        }
      }
    }
  },
  "securityRequirements": [
    {
      "schemes": {
        "oauth2": [
          "finops:audit",
          "finops:rewrite",
          "finops:report"
        ]
      }
    }
  ],
  "defaultInputModes": [
    "application/json",
    "text/plain"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/markdown"
  ],
  "skills": [
    {
      "id": "audit_bigquery_waste",
      "name": "Audit BigQuery Spend & Query Waste",
      "description": "Inspects read-only BigQuery INFORMATION_SCHEMA job metadata to rank top monthly cost drivers, full-table scans, SELECT * wide scans, and missing partition/clustering keys.",
      "tags": [
        "bigquery",
        "finops",
        "cost-optimization",
        "gcp",
        "sql"
      ],
      "examples": [
        "Audit our BigQuery spend for the last 30 days and rank the top cost-saving opportunities.",
        "Find unpartitioned full-table scans in project acme-prod-analytics."
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json",
        "text/markdown"
      ]
    },
    {
      "id": "rewrite_sql_for_savings",
      "name": "Rewrite Expensive BigQuery SQL & Generate DDL",
      "description": "Rewrites expensive BigQuery Standard SQL queries to enable partition pruning, column pruning, and materialized views, producing zero-downtime PARTITION BY / CLUSTER BY DDL and verified byte-reduction savings.",
      "tags": [
        "bigquery",
        "sql-rewrite",
        "partitioning",
        "clustering",
        "dry-run"
      ],
      "examples": [
        "Rewrite this BigQuery query to cut bytes scanned and give me the partition DDL."
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json",
        "text/markdown"
      ]
    },
    {
      "id": "audit_vertex_ai_spend",
      "name": "Audit Vertex AI & Gemini Token Spend",
      "description": "Analyzes Vertex AI and Gemini API workload telemetry to uncover Context Caching savings on repeated long prompts, Pro-to-Flash model right-sizing opportunities, and structured JSON schema retry reductions.",
      "tags": [
        "vertex-ai",
        "gemini",
        "context-caching",
        "token-finops",
        "llm-cost"
      ],
      "examples": [
        "Audit our Vertex AI Gemini token spend and find Context Caching and Flash right-sizing wins."
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json",
        "text/markdown"
      ]
    },
    {
      "id": "generate_exec_savings_report",
      "name": "Generate Executive FinOps Savings Brief",
      "description": "Produces a combined CTO/CFO Markdown and JSON savings report across BigQuery and Vertex AI with annualized ROI, payback multiples, and sprint-ready SQL diffs.",
      "tags": [
        "finops",
        "executive-report",
        "roi",
        "cfo",
        "gcp-billing"
      ],
      "examples": [
        "Generate an executive BigQuery and Vertex AI savings brief for our quarterly cloud review."
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json",
        "text/markdown"
      ]
    }
  ]
}