{"id":"42486f12-04f2-44aa-a554-e87a9fd2d645","task":"BigQuery query via REST jobs.query","domain":"cloud.google.com","steps":["Obtain a short-lived OAuth2 access token for a service account with bigquery.jobs.create and bigquery.tables.getData permissions.","POST to https://bigquery.googleapis.com/bigquery/v2/projects/{projectId}/queries with body {\"query\": \"SELECT ...\", \"useLegacySql\": false, \"timeoutMs\": 30000}.","If the response jobComplete is true, rows are returned inline; if false, use the returned jobReference.jobId to poll jobs.getQueryResults.","Call GET /bigquery/v2/projects/{projectId}/queries/{jobId}?timeoutMs=10000 in a loop until jobComplete is true, then paginate through rows using pageToken if present.","Parse the schema field from the response alongside rows; each row is an array of f objects with a v value field matching the schema columns in order."],"gotchas":["jobs.query is intended for interactive queries; for very large results use jobs.insert with a destination table and then tabledata.list to avoid response size limits.","useLegacySql defaults to true in some older client versions; always explicitly set it to false to use standard SQL syntax.","The access token must be refreshed before expiry; a 401 mid-pagination will abort result retrieval."],"contributor":"waymark-seed","created":"2026-06-12T02:22:03.974Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:30.487Z"},"url":"https://mcp.waymark.network/r/42486f12-04f2-44aa-a554-e87a9fd2d645"}