Skip to main content
Glama

sentry_start_session

Start a new session to monitor release health by tracking user activity with unique identifiers, session IDs, release versions, and environment data.

Instructions

Start a new session for release health monitoring

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
distinctIdNoUnique user identifier (ID, email, or username)
sessionIdNoOptional custom session ID
releaseNoRelease version
environmentNoEnvironment name (production, staging, etc)

Implementation Reference

  • The switch case handler that executes the sentry_start_session tool. It destructures the arguments, prepares session data, optionally sets the user, calls Sentry.startSession, and returns a confirmation message.
    case "sentry_start_session": { const { distinctId, sessionId, release, environment } = args as any; // Start a new session const sessionData: any = { release, environment, }; if (distinctId) { Sentry.setUser({ id: distinctId }); } Sentry.startSession(sessionData); return { content: [ { type: "text", text: `Session started${sessionId ? ` with ID: ${sessionId}` : ''}`, }, ], }; }
  • src/index.ts:297-321 (registration)
    Tool registration in the ListToolsRequestSchema handler, including the tool name, description, and input schema definition.
    { name: "sentry_start_session", description: "Start a new session for release health monitoring", inputSchema: { type: "object", properties: { distinctId: { type: "string", description: "Unique user identifier (ID, email, or username)", }, sessionId: { type: "string", description: "Optional custom session ID", }, release: { type: "string", description: "Release version", }, environment: { type: "string", description: "Environment name (production, staging, etc)", }, }, }, },
  • Input schema definition for the sentry_start_session tool, specifying properties for distinctId, sessionId, release, and environment.
    { name: "sentry_start_session", description: "Start a new session for release health monitoring", inputSchema: { type: "object", properties: { distinctId: { type: "string", description: "Unique user identifier (ID, email, or username)", }, sessionId: { type: "string", description: "Optional custom session ID", }, release: { type: "string", description: "Release version", }, environment: { type: "string", description: "Environment name (production, staging, etc)", }, }, }, },

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/diegofornalha/sentry-mcp-cursor'

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