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: {
    'endpoint': McpSchema.string(
      description: 'Endpoint name (e.g., "greeting")',
      required: true,
    ),
    'method': McpSchema.string(
      description: 'Method name (e.g., "hello")',
      required: true,
    ),
    'parameters': McpSchema.object(
      description: 'Method parameters (excluding Session)',
    ),
  },
  required: ['endpoint', 'method'],
);