Skip to main content
Glama

Word of Agent

Which Analytics key events count as leads

get_lead_events
Read-only

The site's Google Analytics key events seen so far, each with its count over the last 28 days and whether the owner counts it as a lead (leads fill the Leads step of get_funnel). Each event has steps, the setup checklist (fires, keyEvent, lead: done, waiting or todo, with the text to give the owner and when it was checked); check_lead_event re-checks one right after the owner does the action. A lead event Analytics has not seen yet has seen: false and a note. suggested lists the usual lead event names not listed yet; when the site sends other events (read its code or tag setup), name those to the owner too. kit is set when the property has no key events: the steps to create one, to pass on or do on the site. Ask the owner which events mean a lead before setting them with set_lead_events. Free.

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": {
      "site": "<site>"
    },
    "name": "get_lead_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, non-destructive and closed-world, so safety is covered; the description adds real behavioral context beyond that, including the 28-day window, the not-yet-seen state with seen: false and a note, the kit branch when the property has no key events, and that the call is free. Much of the field inventory overlaps the output schema, which keeps it from a 5.

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?

The lead status information is front-loaded, but the body is one dense paragraph mashing return fields, state branches, suggested/kit behavior, and cross-tool instructions. Several clauses (enumerating checklist states, naming where to read tag setup) are verbose relative to what an agent needs to select and call the tool.

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

Completeness4/5

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

For a read-only single-parameter tool with an output schema, the description covers the important edge cases: events Analytics has not seen, the kit path for properties without key events, and the handoff to set_lead_events. The main omission is any characterization of the site argument or of result volume.

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?

The single parameter 'site' has 0% schema description coverage, so the description must carry it, and it only implies meaning through phrases like 'The site's Google Analytics key events' and 'when the site sends other events'. It never states what form the site identifier takes, leaving a genuine gap for a required parameter.

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?

The opening clause names a specific resource and scope: Google Analytics key events for the site, with 28-day counts and whether the owner counts each as a lead. That is enough to distinguish it from get_analytics or get_funnel, though the verb is only implied by the name rather than stated outright.

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?

It routes the agent to sibling tools in context: leads fill the Leads step of get_funnel, check_lead_event re-checks one event after the owner acts, and set_lead_events is named with an explicit prerequisite (ask the owner which events mean a lead first). It lacks an explicit statement of when not to call this instead of get_analytics, so it falls short of a 5.

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