Skip to main content
Glama

Get insights

get_insights
Read-onlyIdempotent

How the account's sites are doing: page views and visitors from people, AI assistants and AI crawlers (by name) and other bots counted apart, and top sites, referrers, and countries. Hobby and Team plans.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
slugNoOne site: its slug or link.
workspaceIdNo

Output Schema

NameRequiredDescriptionDefault
toYes
botsNo
daysYes
fromYes
aiAgentsNo
topSitesNo
visitorsYes
pageViewsYes
topAgentsNo
topCountriesNo
topReferrersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / slug / minLength
      Removed value: -1
    • removedInput schema / properties / workspaceId / minimum
      Removed value: -1
    • removedOutput schema / properties / aiAgents / properties
      Removed value: -{
      -  "pageViews": {
      -    "type": "integer"
      -  },
      -  "visitors": {
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / bots / properties
      Removed value: -{
      -  "pageViews": {
      -    "type": "integer"
      -  },
      -  "visitors": {
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / slug
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / topAgents / items
      Removed value: -{
      -  "properties": {
      -    "name": {
      -      "type": "string"
      -    },
      -    "pageViews": {
      -      "type": "integer"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / topCountries / items
      Removed value: -{
      -  "properties": {
      -    "country": {
      -      "type": "string"
      -    },
      -    "pageViews": {
      -      "type": "integer"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / topReferrers / items
      Removed value: -{
      -  "properties": {
      -    "pageViews": {
      -      "type": "integer"
      -    },
      -    "referrer": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / topSites / items
      Removed value: -{
      -  "properties": {
      -    "pageViews": {
      -      "type": "integer"
      -    },
      -    "slug": {
      -      "type": "string"
      -    },
      -    "visitors": {
      -      "type": "integer"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / workspaceId
      Removed value: -{
      -  "type": "string"
      -}
  2. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and closed-world scope, so the safety profile is covered. The description adds real behavioral context by disclosing the visitor taxonomy (humans versus AI assistants, named crawlers, and other bots counted separately) and the plan gate. It still says nothing about what happens when the slug resolves to a site outside the plan or how the data is scoped by workspace, which keeps it at a 3.

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?

A single front-loaded sentence delivers the metric inventory first and the plan constraint last, with no filler. It is a fragment rather than a sentence, but every clause carries content; the only mild inefficiency is that the awkward 'counted apart' phrasing takes a re-read.

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, so the description is not obligated to restate return values, and its metric breakdown is a bonus. However, with three parameters, zero required, and only a third of them documented in the schema, the unexplained workspaceId leaves a genuine gap for a multi-site analytics call.

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

Parameters2/5

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

Schema description coverage is only 33%: only slug carries a schema description, while workspaceId is entirely undocumented and days is conveyed purely by its enum plus default. The description contributes no parameter meaning at all — no indication of what workspaceId scopes or how days interacts with the reported windows — so it fails to compensate for the coverage gap.

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 description names the resource (account-level site analytics) and enumerates the concrete contents: page views, visitors broken out by people / AI assistants / named AI crawlers / other bots, plus top sites, referrers, and countries. That is specific enough to distinguish it from a link-level stats tool, but it never explicitly contrasts itself with the sibling get_link_stats, so it falls short of a 5.

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

Usage Guidelines2/5

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

The only constraint stated is 'Hobby and Team plans', which is a plan-eligibility note rather than guidance on when to choose this over get_link_stats or get_profile. There is no when-to-use, when-not-to-use, or alternative routing, so an agent must infer the choice from the scope wording alone.

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