inputSchema property
Input schema (JSON Schema format)
Defines the structure of parameters that this tool accepts. Follows JSON Schema specification (draft-07 or later).
Implementation
@override
Map<String, dynamic> get inputSchema => McpSchema.inputSchema(
type: 'object',
properties: {
'file': McpSchema.string(
description: 'Log file name or pattern (default: serverpod.log). Supports glob patterns like "serverpod-*.log"',
defaultValue: 'serverpod.log',
),
'lines': McpSchema.integer(
description: 'Number of log entries to return (default: 100, max: 1000)',
defaultValue: 100,
),
'level': McpSchema.enumProperty(
values: ['INFO', 'WARNING', 'ERROR', 'ALL'],
description: 'Filter by log level',
defaultValue: 'ALL',
),
'pattern': McpSchema.string(
description: 'Regex pattern to filter log entries (searches in message content)',
),
},
);