Skip to main content
Glama

analyticsadmin.properties.runAccessReport

Generates a customized report of Google Analytics data-access records for a property, helping administrators audit who read reporting data across UI, API, and integrated products.

Instructions

Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analyti [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 GoogleAnalyticsAdminV1betaRunAccessReportRequest object accepting dateRanges, dimensionFilter, dimensions, expandGroups, includeAllUsers, limit, metricFilter, metrics and 4 more fields; pass it via params or whole via body_file Siblings over the same resource: acknowledgeUserDataCollection, create, delete, get, getDataRetentionSettings, list, patch, updateDataRetentionSettings.

Input Schema

NameRequiredDescriptionDefault
queryNoExtra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe.
entityYes[URL path segment] The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for
paramsNoParameter map merged into the request; typed parameters win.
dry_runNoReturn the request that would be sent, without sending it.
body_fileNoRead the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON GoogleAnalyticsAdminV1betaRunAccessReportRequest object.
request_bodyNoRequest body of type GoogleAnalyticsAdminV1betaRunAccessReportRequest: pass it via `params` (merged into the built body) or whole via `body_file`.

Output Schema

NameRequiredDescriptionDefault
rowsNo
quotaNo
rowCountNo
metricHeadersNo
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 GoogleAnalyticsAdminV1betaRunAccessReportRequest object."
    • addedInput schema / properties / request_body
      Added value: +{
      +  "description": "Request body of type GoogleAnalyticsAdminV1betaRunAccessReportRequest: pass it via `params` (merged into the built body) or whole via `body_file`.",
      +  "properties": {
      +    "dateRanges": {
      +      "items": {
      +        "properties": {
      +          "endDate": {
      +            "type": "string"
      +          },
      +          "startDate": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "dimensionFilter": {
      +      "properties": {
      +        "accessFilter": {
      +          "properties": {
      +            "betweenFilter": {
      +              "properties": {
      +                "fromValue": {
      +                  "type": "object"
      +                },
      +                "toValue": {
      +                  "type": "object"
      +                }
      +              },
      +              "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"
      +        },
      +        "andGroup": {
      +          "properties": {
      +            "expressions": {
      +              "items": {
      +                "properties": {
      +                  "accessFilter": {
      +                    "type": "object"
      +                  },
      +                  "andGroup": {
      +                    "type": "object"
      +                  },
      +                  "notExpression": {
      +                    "type": "object"
      +                  },
      +                  "orGroup": {
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "notExpression": {
      +          "properties": {
      +            "accessFilter": {
      +              "properties": {
      +                "betweenFilter": {
      +                  "type": "object"
      +                },
      +                "fieldName": {
      +                  "type": "string"
      +                },
      +                "inListFilter": {
      +                  "type": "object"
      +                },
      +                "numericFilter": {
      +                  "type": "object"
      +                },
      +                "stringFilter": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "andGroup": {
      +              "properties": {
      +                "expressions": {
      +                  "items": {
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "notExpression": {
      +              "properties": {
      +                "accessFilter": {
      +                  "type": "object"
      +                },
      +                "andGroup": {
      +                  "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": {
      +                  "accessFilter": {
      +                    "type": "object"
      +                  },
      +                  "andGroup": {
      +                    "type": "object"
      +                  },
      +                  "notExpression": {
      +                    "type": "object"
      +                  },
      +                  "orGroup": {
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "dimensions": {
      +      "items": {
      +        "properties": {
      +          "dimensionName": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "expandGroups": {
      +      "type": "boolean"
      +    },
      +    "includeAllUsers": {
      +      "type": "boolean"
      +    },
      +    "limit": {
      +      "type": "string"
      +    },
      +    "metricFilter": {
      +      "properties": {
      +        "accessFilter": {
      +          "properties": {
      +            "betweenFilter": {
      +              "properties": {
      +                "fromValue": {
      +                  "type": "object"
      +                },
      +                "toValue": {
      +                  "type": "object"
      +                }
      +              },
      +              "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"
      +        },
      +        "andGroup": {
      +          "properties": {
      +            "expressions": {
      +              "items": {
      +                "properties": {
      +                  "accessFilter": {
      +                    "type": "object"
      +                  },
      +                  "andGroup": {
      +                    "type": "object"
      +                  },
      +                  "notExpression": {
      +                    "type": "object"
      +                  },
      +                  "orGroup": {
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "notExpression": {
      +          "properties": {
      +            "accessFilter": {
      +              "properties": {
      +                "betweenFilter": {
      +                  "type": "object"
      +                },
      +                "fieldName": {
      +                  "type": "string"
      +                },
      +                "inListFilter": {
      +                  "type": "object"
      +                },
      +                "numericFilter": {
      +                  "type": "object"
      +                },
      +                "stringFilter": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "andGroup": {
      +              "properties": {
      +                "expressions": {
      +                  "items": {
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "notExpression": {
      +              "properties": {
      +                "accessFilter": {
      +                  "type": "object"
      +                },
      +                "andGroup": {
      +                  "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": {
      +                  "accessFilter": {
      +                    "type": "object"
      +                  },
      +                  "andGroup": {
      +                    "type": "object"
      +                  },
      +                  "notExpression": {
      +                    "type": "object"
      +                  },
      +                  "orGroup": {
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "metrics": {
      +      "items": {
      +        "properties": {
      +          "metricName": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "offset": {
      +      "type": "string"
      +    },
      +    "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"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "returnEntityQuota": {
      +      "type": "boolean"
      +    },
      +    "timeZone": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / entity / description
      Previous value: -"The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for"New value: +"[URL path segment] The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for"
    • addedInput schema / properties / entity / pattern
      Added value: +"^properties/[^/]+$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "dimensionHeaders": {
      +      "items": {
      +        "properties": {
      +          "dimensionName": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "metricHeaders": {
      +      "items": {
      +        "properties": {
      +          "metricName": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "quota": {
      +      "properties": {
      +        "concurrentRequests": {
      +          "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"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It discloses admin-only access, the 2-year retention window, and the wrapper's note that the call is refused under --readonly safety profiles — useful operational context. However, the flat claim '[HTTP POST] — creates or triggers a change' mischaracterizes what is fundamentally a read/report operation and may wrongly deter an agent from using it.

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

Conciseness2/5

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

The first paragraph is well front-loaded, but it degrades into an overlong wrapper run-on with a truncated fragment ('retrieve data from Google Analyti'), an interleaved HTTP-method note, and an undifferentiated sibling dump. Multiple sentences do not earn their place.

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

Completeness3/5

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

An output schema exists so return values need no prose. The description covers auth level, 360 restrictions, retention, and request-body plumbing, which is adequate. It still omits report-shaping behavior (pagination via limit/offset, row limits from Administrator reports) and leaves the account-vs-property report choice ambiguous.

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 coverage is 100%, so the schema already documents all six top-level parameters including the typed request_body. The description adds a summary field list (dateRanges, dimensionFilter, dimensions, metrics, etc.) and the params-vs-body_file passing convention, but this largely restates the request_body definition and does not explain semantics such as the string typing of limit/offset.

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?

Opens with a specific verb and resource: 'Returns a customized report of data access records' and clarifies it covers 'each time a user reads Google Analytics reporting data.' The purpose is unambiguous, but the sibling list is presented without routing — notably it never distinguishes itself from analyticsadmin.accounts.runAccessReport, which is the real alternative an agent must choose between.

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

Usage Guidelines4/5

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

Provides concrete usage context: 'only available to Administrators,' 'retained for up to 2 years,' and non-quota dimensions 'can only be requested on Google Analytics 360 properties.' These are real gating conditions, though the description never says when to pick this over the account-level report or over analyticsdata.properties.runReport.

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