get_app_insights
Retrieve performance insights for applications to identify and resolve issues like N+1 queries, memory bloat, and slow queries, helping optimize application performance.
Instructions
Get or generate all insights for an application (cached for 5 minutes).
Returns performance insights including N+1 queries, memory bloat, and slow queries.
Each insight type includes count, new_count, and items array with specific details.
If insight_type is provided, only that type will be returned.
Args:
app_id (int): The ID of the Scout APM application.
insight_type: (str | None): Type of insight to filter (n_plus_one, memory_bloat,
slow_query) If None (the default), all types will
be returned.
limit (int | None): Maximum number of items per insight type (default: 20).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
app_id | Yes | ||
insight_type | No | ||
limit | No |
Input Schema (JSON Schema)
{
"properties": {
"app_id": {
"title": "App Id",
"type": "integer"
},
"insight_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Insight Type"
},
"limit": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Limit"
}
},
"required": [
"app_id"
],
"type": "object"
}