# Get Lead source activity summary

`source_channels.get_activity_summary`

Summarize businesses, Deals, applications, funnel progress, and the latest recorded activity attributed to one Lead source. Use this only when the user asks about activity or performance.

[Lead sources guide](https://docs.levr.ai/mcp/resources/source_channels.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: read. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "source_channel_id": {
      "description": "Canonical Lead source ID returned by source_channels.list.",
      "maxLength": 255,
      "minLength": 1,
      "pattern": "^srcch_[A-Za-z0-9_-]+$",
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "source_channel_id"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "activity": {
          "additionalProperties": false,
          "properties": {
            "application_count": {
              "minimum": 0,
              "type": "integer"
            },
            "business_count": {
              "minimum": 0,
              "type": "integer"
            },
            "closed_application_count": {
              "minimum": 0,
              "type": "integer"
            },
            "deal_count": {
              "minimum": 0,
              "type": "integer"
            },
            "funnel": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "closed_count": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "created_count": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "family": {
                    "enum": [
                      "deal",
                      "client_intake"
                    ],
                    "type": "string"
                  },
                  "submitted_count": {
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "family",
                  "created_count",
                  "submitted_count",
                  "closed_count"
                ],
                "type": "object"
              },
              "maxItems": 2,
              "type": "array"
            },
            "latest_activity_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "submitted_application_count": {
              "minimum": 0,
              "type": "integer"
            },
            "submitted_deal_count": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "business_count",
            "deal_count",
            "submitted_deal_count",
            "application_count",
            "submitted_application_count",
            "closed_application_count",
            "funnel",
            "latest_activity_at"
          ],
          "type": "object"
        },
        "frontend_link": {
          "format": "uri",
          "type": "string"
        },
        "id": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "revision": {
          "description": "Opaque configuration revision returned by a Lead source read.",
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "required": [
        "id",
        "revision",
        "frontend_link",
        "activity"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```
