Skip to main content
Glama

How the site is doing

get_insights
Read-only

This week (or the last N days) against the period before: visits and the change, top pages with the contact taps on each, where visitors came from (and how many from Google), WhatsApp/call/email/directions taps (counted automatically), form entries and bookings, plus up to three concrete suggestions. Explain it to the owner in plain words and offer to make the suggested changes.

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_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
siteYesSite slug (e.g. "kopitiam-muar") or id

Output Schema

NameRequiredDescriptionDefault
periodYes
visitsYes
bookingsYes
came_fromYes
top_pagesYes
from_googleYes
suggestionsYes
form_entriesYes
google_searchNo
contact_clicksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "bookings": {
      +      "type": "number"
      +    },
      +    "came_from": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "referrer": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "views": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "referrer",
      +          "views"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "contact_clicks": {
      +      "additionalProperties": {},
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "form_entries": {
      +      "type": "number"
      +    },
      +    "from_google": {
      +      "type": "number"
      +    },
      +    "google_search": {
      +      "additionalProperties": {},
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "period": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "days": {
      +          "type": "number"
      +        },
      +        "from": {
      +          "type": "string"
      +        },
      +        "to": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "days",
      +        "from",
      +        "to"
      +      ],
      +      "type": "object"
      +    },
      +    "suggestions": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "action": {
      +            "type": "string"
      +          },
      +          "key": {
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "why": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "title"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "top_pages": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "path": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "views": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "path",
      +          "views"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "visits": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "change_percent": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "last_period_views": {
      +          "type": "number"
      +        },
      +        "views": {
      +          "type": "number"
      +        },
      +        "visitors": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "views",
      +        "visitors",
      +        "change_percent"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "period",
      +    "visits",
      +    "top_pages",
      +    "came_from",
      +    "from_google",
      +    "contact_clicks",
      +    "form_entries",
      +    "bookings",
      +    "suggestions"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description still adds real behavioral detail the annotations lack: the comparison window is the preceding period, taps are counted automatically, and suggestions are capped at three, which shapes how the agent should present results.

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?

Two sentences, front-loaded with the time scope, then an enumeration of returns, then the presentation instruction. Every clause carries information; nothing is repeated from the schema or annotations.

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?

An output schema exists, so the return payload does not need explaining, and the description correctly focuses on scope and on how to relay the results. The remaining gap is routing: with get_analytics and get_site_health as siblings, an agent has no stated basis for choosing this tool over them.

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% — 'site' is documented in the schema, while 'days' only carries a default and min/max. The phrase 'this week (or the last N days) against the period before' does clarify that the range is a comparison window, but it never explicitly ties that meaning to the 'days' parameter or states its 1–90 bounds.

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 a concrete resource set — visits, top pages, traffic sources, contact taps, form entries, bookings, and suggestions — so an agent can tell this is a site performance summary rather than a raw analytics dump. It never states a crisp verb ('retrieve'/'summarize') and never distinguishes itself from the sibling get_analytics, which is the only thing keeping it off 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 Guidelines3/5

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

Usage is implied through the framing 'this week against the period before' and the instruction to explain results to the owner in plain words and offer to make changes. There is no explicit statement of when to prefer this over get_analytics or get_site_health, and no exclusion of cases where it is the wrong tool.

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