Skip to main content

Analytics Get Metadata

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READgoogle.analytics_get_metadata
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: google-2026.07.12.2
  • Descriptor hash: ff9c622bfc4b4498a3ef90fd93af7860b843417b63dc7293c349dda3bf7d657a

Use this read-only Google Analytics Data API tool to inspect compact dimension/metric metadata. Use include_full only for audit/dev work. It reads the configured user's Google data through per-request OAuth, does not mutate provider state, and returns a normalized bounded envelope.

Request Body

{
"jsonrpc": "2.0",
"id": "google-analytics-get-metadata-example",
"method": "tools/call",
"params": {
"name": "google.analytics_get_metadata",
"arguments": {
"property_id": "property_id_123",
"query": "query_example",
"category": "category_example",
"include_full": false,
"max_items_per_kind": 1
}
}
}

Arguments Schema

{
"type": "object",
"title": "analytics_get_metadataArguments",
"required": [
"property_id"
],
"properties": {
"query": {
"type": "string",
"title": "Query",
"default": "",
"description": "Provider query string used to filter results."
},
"category": {
"type": "string",
"title": "Category",
"default": "",
"description": "Optional capability category filter."
},
"property_id": {
"type": "string",
"title": "Property Id",
"description": "Google Analytics property ID without the properties/ prefix."
},
"include_full": {
"type": "boolean",
"title": "Include Full",
"default": false,
"description": "Set true only for audit/dev use to return full Analytics metadata."
},
"max_items_per_kind": {
"type": "integer",
"title": "Max Items Per Kind",
"default": 25,
"description": "Maximum Analytics dimensions and metrics to return in compact metadata."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or Google provider operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Bounded local navigation or Google provider result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe timing, pagination, cache, request, and truncation metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe structured error when ok is false."
}
},
"description": "Google MCP normalized operation envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "google-analytics-get-metadata-example",
"method": "tools/call",
"params": {
"name": "google.analytics_get_metadata",
"arguments": {
"property_id": "property_id_123",
"query": "query_example",
"category": "category_example",
"include_full": false,
"max_items_per_kind": 1
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool google.analytics_get_metadata executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}