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: {
'environment': McpSchema.enumProperty(
values: ['development', 'production', 'staging', 'test'],
description: 'Environment to read config for',
defaultValue: 'development',
),
'section': McpSchema.string(description: 'Specific config section (optional)'),
},
);