Documentation · A2A v1.0 & GCP Integration

Technical Documentation

Everything enterprise platform engineers need to integrate QueryCut AI with Gemini Enterprise, BigQuery, and Vertex AI.

1. A2A v1.0 Protocol & Discovery

ResourceEndpoint
Agent Card JSONhttps://querycut.g4gapps.com/.well-known/agent.json
JSON-RPC 2.0 Interfacehttps://querycut.g4gapps.com/a2a/v1
OAuth 2.0 Server Metadata (RFC 8414)https://querycut.g4gapps.com/.well-known/oauth-authorization-server
Dynamic Client Registration (RFC 7591)POST https://querycut.g4gapps.com/oauth/register
curl -X POST https://querycut.g4gapps.com/a2a/v1 \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "audit-1",
    "method": "message/send",
    "params": {
      "skillId": "audit_bigquery_waste",
      "message": {
        "role": "user",
        "parts": [{ "type": "text", "text": "Audit BigQuery spend for the last 30 days" }]
      }
    }
  }'

2. Least-Privilege Read-Only IAM Role

Save as iam-readonly-role.yaml and apply to your GCP project. Notice bigquery.tables.getData is intentionally omitted.

title: "QueryCut FinOps Read-Only Metadata Auditor"
description: "Metadata-only FinOps role. Explicitly omits bigquery.tables.getData."
stage: "GA"
includedPermissions:
  - bigquery.jobs.create
  - bigquery.jobs.listAll
  - bigquery.tables.get
  - bigquery.tables.list
  - bigquery.datasets.get
  - logging.logEntries.list
  - monitoring.timeSeries.list

3. Supported A2A Skills

audit_bigquery_waste

Inspects INFORMATION_SCHEMA.JOBS to rank top 30-day spend offenders, full-table scans, and materialized view candidates.

rewrite_sql_for_savings

Rewrites SQL into read-only partition/column-pruned queries with BigQuery dryRun byte verification and DDL.

audit_vertex_ai_spend

Detects Vertex AI / Gemini Context Caching gaps (~75% off static prefixes) and Pro-to-Flash right-sizing wins.

generate_exec_savings_report

Combines BigQuery and Vertex AI findings into an executive Markdown & JSON savings brief.