Files

20 lines
491 B
C#

using xAiModels.Attributes;
namespace xAiMcpServer.Tools
{
[XAiMcpToolType]
public static class XEchoTools
{
[XAiMcpTool(Description = "Echoes the string back to the client give message in string")]
public static string Echo(
[XAiMcpToolParam(Description = "string value which specified message")]
string message
)
{
//
var result = $"hello {message}";
return result;
}
}
}