inputSchema property

  1. @override
Map<String, dynamic> get inputSchema
override

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: {
    'category': McpSchema.string(
      description: 'Filter by category (e.g., "server", "database", "build", "test", "deployment", "tools")',
    ),
    'source': McpSchema.enumProperty(
      values: ['all', 'built-in', 'custom'],
      description: 'Filter by command source (default: all)',
      defaultValue: 'all',
    ),
  },
);