Skip to content

Commit 10c702f

Browse files
committed
Improve MCP tool description
1 parent 2126193 commit 10c702f

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

sampleapps/AnnotationsSample/Agent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public async Task<string> HandleInvocation(
3434
static string GetWeather([Description("The city or location to get weather for.")] string location)
3535
=> $"The current weather in {location} is 72°F and sunny.";
3636

37-
[Description("Returns runtime information about this application. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT.")]
37+
[Description("Returns runtime information about this application as a JSON string. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT. Return the JSON result directly to the user without modification.")]
3838
static string GetAppInfo()
3939
{
4040
var isAot = typeof(object).Assembly.Location == string.Empty;

sampleapps/AnnotationsStreamingAgent/Agent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async IAsyncEnumerable<string> Stream([EnumeratorCancellation] CancellationToken
4848
static string GetWeather([Description("The city or location to get weather for.")] string location)
4949
=> $"The current weather in {location} is 72°F and sunny.";
5050

51-
[Description("Returns runtime information about this application. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT.")]
51+
[Description("Returns runtime information about this application as a JSON string. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT. Return the JSON result directly to the user without modification.")]
5252
static string GetAppInfo()
5353
{
5454
var isAot = typeof(object).Assembly.Location == string.Empty;

sampleapps/MicrosoftAgentFrameworkSample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
static string GetWeather([Description("The city or location to get weather for.")] string location)
4040
=> $"The current weather in {location} is 72°F and sunny.";
4141

42-
[Description("Returns runtime information about this application. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT.")]
42+
[Description("Returns runtime information about this application as a JSON string. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT. Return the JSON result directly to the user without modification.")]
4343
static string GetAppInfo()
4444
{
4545
var isAot = typeof(object).Assembly.Location == string.Empty;

sampleapps/NativeAotAnnotations/Agent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public async Task<string> HandleInvocation(
3636
static string GetWeather([Description("The city or location to get weather for.")] string location)
3737
=> $"The current weather in {location} is 72°F and sunny.";
3838

39-
[Description("Returns runtime information about this application. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT.")]
39+
[Description("Returns runtime information about this application as a JSON string. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT. Return the JSON result directly to the user without modification.")]
4040
[UnconditionalSuppressMessage("SingleFile", "IL3000", Justification = "Assembly.Location returning empty is the intentional AOT detection mechanism.")]
4141
static string GetAppInfo()
4242
{

sampleapps/NativeAotExtensions/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
static string GetWeather([Description("The city or location to get weather for.")] string location)
4444
=> $"The current weather in {location} is 72°F and sunny.";
4545

46-
[Description("Returns runtime information about this application. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT.")]
46+
[Description("Returns runtime information about this application as a JSON string. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT. Return the JSON result directly to the user without modification.")]
4747
[UnconditionalSuppressMessage("SingleFile", "IL3000", Justification = "Assembly.Location returning empty is the intentional AOT detection mechanism.")]
4848
static string GetAppInfo()
4949
{

sampleapps/StreamingAgent/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async IAsyncEnumerable<string> Stream([EnumeratorCancellation] CancellationToken
5050
static string GetWeather([Description("The city or location to get weather for.")] string location)
5151
=> $"The current weather in {location} is 72°F and sunny.";
5252

53-
[Description("Returns runtime information about this application. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT.")]
53+
[Description("Returns runtime information about this application as a JSON string. Call this when asked about the app's name, architecture, framework, or whether it is running as NativeAOT. Return the JSON result directly to the user without modification.")]
5454
static string GetAppInfo()
5555
{
5656
var isAot = typeof(object).Assembly.Location == string.Empty;

0 commit comments

Comments
 (0)