McpActionRequest.java
package fr.tiogars.chat.domains.mcp.models;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import java.util.Map;
/**
* Request to execute an action on an MCP service.
*/
@Schema(description = "Request to execute an MCP action")
public record McpActionRequest(
@NotBlank
@Schema(description = "ID of the MCP service", example = "filesystem")
String serviceId,
@NotBlank
@Schema(description = "Action to execute", example = "list_resources")
String action,
@Schema(description = "Parameters for the action")
Map<String, Object> parameters
) {
}