Skip to main content
Glama

analyticsadmin.accounts.runAccessReport

Generates a customized report of Google Analytics data access records for an account so administrators can audit when users read reporting data. Records cover up to two years.

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: delete, get, getDataSharingSettings, list, patch, provisionAccountTicket, searchChangeHistoryEvents.

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: +"^accounts/[^/]+$"
    • 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

A3.5/5.0
Behavior3/5

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

Adds genuinely useful context beyond structure: retention limits, admin-only access, and 360 gating. However, the injected '[HTTP POST] — creates or triggers a change; refused under --readonly safety profiles' framing is misleading for what is a read/retrieval report and may cause an agent to avoid a safe read call, and the body is truncated mid-sentence ('Google Analyti').

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

Conciseness3/5

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

Purpose and eligibility are front-loaded, which is good, but the text is a concatenation of API docs, a misapplied POST/readonly warning, and a mechanical sibling list. The truncated final sentence is dead weight that costs clarity.

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 and auth/retention constraints are covered, so an agent has most of what it needs. But the mismatch between the advertised property-level reporting and the accounts/ entity path, plus the ambiguous readonly-refusal note, leaves real doubt about correct invocation.

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% and the request body properties are fully typed, so the schema does the heavy lifting. The description enumerates body fields (dateRanges, dimensions, metrics, filters) which is marginally helpful but largely duplicative, and it never clarifies the account-vs-property semantics of the required `entity` path.

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 + resource: 'Returns a customized report of data access records', clarifying this is a data-access audit report, not a metrics report. It does not cleanly distinguish itself from the sibling analyticsadmin.properties.runAccessReport, and it confusingly says reports 'can be requested for a property' while the entity parameter is an accounts/ path.

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?

Gives real eligibility rules: Administrators-only, 2-year retention window, and the 360-only restriction on non-quota dimensions. These preconditions meaningfully gate calling it, though there is no explicit statement of when to prefer this over analyticsdata runReport or the property-level sibling.

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