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: {
'service': McpSchema.enumProperty(
values: ['database', 'redis', 'apiServer', 'insightsServer', 'webServer'],
description: 'Service to get config for',
required: true,
),
'environment': McpSchema.enumProperty(
values: ['development', 'production', 'staging', 'test'],
description: 'Environment to read config for',
defaultValue: 'development',
),
},
required: ['service'],
);