Skip to main content
Glama

analyticsdata.properties.runRealtimeReport

Generates a customized realtime Google Analytics report for a property, returning recent event and usage data from the last 30–60 minutes via the API.

Instructions

Returns a customized report of realtime event data for your property. Events appear in realtime reports seconds after they have been sent to the Google Analytics. Realtime reports show events and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to 60 minutes for Google Analytics 360 properties). For a guide to constructing realtime requests & understanding responses, see Creating a Realtime Report [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON RunRealtimeReportRequest object accepting dimensionFilter, dimensions, limit, metricAggregations, metricFilter, metrics, minuteRanges, orderBys and 1 more fields; pass it via params or whole via body_file Siblings over the same resource: batchRunPivotReports, batchRunReports, checkCompatibility, getMetadata, runPivotReport, runReport.

Input Schema

NameRequiredDescriptionDefault
queryNoExtra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe.
paramsNoParameter map merged into the request; typed parameters win.
dry_runNoReturn the request that would be sent, without sending it.
propertyYes[URL path segment] A Google Analytics property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID]
body_fileNoRead the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON RunRealtimeReportRequest object.
request_bodyNoRequest body of type RunRealtimeReportRequest: pass it via `params` (merged into the built body) or whole via `body_file`.

Output Schema

NameRequiredDescriptionDefault
kindNo
rowsNo
totalsNo
maximumsNo
minimumsNo
rowCountNo
metricHeadersNo
propertyQuotaNo
dimensionHeadersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / body_file / description
      Previous value: -"Read the request body from this file ('-' for stdin) instead of building one from the parameters."New value: +"Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON RunRealtimeReportRequest object."
    • addedInput schema / properties / request_body
      Added value: +{
      +  "description": "Request body of type RunRealtimeReportRequest: pass it via `params` (merged into the built body) or whole via `body_file`.",
      +  "properties": {
      +    "dimensionFilter": {
      +      "properties": {
      +        "andGroup": {
      +          "properties": {
      +            "expressions": {
      +              "items": {
      +                "properties": {
      +                  "andGroup": {
      +                    "type": "object"
      +                  },
      +                  "filter": {
      +                    "type": "object"
      +                  },
      +                  "notExpression": {
      +                    "type": "object"
      +                  },
      +                  "orGroup": {
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "filter": {
      +          "properties": {
      +            "betweenFilter": {
      +              "properties": {
      +                "fromValue": {
      +                  "type": "object"
      +                },
      +                "toValue": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "emptyFilter": {
      +              "type": "object"
      +            },
      +            "fieldName": {
      +              "type": "string"
      +            },
      +            "inListFilter": {
      +              "properties": {
      +                "caseSensitive": {
      +                  "type": "boolean"
      +                },
      +                "values": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "numericFilter": {
      +              "properties": {
      +                "operation": {
      +                  "enum": [
      +                    "OPERATION_UNSPECIFIED",
      +                    "EQUAL",
      +                    "LESS_THAN",
      +                    "LESS_THAN_OR_EQUAL",
      +                    "GREATER_THAN",
      +                    "GREATER_THAN_OR_EQUAL"
      +                  ],
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "stringFilter": {
      +              "properties": {
      +                "caseSensitive": {
      +                  "type": "boolean"
      +                },
      +                "matchType": {
      +                  "enum": [
      +                    "MATCH_TYPE_UNSPECIFIED",
      +                    "EXACT",
      +                    "BEGINS_WITH",
      +                    "ENDS_WITH",
      +                    "CONTAINS",
      +                    "FULL_REGEXP",
      +                    "PARTIAL_REGEXP"
      +                  ],
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "notExpression": {
      +          "properties": {
      +            "andGroup": {
      +              "properties": {
      +                "expressions": {
      +                  "items": {
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "filter": {
      +              "properties": {
      +                "betweenFilter": {
      +                  "type": "object"
      +                },
      +                "emptyFilter": {
      +                  "type": "object"
      +                },
      +                "fieldName": {
      +                  "type": "string"
      +                },
      +                "inListFilter": {
      +                  "type": "object"
      +                },
      +                "numericFilter": {
      +                  "type": "object"
      +                },
      +                "stringFilter": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "notExpression": {
      +              "properties": {
      +                "andGroup": {
      +                  "type": "object"
      +                },
      +                "filter": {
      +                  "type": "object"
      +                },
      +                "notExpression": {
      +                  "type": "object"
      +                },
      +                "orGroup": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "orGroup": {
      +              "properties": {
      +                "expressions": {
      +                  "items": {
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "orGroup": {
      +          "properties": {
      +            "expressions": {
      +              "items": {
      +                "properties": {
      +                  "andGroup": {
      +                    "type": "object"
      +                  },
      +                  "filter": {
      +                    "type": "object"
      +                  },
      +                  "notExpression": {
      +                    "type": "object"
      +                  },
      +                  "orGroup": {
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "dimensions": {
      +      "items": {
      +        "properties": {
      +          "dimensionExpression": {
      +            "properties": {
      +              "concatenate": {
      +                "properties": {
      +                  "delimiter": {
      +                    "type": "string"
      +                  },
      +                  "dimensionNames": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "lowerCase": {
      +                "properties": {
      +                  "dimensionName": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "upperCase": {
      +                "properties": {
      +                  "dimensionName": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "limit": {
      +      "type": "string"
      +    },
      +    "metricAggregations": {
      +      "items": {
      +        "enum": [
      +          "METRIC_AGGREGATION_UNSPECIFIED",
      +          "TOTAL",
      +          "MINIMUM",
      +          "MAXIMUM",
      +          "COUNT"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "metricFilter": {
      +      "properties": {
      +        "andGroup": {
      +          "properties": {
      +            "expressions": {
      +              "items": {
      +                "properties": {
      +                  "andGroup": {
      +                    "type": "object"
      +                  },
      +                  "filter": {
      +                    "type": "object"
      +                  },
      +                  "notExpression": {
      +                    "type": "object"
      +                  },
      +                  "orGroup": {
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "filter": {
      +          "properties": {
      +            "betweenFilter": {
      +              "properties": {
      +                "fromValue": {
      +                  "type": "object"
      +                },
      +                "toValue": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "emptyFilter": {
      +              "type": "object"
      +            },
      +            "fieldName": {
      +              "type": "string"
      +            },
      +            "inListFilter": {
      +              "properties": {
      +                "caseSensitive": {
      +                  "type": "boolean"
      +                },
      +                "values": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "numericFilter": {
      +              "properties": {
      +                "operation": {
      +                  "enum": [
      +                    "OPERATION_UNSPECIFIED",
      +                    "EQUAL",
      +                    "LESS_THAN",
      +                    "LESS_THAN_OR_EQUAL",
      +                    "GREATER_THAN",
      +                    "GREATER_THAN_OR_EQUAL"
      +                  ],
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "stringFilter": {
      +              "properties": {
      +                "caseSensitive": {
      +                  "type": "boolean"
      +                },
      +                "matchType": {
      +                  "enum": [
      +                    "MATCH_TYPE_UNSPECIFIED",
      +                    "EXACT",
      +                    "BEGINS_WITH",
      +                    "ENDS_WITH",
      +                    "CONTAINS",
      +                    "FULL_REGEXP",
      +                    "PARTIAL_REGEXP"
      +                  ],
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "notExpression": {
      +          "properties": {
      +            "andGroup": {
      +              "properties": {
      +                "expressions": {
      +                  "items": {
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "filter": {
      +              "properties": {
      +                "betweenFilter": {
      +                  "type": "object"
      +                },
      +                "emptyFilter": {
      +                  "type": "object"
      +                },
      +                "fieldName": {
      +                  "type": "string"
      +                },
      +                "inListFilter": {
      +                  "type": "object"
      +                },
      +                "numericFilter": {
      +                  "type": "object"
      +                },
      +                "stringFilter": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "notExpression": {
      +              "properties": {
      +                "andGroup": {
      +                  "type": "object"
      +                },
      +                "filter": {
      +                  "type": "object"
      +                },
      +                "notExpression": {
      +                  "type": "object"
      +                },
      +                "orGroup": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "orGroup": {
      +              "properties": {
      +                "expressions": {
      +                  "items": {
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "orGroup": {
      +          "properties": {
      +            "expressions": {
      +              "items": {
      +                "properties": {
      +                  "andGroup": {
      +                    "type": "object"
      +                  },
      +                  "filter": {
      +                    "type": "object"
      +                  },
      +                  "notExpression": {
      +                    "type": "object"
      +                  },
      +                  "orGroup": {
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "metrics": {
      +      "items": {
      +        "properties": {
      +          "expression": {
      +            "type": "string"
      +          },
      +          "invisible": {
      +            "type": "boolean"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "minuteRanges": {
      +      "items": {
      +        "properties": {
      +          "endMinutesAgo": {
      +            "type": "integer"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "startMinutesAgo": {
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "orderBys": {
      +      "items": {
      +        "properties": {
      +          "desc": {
      +            "type": "boolean"
      +          },
      +          "dimension": {
      +            "properties": {
      +              "dimensionName": {
      +                "type": "string"
      +              },
      +              "orderType": {
      +                "enum": [
      +                  "ORDER_TYPE_UNSPECIFIED",
      +                  "ALPHANUMERIC",
      +                  "CASE_INSENSITIVE_ALPHANUMERIC",
      +                  "NUMERIC"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "metric": {
      +            "properties": {
      +              "metricName": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "pivot": {
      +            "properties": {
      +              "metricName": {
      +                "type": "string"
      +              },
      +              "pivotSelections": {
      +                "items": {
      +                  "properties": {
      +                    "dimensionName": {
      +                      "type": "string"
      +                    },
      +                    "dimensionValue": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "returnPropertyQuota": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / property / description
      Previous value: -"A Google Analytics property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID]"New value: +"[URL path segment] A Google Analytics property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID]"
    • addedInput schema / properties / property / pattern
      Added value: +"^properties/[^/]+$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "dimensionHeaders": {
      +      "items": {
      +        "properties": {
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "kind": {
      +      "type": "string"
      +    },
      +    "maximums": {
      +      "items": {
      +        "properties": {
      +          "dimensionValues": {
      +            "items": {
      +              "properties": {
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "metricValues": {
      +            "items": {
      +              "properties": {
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "metricHeaders": {
      +      "items": {
      +        "properties": {
      +          "name": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "enum": [
      +              "METRIC_TYPE_UNSPECIFIED",
      +              "TYPE_INTEGER",
      +              "TYPE_FLOAT",
      +              "TYPE_SECONDS",
      +              "TYPE_MILLISECONDS",
      +              "TYPE_MINUTES",
      +              "TYPE_HOURS",
      +              "TYPE_STANDARD",
      +              "TYPE_CURRENCY",
      +              "TYPE_FEET",
      +              "TYPE_MILES",
      +              "TYPE_METERS",
      +              "TYPE_KILOMETERS"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "minimums": {
      +      "items": {
      +        "properties": {
      +          "dimensionValues": {
      +            "items": {
      +              "properties": {
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "metricValues": {
      +            "items": {
      +              "properties": {
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "propertyQuota": {
      +      "properties": {
      +        "concurrentRequests": {
      +          "properties": {
      +            "consumed": {
      +              "type": "integer"
      +            },
      +            "remaining": {
      +              "type": "integer"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "potentiallyThresholdedRequestsPerHour": {
      +          "properties": {
      +            "consumed": {
      +              "type": "integer"
      +            },
      +            "remaining": {
      +              "type": "integer"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "serverErrorsPerProjectPerHour": {
      +          "properties": {
      +            "consumed": {
      +              "type": "integer"
      +            },
      +            "remaining": {
      +              "type": "integer"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "tokensPerDay": {
      +          "properties": {
      +            "consumed": {
      +              "type": "integer"
      +            },
      +            "remaining": {
      +              "type": "integer"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "tokensPerHour": {
      +          "properties": {
      +            "consumed": {
      +              "type": "integer"
      +            },
      +            "remaining": {
      +              "type": "integer"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "tokensPerProjectPerHour": {
      +          "properties": {
      +            "consumed": {
      +              "type": "integer"
      +            },
      +            "remaining": {
      +              "type": "integer"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "rowCount": {
      +      "type": "integer"
      +    },
      +    "rows": {
      +      "items": {
      +        "properties": {
      +          "dimensionValues": {
      +            "items": {
      +              "properties": {
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "metricValues": {
      +            "items": {
      +              "properties": {
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "totals": {
      +      "items": {
      +        "properties": {
      +          "dimensionValues": {
      +            "items": {
      +              "properties": {
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "metricValues": {
      +            "items": {
      +              "properties": {
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does substantially well: it discloses the realtime lag ('seconds after'), the 30/60-minute retention bounds, the HTTP POST/readonly-profile refusal, and that the response is a JSON API resource. It omits quota/rate-limit behavior and auth requirements (the schema's returnPropertyQuota hints quotas exist), so it falls short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first sentence and each following block (time window, guide link, transport/safety, body shape, siblings) is a discrete useful fact. It is dense but not padded, though 'and 1 more fields' and the sibling roll-call add mild noise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a deeply nested request-body tool with an output schema present, the description covers scope, time bounds, mutation-safety caveat, and both input channels, which is enough to call it correctly. Remaining gaps (quota behavior, auth scopes) are minor given the output schema handles returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description enumerates the RunRealtimeReportRequest fields and the params-vs-body_file input channel, but that largely restates what the schema's own descriptions already say; it adds no semantic detail on how fields interact (e.g. minuteRanges vs. minute granularity).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource ('Returns a customized report of realtime event data for your property') and the 30/60-minute window pins down the scope precisely. It lists sibling tools but does not say what they do differently (e.g. runReport for historical ranges), so the differentiation is only partial.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The time-window semantics imply when this tool is the right choice (near-real-time monitoring rather than historical analysis), but that is never stated explicitly and no 'use runReport instead when...' rule is given despite six siblings being named. The --readonly safety-profile note is a constraint, not usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools