Skip to main content
Glama

get_publication_stats

Read-only

Reads publication dashboard and summary-v2 metrics for a trailing 1–365 day range (default 30) to review analytics; no writes are performed and unavailable groups are reported as unavailable.

Instructions

Read dashboard summary and summary-v2 for a trailing range of 1–365 days (default 30). Two authenticated reads, no writes. Each metric states its unit, window, source and missing state. Summary windows beyond named Last30Days fields are undocumented; summary values are not reconciled with summary-v2. A failed group is unavailable, never zero. ARR currency is not reported. Both groups unavailable with HTTP 403/404 means analytics access is unavailable.

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

Input Schema

NameRequiredDescriptionDefault
range_daysNo

Output Schema

NameRequiredDescriptionDefault
rangeYes
summaryYes
range_daysYes
publicationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.4.0
    • changedOutput schema / properties / range / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/summary/anyOf/0"
      -  },
      -  {
      -    "$ref": "#/properties/summary/anyOf/1"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "captured_at": {
      +        "type": "string"
      +      },
      +      "is_bestseller": {
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "metrics": {
      +        "additionalProperties": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "captured_at": {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +              "type": "string"
      +            },
      +            "currency": {
      +              "maxLength": 32,
      +              "type": "string"
      +            },
      +            "source": {
      +              "maxLength": 80,
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "reported",
      +                "absent",
      +                "null"
      +              ],
      +              "type": "string"
      +            },
      +            "unit": {
      +              "enum": [
      +                "count",
      +                "percent_0_100",
      +                "currency_amount",
      +                "views"
      +              ],
      +              "type": "string"
      +            },
      +            "value": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "window": {
      +              "maxLength": 120,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "value",
      +            "status",
      +            "unit",
      +            "window",
      +            "source",
      +            "captured_at"
      +          ],
      +          "type": "object"
      +        },
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "available",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "source",
      +      "captured_at",
      +      "metrics"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "reason": {
      +        "enum": [
      +          "http_401",
      +          "http_403",
      +          "http_404",
      +          "http_429",
      +          "http_5xx",
      +          "http_other",
      +          "malformed",
      +          "timeout",
      +          "response_too_large",
      +          "redirect_rejected",
      +          "unexpected_html"
      +        ],
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "unavailable",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "reason"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / summary / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "captured_at": {
      -        "type": "string"
      -      },
      -      "is_bestseller": {
      -        "type": [
      -          "boolean",
      -          "null"
      -        ]
      -      },
      -      "metrics": {
      -        "additionalProperties": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "captured_at": {
      -              "format": "date-time",
      -              "type": "string"
      -            },
      -            "currency": {
      -              "maxLength": 32,
      -              "type": "string"
      -            },
      -            "source": {
      -              "maxLength": 80,
      -              "type": "string"
      -            },
      -            "status": {
      -              "enum": [
      -                "reported",
      -                "absent",
      -                "null"
      -              ],
      -              "type": "string"
      -            },
      -            "unit": {
      -              "enum": [
      -                "count",
      -                "percent_0_100",
      -                "currency_amount",
      -                "views"
      -              ],
      -              "type": "string"
      -            },
      -            "value": {
      -              "anyOf": [
      -                {
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "window": {
      -              "maxLength": 120,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "value",
      -            "status",
      -            "unit",
      -            "window",
      -            "source",
      -            "captured_at"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "object"
      -      },
      -      "source": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "const": "available",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "source",
      -      "captured_at",
      -      "metrics"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "reason": {
      -        "enum": [
      -          "http_401",
      -          "http_403",
      -          "http_404",
      -          "http_429",
      -          "http_5xx",
      -          "http_other",
      -          "malformed",
      -          "timeout",
      -          "response_too_large",
      -          "redirect_rejected",
      -          "unexpected_html"
      -        ],
      -        "type": "string"
      -      },
      -      "status": {
      -        "const": "unavailable",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "reason"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "captured_at": {
      +        "type": "string"
      +      },
      +      "is_bestseller": {
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "metrics": {
      +        "additionalProperties": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "captured_at": {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +              "type": "string"
      +            },
      +            "currency": {
      +              "maxLength": 32,
      +              "type": "string"
      +            },
      +            "source": {
      +              "maxLength": 80,
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "reported",
      +                "absent",
      +                "null"
      +              ],
      +              "type": "string"
      +            },
      +            "unit": {
      +              "enum": [
      +                "count",
      +                "percent_0_100",
      +                "currency_amount",
      +                "views"
      +              ],
      +              "type": "string"
      +            },
      +            "value": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "window": {
      +              "maxLength": 120,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "value",
      +            "status",
      +            "unit",
      +            "window",
      +            "source",
      +            "captured_at"
      +          ],
      +          "type": "object"
      +        },
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "available",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "source",
      +      "captured_at",
      +      "metrics"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "reason": {
      +        "enum": [
      +          "http_401",
      +          "http_403",
      +          "http_404",
      +          "http_429",
      +          "http_5xx",
      +          "http_other",
      +          "malformed",
      +          "timeout",
      +          "response_too_large",
      +          "redirect_rejected",
      +          "unexpected_html"
      +        ],
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "unavailable",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "reason"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Addedv1.3.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond readOnlyHint=true: declares two authenticated reads and no writes, that failed groups are unavailable rather than zero, that ARR currency is not reported, and that 403/404 on both groups signals unavailable analytics access. These are exactly the failure and semantics disclosures an agent needs before calling.

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?

Front-loads the core action and range, then layers caveats in short sentences with no filler. The telegraphic style ('Two authenticated reads, no writes') is dense but each sentence carries distinct information.

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

Completeness5/5

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

For a one-parameter read tool with an output schema and readOnlyHint, the description supplies the auth model, missing-data semantics, known coverage gaps, and error interpretation. Return values are covered by the output schema, so nothing essential is missing.

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?

With 0% schema description coverage, the description carries the parameter meaning and does so by specifying 'trailing' range plus the 1-365 bounds and 30-day default. It does not clarify timezone or whether the window is calendar- or rolling-based beyond 'trailing'.

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?

States a specific verb-plus-resource: reads the dashboard summary and summary-v2 groups for a trailing day range. It is clear what is fetched, though the 'summary vs summary-v2' distinction is jargon an agent may not fully resolve against siblings like get_post_analytics.

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 range and default (1-365, default 30) imply when the tool applies, but there is no explicit statement of when to prefer it over get_post_analytics or list_outgoing_recommendation_stats, and no exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.