Skip to main content
Glama

CertLocal

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as CertLocal. If you published it, claim ownership there.

Record or pull monthly GA4 AI referral metrics

record_ai_referral_metrics

Record monthly GA4 AI Assistant referral sessions and conversions (chatgpt.com, perplexity.ai, claude.ai, gemini.google.com, meta.ai, copilot.microsoft.com) or automatically pull them from the GA4 Data API when GA4 credentials and ga4PropertyId are configured. Attached to get_monthly_aeo_diff. Requires an API key.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "businessId": "<businessId>",
      "periodMonth": "<periodMonth>"
    },
    "name": "record_ai_referral_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
byEngineNoBreakdown by AI source domain (e.g. perplexity.ai, chatgpt.com)
businessIdYes
conversionsNoConversions / key events from AI referrals
periodMonthYes
totalSessionsNoTotal GA4 AI Assistants sessions (omit to auto-pull when GA4 is configured)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses the API key requirement and the read-vs-write duality, but not whether recording overwrites an existing month's entry, what happens when totalSessions is supplied while GA4 is configured, or whether auto-pull failures are surfaced. These are material behaviors for a tool that writes monthly metrics.

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?

Roughly two sentences with the core action front-loaded and the engine list parenthetically tucked away. The engine enumeration is somewhat long but does carry selection-relevant information; nothing is repetitive or padded.

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?

Given six parameters, a nested byEngine object, no output schema, and no annotations, the description covers purpose and the auto-pull trigger but omits upsert/overwrite semantics and any indication of what is returned after recording. It is adequate to attempt a call but leaves behavioral gaps for a mutation tool.

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 50%, so the description must compensate partially. It explains that totalSessions can be omitted to trigger auto-pull, which adds real meaning beyond the field's description, but says nothing about byEngine's domain keys, notes, or conversions beyond restating the field label, and it references a ga4PropertyId parameter that doesn't exist in the schema.

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?

States a specific verb ('Record') and resource ('monthly GA4 AI Assistant referral sessions and conversions'), enumerates the tracked AI source domains, and names the sibling it attaches to (get_monthly_aeo_diff). It also flags the dual mode (manual record vs. auto-pull from the GA4 Data API), which an agent could not infer from the name alone.

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?

Provides one concrete usage condition — auto-pull happens when GA4 credentials and ga4PropertyId are configured — which loosely mirrors the schema's 'omit to auto-pull' note on totalSessions. However, ga4PropertyId is not an actual input parameter, so the guidance points at configuration that isn't visible in the schema, and no explicit when-not or alternative-path guidance is given.

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