Skip to main content
Glama

get_growth_sources

Read-only

Retrieve growth sources for a Substack publication across a date range, with optional events and timeseries, to analyze acquisition channels and source performance.

Instructions

Read growth sources for an ordered inclusive date range of at most 366 days ending no later than tomorrow UTC. One authenticated read, or two when include_events is true; no writes. Optional events report available items or an unavailable reason without discarding sources; authentication failure still stops the call. Returns up to 20 top-level sources by default, at most 50, in Substack's users-descending order. Processes at most 500 nodes, depth 3 and 400 timeseries points per metric; truncation flags identify cut data. total_sources and has_more describe only the unpaginated response's top-level array, not all upstream sources or complete attribution.

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": {
      "from_date": "<from_date>",
      "to_date": "<to_date>"
    },
    "name": "get_growth_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
to_dateYes
from_dateYes
include_eventsNo
include_timeseriesNo

Output Schema

NameRequiredDescriptionDefault
eventsNo
totalsYes
sourcesYes
to_dateYes
has_moreYes
returnedYes
from_dateYes
truncatedYes
publicationYes
total_sourcesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv1.4.0
    • removedInput schema / properties / to_date / $ref
      Removed value: -"#/properties/from_date"
    • addedInput schema / properties / to_date / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / to_date / type
      Added value: +"string"
    • addedOutput schema / definitions
      Added value: +{
      +  "__schema0": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "category": {
      +        "maxLength": 500,
      +        "type": "string"
      +      },
      +      "children": {
      +        "items": {
      +          "$ref": "#/definitions/__schema0"
      +        },
      +        "maxItems": 500,
      +        "type": "array"
      +      },
      +      "metrics": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "name": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "timeseries": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "date": {
      +                    "maxLength": 500,
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "date",
      +                  "value"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 400,
      +              "type": "array"
      +            },
      +            "timeseries_truncated": {
      +              "type": "boolean"
      +            },
      +            "total": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "total",
      +            "timeseries_truncated"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 100,
      +        "type": "array"
      +      },
      +      "original_source_name": {
      +        "maxLength": 500,
      +        "type": "string"
      +      },
      +      "source": {
      +        "maxLength": 500,
      +        "type": "string"
      +      },
      +      "source_name": {
      +        "maxLength": 500,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "source",
      +      "source_name",
      +      "original_source_name",
      +      "category",
      +      "metrics",
      +      "children"
      +    ],
      +    "type": "object"
      +  }
      +}
    • changedOutput schema / properties / events / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "items": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "date": {
      -              "$ref": "#/properties/sources/items/properties/source"
      -            },
      -            "id": {
      -              "exclusiveMinimum": 0,
      -              "type": "integer"
      -            },
      -            "slug": {
      -              "anyOf": [
      -                {
      -                  "$ref": "#/properties/sources/items/properties/source"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "title": {
      -              "maxLength": 300,
      -              "type": "string"
      -            },
      -            "title_truncated": {
      -              "type": "boolean"
      -            },
      -            "type": {
      -              "$ref": "#/properties/sources/items/properties/source"
      -            },
      -            "url": {
      -              "anyOf": [
      -                {
      -                  "$ref": "#/properties/sources/items/properties/source"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "date",
      -            "title",
      -            "title_truncated",
      -            "slug",
      -            "type",
      -            "url"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 500,
      -        "type": "array"
      -      },
      -      "status": {
      -        "const": "available",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "items"
      -    ],
      -    "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": {
      +      "items": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "date": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "id": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            },
      +            "slug": {
      +              "anyOf": [
      +                {
      +                  "maxLength": 500,
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "title": {
      +              "maxLength": 300,
      +              "type": "string"
      +            },
      +            "title_truncated": {
      +              "type": "boolean"
      +            },
      +            "type": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "url": {
      +              "anyOf": [
      +                {
      +                  "maxLength": 500,
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "date",
      +            "title",
      +            "title_truncated",
      +            "slug",
      +            "type",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 500,
      +        "type": "array"
      +      },
      +      "status": {
      +        "const": "available",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "items"
      +    ],
      +    "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"
      +  }
      +]
    • addedOutput schema / properties / returned / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / sources / items / $ref
      Added value: +"#/definitions/__schema0"
    • removedOutput schema / properties / sources / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / sources / items / properties
      Removed value: -{
      -  "category": {
      -    "$ref": "#/properties/sources/items/properties/source"
      -  },
      -  "children": {
      -    "items": {
      -      "$ref": "#/properties/sources/items"
      -    },
      -    "maxItems": 500,
      -    "type": "array"
      -  },
      -  "metrics": {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "name": {
      -          "$ref": "#/properties/sources/items/properties/source"
      -        },
      -        "timeseries": {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "date": {
      -                "$ref": "#/properties/sources/items/properties/source"
      -              },
      -              "value": {
      -                "$ref": "#/properties/sources/items/properties/metrics/items/properties/total"
      -              }
      -            },
      -            "required": [
      -              "date",
      -              "value"
      -            ],
      -            "type": "object"
      -          },
      -          "maxItems": 400,
      -          "type": "array"
      -        },
      -        "timeseries_truncated": {
      -          "type": "boolean"
      -        },
      -        "total": {
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "name",
      -        "total",
      -        "timeseries_truncated"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 100,
      -    "type": "array"
      -  },
      -  "original_source_name": {
      -    "$ref": "#/properties/sources/items/properties/source"
      -  },
      -  "source": {
      -    "maxLength": 500,
      -    "type": "string"
      -  },
      -  "source_name": {
      -    "$ref": "#/properties/sources/items/properties/source"
      -  }
      -}
    • removedOutput schema / properties / sources / items / required
      Removed value: -[
      -  "source",
      -  "source_name",
      -  "original_source_name",
      -  "category",
      -  "metrics",
      -  "children"
      -]
    • removedOutput schema / properties / sources / items / type
      Removed value: -"object"
    • removedOutput schema / properties / to_date / $ref
      Removed value: -"#/properties/from_date"
    • addedOutput schema / properties / to_date / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedOutput schema / properties / to_date / type
      Added value: +"string"
    • addedOutput schema / properties / total_sources / maximum
      Added value: +9007199254740991
    • removedOutput schema / properties / totals / items / properties / name / $ref
      Removed value: -"#/properties/sources/items/properties/source"
    • addedOutput schema / properties / totals / items / properties / name / maxLength
      Added value: +500
    • addedOutput schema / properties / totals / items / properties / name / type
      Added value: +"string"
    • removedOutput schema / properties / totals / items / properties / total / $ref
      Removed value: -"#/properties/sources/items/properties/metrics/items/properties/total"
    • addedOutput schema / properties / totals / items / properties / total / type
      Added value: +"number"
  2. Addedv1.3.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description goes far beyond that, disclosing read counts with and without include_events, that no writes occur, that an unavailable events report does not discard sources, that auth failure aborts the call, the default and maximum page size, the users-descending order, hard traversal caps (500 nodes, depth 3, 400 points per metric) and truncation flags. It also warns that total_sources and has_more describe only the unpaginated top-level array, not full attribution — exactly the kind of caveat an agent cannot infer.

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?

Dense and front-loaded — scope first, then read/write behavior, then limits, then result semantics. Every clause carries information, though the middle section packs several constraints into long run-on sentences that could be split for faster parsing.

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 5-parameter read tool with an output schema present, the description covers everything an agent needs before calling: legality of the date range, read cost, failure modes, pagination ceiling and traversal truncation. Since an output schema exists, it correctly refrains from enumerating return fields while still warning about the misleading semantics of two of them.

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 description coverage is 0%, so the description must carry the parameters, and it covers most of them: date ordering and the 366-day/tomorrow-UTC bounds for from_date and to_date, the 20-default/50-max limit, and the behavioral effect of include_events. include_timeseries is only alluded to via the 400-point-per-metric cap and is never explained directly, which keeps this below 5.

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 opening sentence states a specific verb and resource: 'Read growth sources for an ordered inclusive date range'. That is unambiguous and distinct from sibling reads such as get_publication_stats or get_post_analytics. It stops short of naming a sibling it must not be confused with, so it lands at 4 rather than 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?

The description supplies hard operating constraints (range at most 366 days, ending no later than tomorrow UTC) that tell the agent when a call is legal, but never says when to prefer this tool over the analytics or publication-stats siblings. Usage is implied by the resource scope rather than explicitly routed.

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