addRouteInfo property
MCPToolInfo
get
addRouteInfo
Get tool info for add_route_to_controller
Implementation
static MCPToolInfo get addRouteInfo => MCPToolInfo(
name: 'add_route_to_controller',
description: 'Add a new route method to an existing controller',
inputSchema: {
'type': 'object',
'properties': {
'controllerPath': {
'type': 'string',
'description': 'Path to the controller file',
},
'httpMethod': {
'type': 'string',
'enum': ['Get', 'Post', 'Put', 'Delete', 'Patch'],
'description': 'HTTP method',
},
'path': {
'type': 'string',
'description': 'Route path',
},
'methodName': {
'type': 'string',
'description': 'Name of the method',
},
'returnType': {
'type': 'string',
'description': 'Return type (e.g., String, Map<String, dynamic>)',
'default': 'String',
},
},
'required': ['controllerPath', 'httpMethod', 'path', 'methodName'],
},
);