Skip to main content
Glama

get_insights

Read-onlyIdempotent

Get performance insights for account, campaign, ad group, or ad scope. Supports fields, filters, sort, product/country/device segments, time ranges, and cursor pagination.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNo
afterNo
limitNo
scopeYes
beforeNo
fieldsNo
filtersNo
includesNo
segmentsNo
entity_idNo
time_rangeNo
response_formatNoconcise
time_granularityNodaily
aggregation_levelNo
override_segment_group_orderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / aggregation_level
      Added value: +{
      +  "enum": [
      +    "ad_account",
      +    "campaign",
      +    "ad_group",
      +    "ad"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / includes
      Added value: +{}
    • addedInput schema / properties / override_segment_group_order
      Added value: +{}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds context about cursor pagination and supported features (segments, time ranges), but does not cover other behavioral traits such as rate limits, data freshness, or authorization requirements. With annotations, the bar is lower, and the description provides moderate added value.

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?

The description is a single sentence that immediately states the purpose and lists supported features. It is concise, front-loaded, and contains no superfluous information.

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

Completeness2/5

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

With no output schema and 15 parameters, the description is too high-level. It does not explain the response format, aggregation behavior, or how parameters interact. For a complex tool, more detail is needed to ensure proper agent usage.

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 0%, so the description must compensate. It mentions high-level parameter categories (fields, filters, sort, segments, time ranges, pagination) but does not map them to the actual schema parameter names or provide detailed semantics for each of the 15 parameters. This is insufficient for a tool with many parameters.

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 clearly states the verb 'Get' and resource 'performance insights' for specific scopes (account, campaign, ad group, ad). It distinguishes from sibling tools that retrieve single entities (e.g., get_account, get_campaign) by focusing on aggregated performance data.

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?

The description implies usage for retrieving performance insights with various parameters like fields, filters, sort, and pagination, but does not explicitly state when to use this tool versus alternatives like get_campaign or list_campaigns. It lacks when-not or alternative tool references.

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.