Skip to main content
Glama

Performance

onelence_get_performance
Read-onlyIdempotent

How a site performed: visitors, conversions, conversion rate, observed revenue, trend, top sources and channels. Narrow to one source, channel, campaign, landing page (entry), page, country and more with filter_dimension and filter_value, and compare with the previous period. For the steps of the site's funnel use onelence_get_funnel.

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": "onelence_get_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoWindow end, inclusive for a date. Defaults to now.
siteNoSite domain (e.g. example.com) or site id. Defaults to the workspace's newest active site.
startNoWindow start: a date (YYYY-MM-DD) or ISO 8601 date-time. Defaults to 30 days before end.
bucketNo
compareNoprevious_period adds the same-length window before, with changes.
filter_valueNo
response_formatNoconcise (default) keeps what is needed to answer and to chain the next call; detailed returns every field.
filter_dimensionNo

Output Schema

NameRequiredDescriptionDefault
noteYes
siteYes
filterYes
objectYes
seriesYes
totalsYes
windowYes
comparisonYes
top_sourcesYes
top_channelsYes
series_truncatedYes
returning_visitorsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "comparison": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "changes": {
      +              "items": {
      +                "properties": {
      +                  "change": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "change_pct": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "current": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "metric": {
      +                    "enum": [
      +                      "visitors",
      +                      "conversions",
      +                      "conversion_rate_pct"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "previous": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "metric",
      +                  "current",
      +                  "previous",
      +                  "change",
      +                  "change_pct"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "totals": {
      +              "properties": {
      +                "conversion_rate_pct": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "conversions": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "observed_revenue": {
      +                  "properties": {
      +                    "amount": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "currency": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "state": {
      +                      "enum": [
      +                        "measured",
      +                        "incomplete",
      +                        "unavailable"
      +                      ],
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "state",
      +                    "amount",
      +                    "currency"
      +                  ],
      +                  "type": "object"
      +                },
      +                "visitors": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "visitors",
      +                "conversions",
      +                "conversion_rate_pct",
      +                "observed_revenue"
      +              ],
      +              "type": "object"
      +            },
      +            "window": {
      +              "properties": {
      +                "end": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "start": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "start",
      +                "end"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "window",
      +            "totals",
      +            "changes"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "filter": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "dimension": {
      +              "enum": [
      +                "country",
      +                "region",
      +                "city",
      +                "hostname",
      +                "page",
      +                "entry",
      +                "source",
      +                "channel",
      +                "campaign",
      +                "keyword",
      +                "affiliate",
      +                "browser",
      +                "os",
      +                "device"
      +              ],
      +              "type": "string"
      +            },
      +            "value": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "dimension",
      +            "value"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "object": {
      +      "const": "overview",
      +      "type": "string"
      +    },
      +    "returning_visitors": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "repeat_rate": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "status": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "repeat_rate",
      +            "status"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "series": {
      +      "items": {
      +        "properties": {
      +          "conversions": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "date": {
      +            "type": "string"
      +          },
      +          "visitors": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "date",
      +          "visitors",
      +          "conversions"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "series_truncated": {
      +      "type": "boolean"
      +    },
      +    "site": {
      +      "properties": {
      +        "domain": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "domain"
      +      ],
      +      "type": "object"
      +    },
      +    "top_channels": {
      +      "items": {
      +        "properties": {
      +          "channel": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "conversions": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "visitors": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "visitors",
      +          "conversions"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "top_sources": {
      +      "items": {
      +        "properties": {
      +          "channel": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "conversions": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "visitors": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "visitors",
      +          "conversions"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "totals": {
      +      "properties": {
      +        "conversion_rate_pct": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "conversions": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "observed_revenue": {
      +          "properties": {
      +            "amount": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "currency": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "state": {
      +              "enum": [
      +                "measured",
      +                "incomplete",
      +                "unavailable"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "state",
      +            "amount",
      +            "currency"
      +          ],
      +          "type": "object"
      +        },
      +        "visitors": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "visitors",
      +        "conversions",
      +        "conversion_rate_pct",
      +        "observed_revenue"
      +      ],
      +      "type": "object"
      +    },
      +    "window": {
      +      "properties": {
      +        "end": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "start": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "start",
      +        "end"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "object",
      +    "note",
      +    "site",
      +    "window",
      +    "filter",
      +    "totals",
      +    "returning_visitors",
      +    "top_sources",
      +    "top_channels",
      +    "series",
      +    "series_truncated",
      +    "comparison"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered. The description adds only that previous_period compare injects the same-length prior window with changes; it says nothing about default windows or result granularity beyond the schema. Modest value is added on top of a strong annotation set.

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, both compact, with the metrics list front-loaded and the routing hint saved for the end. No repetition of schema or annotation content; every clause carries information.

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?

With an output schema present, the description need not explain return shape, and annotations cover safety. What is missing is any mention of time bucketing/granularity, which is a meaningful behavioral choice for an 8-parameter analytics tool. Otherwise it provides enough to call the tool correctly.

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 63%, and the two undocumented parameters (filter_dimension and filter_value) are exactly the ones the description explains to work together, including which dimensions can be filtered. It also clarifies compare semantics. It does not explain the bucket parameter's granularity behavior, which remains undocumented in both places.

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 names a specific resource and enumerates exactly what it returns (visitors, conversions, conversion rate, revenue, trend, top sources and channels), then explicitly contrasts it with onelence_get_funnel. An agent can distinguish it from the funnel tool without opening either schema.

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 states how to narrow results (filter_dimension plus filter_value over a named list of dimensions) and how to compare against the previous period, and it routes funnel questions to onelence_get_funnel. It does not differentiate against other analytics siblings like onelence_get_breakdown or onelence_compare_sources, which is the remaining gap.

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.