Skip to content

Commit a9488dd

Browse files
author
Jesus Terrazas
committed
copilot comments
1 parent 3b35e1b commit a9488dd

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

mcp/Program.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,7 @@
7979
{
8080
if (idProp.ValueKind == JsonValueKind.Number)
8181
{
82-
if (idProp.TryGetInt64(out var longVal))
83-
{
84-
idValue = longVal;
85-
}
86-
else
87-
{
88-
idValue = idProp.GetDouble();
89-
}
82+
idValue = idProp.TryGetInt64(out var longVal) ? (object?)longVal : idProp.GetDouble();
9083
}
9184
else if (idProp.ValueKind == JsonValueKind.String)
9285
{

mcp/mocks/mcp_CalendarTools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"name": "createEvent",
83-
"description": "\"Use this to create a new event in current user's calendar. IMPORTANT: If recipient names are provided instead of email addresses, you MUST first search for users to find their email addresses..If time is provided, schedule the event — even if there are conflicts/ even if attendee/organizer is busy in that slot.If only a date is given, use the earliest slot where all or most attendees (> 50% of them) are free. If no date is given, schedule meeting at given time for today.If no time/date is given, use the first slot where all attendees are free.Try to create events during working hours of signed-in user (8 AM 5 PM) if explicit time is not specified.Specify recurrence using recurrence property.Online meetings can be created by setting isOnlineMeeting to true.Default meeting duration is 30 minutes, if not specified by user.\"",
83+
"description": "\"Use this to create a new event in current user's calendar. IMPORTANT: If recipient names are provided instead of email addresses, you MUST first search for users to find their email addresses. If time is provided, schedule the event — even if there are conflicts/ even if attendee/organizer is busy in that slot. If only a date is given, use the earliest slot where all or most attendees (> 50% of them) are free. If no date is given, schedule meeting at given time for today. If no time/date is given, use the first slot where all attendees are free. Try to create events during working hours of signed-in user (8 AM - 5 PM) if explicit time is not specified. Specify recurrence using recurrence property. Online meetings can be created by setting isOnlineMeeting to true. Default meeting duration is 30 minutes, if not specified by user.\"",
8484
"inputSchema": {
8585
"type": "object",
8686
"properties": {

0 commit comments

Comments
 (0)