Skip to main content
Glama

AI Agent Analytics

Get instrumentation connection health

get_connection_health
Read-onlyIdempotent

Return telemetry connection health for product_id, including credential state, accepted-event freshness, funnel coverage, setup evidence, and aggregate rejection reasons. Use this for instrumentation troubleshooting; do not use it for the narrow post-setup verdict, use validate_installation. days defaults to 30 and includes the current partial day plus the preceding 29 days; an unobserved business stage remains unknown, not broken instrumentation. Requires analytics:read; rejected payload contents and credentials are never returned, and the shared MCP limit is 300 calls per 60 seconds per caller before HTTP 429 with Retry-After.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoDiagnostic lookback length in whole days, 1 through 90 inclusive. Defaults to 30 when omitted.
product_idYesExact AI Agent Analytics product/property ID returned by list_products. Do not pass a product name, URL, or organization ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
healthYes
schemaYesDelegated response schema identifier.
productYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedOutput schema / properties / health / additionalProperties
      Added value: +{}
    • removedOutput schema / properties / health / description
      Removed value: -"Instrumentation connection-health diagnostics and evidence coverage."
    • addedOutput schema / properties / health / properties
      Added value: +{
      +  "credentials": {
      +    "additionalProperties": {},
      +    "description": "Credential counts only; secret values are never returned.",
      +    "properties": {
      +      "active": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "latest_created_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "revoked": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "total": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "write_credential_available": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "total",
      +      "active",
      +      "revoked",
      +      "latest_created_at",
      +      "write_credential_available"
      +    ],
      +    "type": "object"
      +  },
      +  "event_schema": {
      +    "description": "Accepted Agent Analytics ingestion event schema version.",
      +    "type": "string"
      +  },
      +  "freshness": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "last_accepted_event_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "seconds_since_last_accepted_event": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "last_accepted_event_at",
      +      "seconds_since_last_accepted_event"
      +    ],
      +    "type": "object"
      +  },
      +  "generated_at": {
      +    "description": "UTC generation timestamp.",
      +    "type": "string"
      +  },
      +  "integrity": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "absence_is_not_proof_of_missing_instrumentation": {
      +        "type": "boolean"
      +      },
      +      "coverage_model": {
      +        "type": "string"
      +      },
      +      "note": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "coverage_model",
      +      "absence_is_not_proof_of_missing_instrumentation",
      +      "note"
      +    ],
      +    "type": "object"
      +  },
      +  "observed_traffic": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "countable_external_events": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "synthetic_or_internal_events": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "unknown_external_events": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "countable_external_events",
      +      "unknown_external_events",
      +      "synthetic_or_internal_events"
      +    ],
      +    "type": "object"
      +  },
      +  "property_id": {
      +    "description": "Product/property ID.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "rejected_event_telemetry": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "available": {
      +        "type": "boolean"
      +      },
      +      "last_rejected_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "reasons": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "endpoint": {
      +              "type": "string"
      +            },
      +            "last_rejected_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "reason": {
      +              "type": "string"
      +            },
      +            "rejected_count": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "endpoint",
      +            "reason",
      +            "rejected_count",
      +            "last_rejected_at"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "rejected_events": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "available",
      +      "rejected_events",
      +      "last_rejected_at",
      +      "reasons"
      +    ],
      +    "type": "object"
      +  },
      +  "schema_version": {
      +    "description": "Connection-health schema version.",
      +    "type": "string"
      +  },
      +  "stage_coverage": {
      +    "additionalProperties": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "event_count": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "observed": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "observed",
      +        "event_count"
      +      ],
      +      "type": "object"
      +    },
      +    "description": "Per-funnel-stage observed event coverage.",
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "state": {
      +    "description": "credential_missing, awaiting_first_event, or receiving.",
      +    "type": "string"
      +  },
      +  "unobserved_stages": {
      +    "description": "Stages with zero observed events; absence is not proof of broken instrumentation.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "verification": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "customer_test_events": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "setup_event_observed": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "customer_test_events",
      +      "setup_event_observed"
      +    ],
      +    "type": "object"
      +  },
      +  "window": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "accepted_events": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "lookback_days": {
      +        "maximum": 90,
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "lookback_days",
      +      "accepted_events"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / health / required
      Added value: +[
      +  "schema_version",
      +  "property_id",
      +  "generated_at",
      +  "state",
      +  "event_schema",
      +  "window",
      +  "freshness",
      +  "credentials",
      +  "verification",
      +  "observed_traffic",
      +  "stage_coverage",
      +  "unobserved_stages",
      +  "rejected_event_telemetry",
      +  "integrity"
      +]
    • addedOutput schema / properties / health / type
      Added value: +"object"
    • changedOutput schema / properties / product / properties / id / description
      Previous value: -"Product/property ID."New value: +"Tenant-checked product/property ID."
    • changedOutput schema / properties / product / properties / time_zone / description
      Previous value: -"IANA time zone used for product-local daily interpretation."New value: +"IANA time zone used for product-local interpretation."
    • changedOutput schema / properties / schema / description
      Previous value: -"Response schema identifier."New value: +"Delegated response schema identifier."
  2. Changed3 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Lookback window in days, from 1 to 90."New value: +"Diagnostic lookback length in whole days, 1 through 90 inclusive. Defaults to 30 when omitted."
    • changedInput schema / properties / product_id / description
      Previous value: -"AI Agent Analytics product/property ID from list_products."New value: +"Exact AI Agent Analytics product/property ID returned by list_products. Do not pass a product name, URL, or organization ID."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "health": {
      +      "description": "Instrumentation connection-health diagnostics and evidence coverage."
      +    },
      +    "product": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "id": {
      +          "description": "Product/property ID.",
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Product name.",
      +          "type": "string"
      +        },
      +        "time_zone": {
      +          "description": "IANA time zone used for product-local daily interpretation.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name",
      +        "time_zone"
      +      ],
      +      "type": "object"
      +    },
      +    "schema": {
      +      "description": "Response schema identifier.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "schema",
      +    "product",
      +    "health"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The description goes well beyond the read-only/idempotent annotations by disclosing the authentication requirement (analytics:read), privacy guarantees (rejected payload contents and credentials are never returned), rate limits (300 calls per 60 seconds per caller, 429 with Retry-After), and the semantic edge case (unobserved business stage remains unknown, not broken instrumentation). None of this contradicts the annotations and all of it is actionable for the agent.

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

Conciseness5/5

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

Three dense sentences pack the core output, usage routing, defaults, edge-case semantics, auth, privacy, and rate limiting with zero filler. The most decision-relevant information (what it returns and when to use it) is front-loaded before transition details and limits.

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

Completeness5/5

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

For a read-only diagnostic tool with a moderate schema and an output schema present, this description covers everything an agent needs: what is returned, when to use it, parameter semantics, auth, privacy, and throttling. The sibling differentiation is explicit, and no important behavioral aspect appears omitted.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds value beyond the schema by explaining that days includes the current partial day plus the preceding 29 days, and links that to the 'unknown vs broken' interpretation. It does not repeat the product_id pattern or the list_products reference, which is appropriate since the schema already carries those details.

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

Purpose5/5

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

The description opens with a specific verb and resource ("Return telemetry connection health for product_id") and enumerates the exact output dimensions (credential state, accepted-event freshness, funnel coverage, setup evidence, rejection reasons). It further distinguishes itself from validate_installation, making its scope unmistakable. An agent can differentiate this from all sibling tools without inspecting schemas.

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

Usage Guidelines5/5

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

Explicitly states when to use ("Use this for instrumentation troubleshooting") and when not to ("do not use it for the narrow post-setup verdict, use validate_installation"), naming the alternative tool. This is exactly the kind of routing guidance that prevents misuse.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources