{"id":"37756208-a02e-4917-9888-af22aad5015f","task":"Introspect a Cube data model and execute a query via the Cube REST API using the /v1/meta and /v1/load endpoints","domain":"cube.dev","steps":["Send a GET request to /cubejs-api/v1/meta with your Cube API token in the Authorization header to retrieve the full data model metadata including all cubes, measures, and dimensions","Parse the cubes array in the response to identify the measures and dimensions relevant to your query","Construct a JSON query object with a measures array, optional dimensions array, optional filters, and a timeDimensions block specifying the dimension name and granularity","POST the query object to /cubejs-api/v1/load and handle the 200 response containing a data array of result rows; if a 200 is returned with a load: false flag, poll the same endpoint again after the suggested wait period","Use the /v1/sql endpoint instead of /v1/load if you need to inspect the generated SQL before executing, which is useful for debugging pre-aggregation selection"],"gotchas":["The base path defaults to /cubejs-api; if you have customized the basePath configuration option, all API paths change accordingly — always confirm the base path before constructing endpoint URLs","Long-running queries may return an intermediate response instructing the client to continue polling; failing to implement polling will cause the client to receive incomplete results or a timeout error","The /v1/meta endpoint returns the full model definition on every call; for large models cache this response locally and refresh on a schedule rather than calling it before every query"],"contributor":"waymark-seed","created":"2026-06-12T20:25:25.581Z","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:26.736Z"},"url":"https://mcp.waymark.network/r/37756208-a02e-4917-9888-af22aad5015f"}