Skip to main content
Glama
scoutapp

Scout Monitoring MCP

Official

get_app_trace

Retrieve detailed application performance traces with all spans to analyze and resolve issues like N+1 queries, slow endpoints, and memory bloat in Rails, Django, Laravel, and other frameworks.

Instructions

Get an individual trace with all spans. Args: app_id (int): The ID of the Scout APM application. trace_id (int): The ID of the trace to retrieve.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idYes
trace_idYes

Implementation Reference

  • The main handler function for the MCP tool 'get_app_trace'. It is registered via the @mcp.tool decorator and fetches a specific trace by app_id and trace_id from the Scout APM API client.
    @mcp.tool(name="get_app_trace") async def get_app_trace(app_id: int, trace_id: int) -> dict[str, Any]: """ Get an individual trace with all spans. Args: app_id (int): The ID of the Scout APM application. trace_id (int): The ID of the trace to retrieve. """ try: async with api_client as scout_client: trace = await scout_client.get_trace(app_id, trace_id) return trace except scout_api.ScoutAPMError as e: return {"error": str(e)}
  • The @mcp.tool decorator registers the 'get_app_trace' tool with the MCP server.
    @mcp.tool(name="get_app_trace")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/scoutapp/scout-mcp-local'

If you have feedback or need assistance with the MCP directory API, please join our Discord server