@anuma/sdk 6.28.1 → 6.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expo/index.cjs +50 -6
- package/dist/expo/index.mjs +50 -6
- package/dist/index.cjs +44 -3
- package/dist/index.mjs +44 -3
- package/dist/react/index.cjs +50 -6
- package/dist/react/index.mjs +50 -6
- package/dist/server/index.cjs +50 -6
- package/dist/server/index.mjs +50 -6
- package/dist/tools/index.cjs +1 -1
- package/dist/tools/index.mjs +1 -1
- package/dist/tools/selection/index.cjs +44 -3
- package/dist/tools/selection/index.mjs +44 -3
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -6282,26 +6282,60 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
6282
6282
|
},
|
|
6283
6283
|
{
|
|
6284
6284
|
// Server tools, so this set does its work through
|
|
6285
|
-
// withActiveToolSetServerTools: once
|
|
6286
|
-
// follow-ups ("okay", "same as before") keep
|
|
6287
|
-
//
|
|
6285
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
6286
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
6287
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
6288
|
+
// request on its own description.
|
|
6288
6289
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
6289
6290
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
6290
6291
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
6291
6292
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
6292
6293
|
name: "restaurant-booking",
|
|
6294
|
+
members: [
|
|
6295
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
6296
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
6297
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
6298
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
6299
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
6300
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
6301
|
+
],
|
|
6302
|
+
anchors: []
|
|
6303
|
+
},
|
|
6304
|
+
{
|
|
6305
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
6306
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
6307
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
6308
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
6309
|
+
name: "restaurant-book",
|
|
6293
6310
|
members: [
|
|
6294
6311
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
6295
6312
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
6296
6313
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
6297
6314
|
],
|
|
6298
6315
|
anchors: []
|
|
6316
|
+
},
|
|
6317
|
+
{
|
|
6318
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
6319
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
6320
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
6321
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
6322
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
6323
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
6324
|
+
name: "restaurant-cancel",
|
|
6325
|
+
members: [
|
|
6326
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
6327
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
6328
|
+
],
|
|
6329
|
+
anchors: []
|
|
6299
6330
|
}
|
|
6300
6331
|
];
|
|
6301
6332
|
var CONFIRMED_ACTION_TOOL_SETS = /* @__PURE__ */ new Map([
|
|
6302
|
-
["book_restaurant", "restaurant-
|
|
6303
|
-
["anuma_book_restaurant", "restaurant-
|
|
6304
|
-
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-
|
|
6333
|
+
["book_restaurant", "restaurant-book"],
|
|
6334
|
+
["anuma_book_restaurant", "restaurant-book"],
|
|
6335
|
+
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-book"],
|
|
6336
|
+
["cancel_reservation", "restaurant-cancel"],
|
|
6337
|
+
["anuma_cancel_reservation", "restaurant-cancel"],
|
|
6338
|
+
["anumapaymentsmcp-anuma_cancel_reservation", "restaurant-cancel"]
|
|
6305
6339
|
]);
|
|
6306
6340
|
function expandToolSetsAdditive(matchedNames, availableNames, scores, toolSets, activeSetNames) {
|
|
6307
6341
|
const result = new Set(matchedNames);
|
|
@@ -6441,6 +6475,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
6441
6475
|
"OpenMeteoMCP-elevation"
|
|
6442
6476
|
],
|
|
6443
6477
|
anchorMinSimilarity: 0.5
|
|
6478
|
+
},
|
|
6479
|
+
{
|
|
6480
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
6481
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
6482
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
6483
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
6484
|
+
name: "restaurant-cancel-lookup",
|
|
6485
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
6486
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
6487
|
+
anchorMinSimilarity: 0.5
|
|
6444
6488
|
}
|
|
6445
6489
|
];
|
|
6446
6490
|
var defaultServerToolsFilter = createServerToolsFilter({
|
package/dist/expo/index.mjs
CHANGED
|
@@ -4680,26 +4680,60 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
4680
4680
|
},
|
|
4681
4681
|
{
|
|
4682
4682
|
// Server tools, so this set does its work through
|
|
4683
|
-
// withActiveToolSetServerTools: once
|
|
4684
|
-
// follow-ups ("okay", "same as before") keep
|
|
4685
|
-
//
|
|
4683
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
4684
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
4685
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
4686
|
+
// request on its own description.
|
|
4686
4687
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
4687
4688
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
4688
4689
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
4689
4690
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
4690
4691
|
name: "restaurant-booking",
|
|
4692
|
+
members: [
|
|
4693
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
4694
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
4695
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
4696
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
4697
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
4698
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
4699
|
+
],
|
|
4700
|
+
anchors: []
|
|
4701
|
+
},
|
|
4702
|
+
{
|
|
4703
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
4704
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
4705
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
4706
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
4707
|
+
name: "restaurant-book",
|
|
4691
4708
|
members: [
|
|
4692
4709
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
4693
4710
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
4694
4711
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
4695
4712
|
],
|
|
4696
4713
|
anchors: []
|
|
4714
|
+
},
|
|
4715
|
+
{
|
|
4716
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
4717
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
4718
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
4719
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
4720
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
4721
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
4722
|
+
name: "restaurant-cancel",
|
|
4723
|
+
members: [
|
|
4724
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
4725
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
4726
|
+
],
|
|
4727
|
+
anchors: []
|
|
4697
4728
|
}
|
|
4698
4729
|
];
|
|
4699
4730
|
var CONFIRMED_ACTION_TOOL_SETS = /* @__PURE__ */ new Map([
|
|
4700
|
-
["book_restaurant", "restaurant-
|
|
4701
|
-
["anuma_book_restaurant", "restaurant-
|
|
4702
|
-
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-
|
|
4731
|
+
["book_restaurant", "restaurant-book"],
|
|
4732
|
+
["anuma_book_restaurant", "restaurant-book"],
|
|
4733
|
+
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-book"],
|
|
4734
|
+
["cancel_reservation", "restaurant-cancel"],
|
|
4735
|
+
["anuma_cancel_reservation", "restaurant-cancel"],
|
|
4736
|
+
["anumapaymentsmcp-anuma_cancel_reservation", "restaurant-cancel"]
|
|
4703
4737
|
]);
|
|
4704
4738
|
function expandToolSetsAdditive(matchedNames, availableNames, scores, toolSets, activeSetNames) {
|
|
4705
4739
|
const result = new Set(matchedNames);
|
|
@@ -4839,6 +4873,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
4839
4873
|
"OpenMeteoMCP-elevation"
|
|
4840
4874
|
],
|
|
4841
4875
|
anchorMinSimilarity: 0.5
|
|
4876
|
+
},
|
|
4877
|
+
{
|
|
4878
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
4879
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
4880
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
4881
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
4882
|
+
name: "restaurant-cancel-lookup",
|
|
4883
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
4884
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
4885
|
+
anchorMinSimilarity: 0.5
|
|
4842
4886
|
}
|
|
4843
4887
|
];
|
|
4844
4888
|
var defaultServerToolsFilter = createServerToolsFilter({
|
package/dist/index.cjs
CHANGED
|
@@ -2261,20 +2261,51 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
2261
2261
|
},
|
|
2262
2262
|
{
|
|
2263
2263
|
// Server tools, so this set does its work through
|
|
2264
|
-
// withActiveToolSetServerTools: once
|
|
2265
|
-
// follow-ups ("okay", "same as before") keep
|
|
2266
|
-
//
|
|
2264
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
2265
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
2266
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
2267
|
+
// request on its own description.
|
|
2267
2268
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
2268
2269
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
2269
2270
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
2270
2271
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
2271
2272
|
name: "restaurant-booking",
|
|
2273
|
+
members: [
|
|
2274
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
2275
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
2276
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
2277
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
2278
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
2279
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
2280
|
+
],
|
|
2281
|
+
anchors: []
|
|
2282
|
+
},
|
|
2283
|
+
{
|
|
2284
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
2285
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
2286
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
2287
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
2288
|
+
name: "restaurant-book",
|
|
2272
2289
|
members: [
|
|
2273
2290
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
2274
2291
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
2275
2292
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
2276
2293
|
],
|
|
2277
2294
|
anchors: []
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
2298
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
2299
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
2300
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
2301
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
2302
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
2303
|
+
name: "restaurant-cancel",
|
|
2304
|
+
members: [
|
|
2305
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
2306
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
2307
|
+
],
|
|
2308
|
+
anchors: []
|
|
2278
2309
|
}
|
|
2279
2310
|
];
|
|
2280
2311
|
function applyToolSets(matchedNames, availableNames, scores, toolSets = BUILT_IN_TOOL_SETS, independentThreshold = 0.65) {
|
|
@@ -2434,6 +2465,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
2434
2465
|
"OpenMeteoMCP-elevation"
|
|
2435
2466
|
],
|
|
2436
2467
|
anchorMinSimilarity: 0.5
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
2471
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
2472
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
2473
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
2474
|
+
name: "restaurant-cancel-lookup",
|
|
2475
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
2476
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
2477
|
+
anchorMinSimilarity: 0.5
|
|
2437
2478
|
}
|
|
2438
2479
|
];
|
|
2439
2480
|
var defaultServerToolsFilter = createServerToolsFilter({
|
package/dist/index.mjs
CHANGED
|
@@ -2055,20 +2055,51 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
2055
2055
|
},
|
|
2056
2056
|
{
|
|
2057
2057
|
// Server tools, so this set does its work through
|
|
2058
|
-
// withActiveToolSetServerTools: once
|
|
2059
|
-
// follow-ups ("okay", "same as before") keep
|
|
2060
|
-
//
|
|
2058
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
2059
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
2060
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
2061
|
+
// request on its own description.
|
|
2061
2062
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
2062
2063
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
2063
2064
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
2064
2065
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
2065
2066
|
name: "restaurant-booking",
|
|
2067
|
+
members: [
|
|
2068
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
2069
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
2070
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
2071
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
2072
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
2073
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
2074
|
+
],
|
|
2075
|
+
anchors: []
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
2079
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
2080
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
2081
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
2082
|
+
name: "restaurant-book",
|
|
2066
2083
|
members: [
|
|
2067
2084
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
2068
2085
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
2069
2086
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
2070
2087
|
],
|
|
2071
2088
|
anchors: []
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
2092
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
2093
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
2094
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
2095
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
2096
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
2097
|
+
name: "restaurant-cancel",
|
|
2098
|
+
members: [
|
|
2099
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
2100
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
2101
|
+
],
|
|
2102
|
+
anchors: []
|
|
2072
2103
|
}
|
|
2073
2104
|
];
|
|
2074
2105
|
function applyToolSets(matchedNames, availableNames, scores, toolSets = BUILT_IN_TOOL_SETS, independentThreshold = 0.65) {
|
|
@@ -2228,6 +2259,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
2228
2259
|
"OpenMeteoMCP-elevation"
|
|
2229
2260
|
],
|
|
2230
2261
|
anchorMinSimilarity: 0.5
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
2265
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
2266
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
2267
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
2268
|
+
name: "restaurant-cancel-lookup",
|
|
2269
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
2270
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
2271
|
+
anchorMinSimilarity: 0.5
|
|
2231
2272
|
}
|
|
2232
2273
|
];
|
|
2233
2274
|
var defaultServerToolsFilter = createServerToolsFilter({
|
package/dist/react/index.cjs
CHANGED
|
@@ -6671,26 +6671,60 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
6671
6671
|
},
|
|
6672
6672
|
{
|
|
6673
6673
|
// Server tools, so this set does its work through
|
|
6674
|
-
// withActiveToolSetServerTools: once
|
|
6675
|
-
// follow-ups ("okay", "same as before") keep
|
|
6676
|
-
//
|
|
6674
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
6675
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
6676
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
6677
|
+
// request on its own description.
|
|
6677
6678
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
6678
6679
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
6679
6680
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
6680
6681
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
6681
6682
|
name: "restaurant-booking",
|
|
6683
|
+
members: [
|
|
6684
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
6685
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
6686
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
6687
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
6688
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
6689
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
6690
|
+
],
|
|
6691
|
+
anchors: []
|
|
6692
|
+
},
|
|
6693
|
+
{
|
|
6694
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
6695
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
6696
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
6697
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
6698
|
+
name: "restaurant-book",
|
|
6682
6699
|
members: [
|
|
6683
6700
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
6684
6701
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
6685
6702
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
6686
6703
|
],
|
|
6687
6704
|
anchors: []
|
|
6705
|
+
},
|
|
6706
|
+
{
|
|
6707
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
6708
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
6709
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
6710
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
6711
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
6712
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
6713
|
+
name: "restaurant-cancel",
|
|
6714
|
+
members: [
|
|
6715
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
6716
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
6717
|
+
],
|
|
6718
|
+
anchors: []
|
|
6688
6719
|
}
|
|
6689
6720
|
];
|
|
6690
6721
|
var CONFIRMED_ACTION_TOOL_SETS = /* @__PURE__ */ new Map([
|
|
6691
|
-
["book_restaurant", "restaurant-
|
|
6692
|
-
["anuma_book_restaurant", "restaurant-
|
|
6693
|
-
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-
|
|
6722
|
+
["book_restaurant", "restaurant-book"],
|
|
6723
|
+
["anuma_book_restaurant", "restaurant-book"],
|
|
6724
|
+
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-book"],
|
|
6725
|
+
["cancel_reservation", "restaurant-cancel"],
|
|
6726
|
+
["anuma_cancel_reservation", "restaurant-cancel"],
|
|
6727
|
+
["anumapaymentsmcp-anuma_cancel_reservation", "restaurant-cancel"]
|
|
6694
6728
|
]);
|
|
6695
6729
|
function expandToolSetsAdditive(matchedNames, availableNames, scores, toolSets, activeSetNames) {
|
|
6696
6730
|
const result = new Set(matchedNames);
|
|
@@ -6830,6 +6864,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
6830
6864
|
"OpenMeteoMCP-elevation"
|
|
6831
6865
|
],
|
|
6832
6866
|
anchorMinSimilarity: 0.5
|
|
6867
|
+
},
|
|
6868
|
+
{
|
|
6869
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
6870
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
6871
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
6872
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
6873
|
+
name: "restaurant-cancel-lookup",
|
|
6874
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
6875
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
6876
|
+
anchorMinSimilarity: 0.5
|
|
6833
6877
|
}
|
|
6834
6878
|
];
|
|
6835
6879
|
var defaultServerToolsFilter = createServerToolsFilter({
|
package/dist/react/index.mjs
CHANGED
|
@@ -4809,26 +4809,60 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
4809
4809
|
},
|
|
4810
4810
|
{
|
|
4811
4811
|
// Server tools, so this set does its work through
|
|
4812
|
-
// withActiveToolSetServerTools: once
|
|
4813
|
-
// follow-ups ("okay", "same as before") keep
|
|
4814
|
-
//
|
|
4812
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
4813
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
4814
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
4815
|
+
// request on its own description.
|
|
4815
4816
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
4816
4817
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
4817
4818
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
4818
4819
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
4819
4820
|
name: "restaurant-booking",
|
|
4821
|
+
members: [
|
|
4822
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
4823
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
4824
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
4825
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
4826
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
4827
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
4828
|
+
],
|
|
4829
|
+
anchors: []
|
|
4830
|
+
},
|
|
4831
|
+
{
|
|
4832
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
4833
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
4834
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
4835
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
4836
|
+
name: "restaurant-book",
|
|
4820
4837
|
members: [
|
|
4821
4838
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
4822
4839
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
4823
4840
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
4824
4841
|
],
|
|
4825
4842
|
anchors: []
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
4846
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
4847
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
4848
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
4849
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
4850
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
4851
|
+
name: "restaurant-cancel",
|
|
4852
|
+
members: [
|
|
4853
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
4854
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
4855
|
+
],
|
|
4856
|
+
anchors: []
|
|
4826
4857
|
}
|
|
4827
4858
|
];
|
|
4828
4859
|
var CONFIRMED_ACTION_TOOL_SETS = /* @__PURE__ */ new Map([
|
|
4829
|
-
["book_restaurant", "restaurant-
|
|
4830
|
-
["anuma_book_restaurant", "restaurant-
|
|
4831
|
-
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-
|
|
4860
|
+
["book_restaurant", "restaurant-book"],
|
|
4861
|
+
["anuma_book_restaurant", "restaurant-book"],
|
|
4862
|
+
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-book"],
|
|
4863
|
+
["cancel_reservation", "restaurant-cancel"],
|
|
4864
|
+
["anuma_cancel_reservation", "restaurant-cancel"],
|
|
4865
|
+
["anumapaymentsmcp-anuma_cancel_reservation", "restaurant-cancel"]
|
|
4832
4866
|
]);
|
|
4833
4867
|
function expandToolSetsAdditive(matchedNames, availableNames, scores, toolSets, activeSetNames) {
|
|
4834
4868
|
const result = new Set(matchedNames);
|
|
@@ -4968,6 +5002,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
4968
5002
|
"OpenMeteoMCP-elevation"
|
|
4969
5003
|
],
|
|
4970
5004
|
anchorMinSimilarity: 0.5
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
5008
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
5009
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
5010
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
5011
|
+
name: "restaurant-cancel-lookup",
|
|
5012
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
5013
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
5014
|
+
anchorMinSimilarity: 0.5
|
|
4971
5015
|
}
|
|
4972
5016
|
];
|
|
4973
5017
|
var defaultServerToolsFilter = createServerToolsFilter({
|
package/dist/server/index.cjs
CHANGED
|
@@ -33290,26 +33290,60 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
33290
33290
|
},
|
|
33291
33291
|
{
|
|
33292
33292
|
// Server tools, so this set does its work through
|
|
33293
|
-
// withActiveToolSetServerTools: once
|
|
33294
|
-
// follow-ups ("okay", "same as before") keep
|
|
33295
|
-
//
|
|
33293
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
33294
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
33295
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
33296
|
+
// request on its own description.
|
|
33296
33297
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
33297
33298
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
33298
33299
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
33299
33300
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
33300
33301
|
name: "restaurant-booking",
|
|
33302
|
+
members: [
|
|
33303
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
33304
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
33305
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
33306
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
33307
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
33308
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
33309
|
+
],
|
|
33310
|
+
anchors: []
|
|
33311
|
+
},
|
|
33312
|
+
{
|
|
33313
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
33314
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
33315
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
33316
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
33317
|
+
name: "restaurant-book",
|
|
33301
33318
|
members: [
|
|
33302
33319
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
33303
33320
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
33304
33321
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
33305
33322
|
],
|
|
33306
33323
|
anchors: []
|
|
33324
|
+
},
|
|
33325
|
+
{
|
|
33326
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
33327
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
33328
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
33329
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
33330
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
33331
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
33332
|
+
name: "restaurant-cancel",
|
|
33333
|
+
members: [
|
|
33334
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
33335
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
33336
|
+
],
|
|
33337
|
+
anchors: []
|
|
33307
33338
|
}
|
|
33308
33339
|
];
|
|
33309
33340
|
var CONFIRMED_ACTION_TOOL_SETS = /* @__PURE__ */ new Map([
|
|
33310
|
-
["book_restaurant", "restaurant-
|
|
33311
|
-
["anuma_book_restaurant", "restaurant-
|
|
33312
|
-
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-
|
|
33341
|
+
["book_restaurant", "restaurant-book"],
|
|
33342
|
+
["anuma_book_restaurant", "restaurant-book"],
|
|
33343
|
+
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-book"],
|
|
33344
|
+
["cancel_reservation", "restaurant-cancel"],
|
|
33345
|
+
["anuma_cancel_reservation", "restaurant-cancel"],
|
|
33346
|
+
["anumapaymentsmcp-anuma_cancel_reservation", "restaurant-cancel"]
|
|
33313
33347
|
]);
|
|
33314
33348
|
function expandToolSetsAdditive(matchedNames, availableNames, scores, toolSets, activeSetNames) {
|
|
33315
33349
|
const result = new Set(matchedNames);
|
|
@@ -33449,6 +33483,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
33449
33483
|
"OpenMeteoMCP-elevation"
|
|
33450
33484
|
],
|
|
33451
33485
|
anchorMinSimilarity: 0.5
|
|
33486
|
+
},
|
|
33487
|
+
{
|
|
33488
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
33489
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
33490
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
33491
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
33492
|
+
name: "restaurant-cancel-lookup",
|
|
33493
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
33494
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
33495
|
+
anchorMinSimilarity: 0.5
|
|
33452
33496
|
}
|
|
33453
33497
|
];
|
|
33454
33498
|
var defaultServerToolsFilter = createServerToolsFilter({
|
package/dist/server/index.mjs
CHANGED
|
@@ -31554,26 +31554,60 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
31554
31554
|
},
|
|
31555
31555
|
{
|
|
31556
31556
|
// Server tools, so this set does its work through
|
|
31557
|
-
// withActiveToolSetServerTools: once
|
|
31558
|
-
// follow-ups ("okay", "same as before") keep
|
|
31559
|
-
//
|
|
31557
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
31558
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
31559
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
31560
|
+
// request on its own description.
|
|
31560
31561
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
31561
31562
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
31562
31563
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
31563
31564
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
31564
31565
|
name: "restaurant-booking",
|
|
31566
|
+
members: [
|
|
31567
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
31568
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
31569
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
31570
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
31571
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
31572
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
31573
|
+
],
|
|
31574
|
+
anchors: []
|
|
31575
|
+
},
|
|
31576
|
+
{
|
|
31577
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
31578
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
31579
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
31580
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
31581
|
+
name: "restaurant-book",
|
|
31565
31582
|
members: [
|
|
31566
31583
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
31567
31584
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
31568
31585
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
31569
31586
|
],
|
|
31570
31587
|
anchors: []
|
|
31588
|
+
},
|
|
31589
|
+
{
|
|
31590
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
31591
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
31592
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
31593
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
31594
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
31595
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
31596
|
+
name: "restaurant-cancel",
|
|
31597
|
+
members: [
|
|
31598
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
31599
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
31600
|
+
],
|
|
31601
|
+
anchors: []
|
|
31571
31602
|
}
|
|
31572
31603
|
];
|
|
31573
31604
|
var CONFIRMED_ACTION_TOOL_SETS = /* @__PURE__ */ new Map([
|
|
31574
|
-
["book_restaurant", "restaurant-
|
|
31575
|
-
["anuma_book_restaurant", "restaurant-
|
|
31576
|
-
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-
|
|
31605
|
+
["book_restaurant", "restaurant-book"],
|
|
31606
|
+
["anuma_book_restaurant", "restaurant-book"],
|
|
31607
|
+
["anumapaymentsmcp-anuma_book_restaurant", "restaurant-book"],
|
|
31608
|
+
["cancel_reservation", "restaurant-cancel"],
|
|
31609
|
+
["anuma_cancel_reservation", "restaurant-cancel"],
|
|
31610
|
+
["anumapaymentsmcp-anuma_cancel_reservation", "restaurant-cancel"]
|
|
31577
31611
|
]);
|
|
31578
31612
|
function expandToolSetsAdditive(matchedNames, availableNames, scores, toolSets, activeSetNames) {
|
|
31579
31613
|
const result = new Set(matchedNames);
|
|
@@ -31713,6 +31747,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
31713
31747
|
"OpenMeteoMCP-elevation"
|
|
31714
31748
|
],
|
|
31715
31749
|
anchorMinSimilarity: 0.5
|
|
31750
|
+
},
|
|
31751
|
+
{
|
|
31752
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
31753
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
31754
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
31755
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
31756
|
+
name: "restaurant-cancel-lookup",
|
|
31757
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
31758
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
31759
|
+
anchorMinSimilarity: 0.5
|
|
31716
31760
|
}
|
|
31717
31761
|
];
|
|
31718
31762
|
var defaultServerToolsFilter = createServerToolsFilter({
|
package/dist/tools/index.cjs
CHANGED
|
@@ -847,7 +847,7 @@ var CONFIRM_TOOL_NAME = "prompt_user_confirm";
|
|
|
847
847
|
function createConfirmTool(options) {
|
|
848
848
|
return createInteractiveTool(options, {
|
|
849
849
|
name: CONFIRM_TOOL_NAME,
|
|
850
|
-
description: "Ask the user to approve a specific action before it happens. Use before anything that spends money or is hard to undo, such as booking a restaurant table or placing an order. List every parameter of the action, with the exact values you are about to use \u2014 the user approves what this card shows, and nothing else. Returns whether they confirmed. Do not use for ordinary yes/no questions; use prompt_user_choice for those.",
|
|
850
|
+
description: "Ask the user to approve a specific action before it happens. Use before anything that spends money or is hard to undo, such as booking or cancelling a restaurant table, or placing an order. List every parameter of the action, with the exact values you are about to use \u2014 the user approves what this card shows, and nothing else. Returns whether they confirmed. Do not use for ordinary yes/no questions; use prompt_user_choice for those.",
|
|
851
851
|
parameters: {
|
|
852
852
|
type: "object",
|
|
853
853
|
properties: {
|
package/dist/tools/index.mjs
CHANGED
|
@@ -691,7 +691,7 @@ var CONFIRM_TOOL_NAME = "prompt_user_confirm";
|
|
|
691
691
|
function createConfirmTool(options) {
|
|
692
692
|
return createInteractiveTool(options, {
|
|
693
693
|
name: CONFIRM_TOOL_NAME,
|
|
694
|
-
description: "Ask the user to approve a specific action before it happens. Use before anything that spends money or is hard to undo, such as booking a restaurant table or placing an order. List every parameter of the action, with the exact values you are about to use \u2014 the user approves what this card shows, and nothing else. Returns whether they confirmed. Do not use for ordinary yes/no questions; use prompt_user_choice for those.",
|
|
694
|
+
description: "Ask the user to approve a specific action before it happens. Use before anything that spends money or is hard to undo, such as booking or cancelling a restaurant table, or placing an order. List every parameter of the action, with the exact values you are about to use \u2014 the user approves what this card shows, and nothing else. Returns whether they confirmed. Do not use for ordinary yes/no questions; use prompt_user_choice for those.",
|
|
695
695
|
parameters: {
|
|
696
696
|
type: "object",
|
|
697
697
|
properties: {
|
|
@@ -1997,20 +1997,51 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
1997
1997
|
},
|
|
1998
1998
|
{
|
|
1999
1999
|
// Server tools, so this set does its work through
|
|
2000
|
-
// withActiveToolSetServerTools: once
|
|
2001
|
-
// follow-ups ("okay", "same as before") keep
|
|
2002
|
-
//
|
|
2000
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
2001
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
2002
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
2003
|
+
// request on its own description.
|
|
2003
2004
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
2004
2005
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
2005
2006
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
2006
2007
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
2007
2008
|
name: "restaurant-booking",
|
|
2009
|
+
members: [
|
|
2010
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
2011
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
2012
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
2013
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
2014
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
2015
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
2016
|
+
],
|
|
2017
|
+
anchors: []
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
2021
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
2022
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
2023
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
2024
|
+
name: "restaurant-book",
|
|
2008
2025
|
members: [
|
|
2009
2026
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
2010
2027
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
2011
2028
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
2012
2029
|
],
|
|
2013
2030
|
anchors: []
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
2034
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
2035
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
2036
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
2037
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
2038
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
2039
|
+
name: "restaurant-cancel",
|
|
2040
|
+
members: [
|
|
2041
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
2042
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
2043
|
+
],
|
|
2044
|
+
anchors: []
|
|
2014
2045
|
}
|
|
2015
2046
|
];
|
|
2016
2047
|
function applyToolSets(matchedNames, availableNames, scores, toolSets = BUILT_IN_TOOL_SETS, independentThreshold = 0.65) {
|
|
@@ -2180,6 +2211,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
2180
2211
|
"OpenMeteoMCP-elevation"
|
|
2181
2212
|
],
|
|
2182
2213
|
anchorMinSimilarity: 0.5
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
2217
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
2218
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
2219
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
2220
|
+
name: "restaurant-cancel-lookup",
|
|
2221
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
2222
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
2223
|
+
anchorMinSimilarity: 0.5
|
|
2183
2224
|
}
|
|
2184
2225
|
];
|
|
2185
2226
|
var defaultServerToolsFilter = createServerToolsFilter({
|
|
@@ -1875,20 +1875,51 @@ var BUILT_IN_TOOL_SETS = [
|
|
|
1875
1875
|
},
|
|
1876
1876
|
{
|
|
1877
1877
|
// Server tools, so this set does its work through
|
|
1878
|
-
// withActiveToolSetServerTools: once
|
|
1879
|
-
// follow-ups ("okay", "same as before") keep
|
|
1880
|
-
//
|
|
1878
|
+
// withActiveToolSetServerTools: once any restaurant tool has run, terse
|
|
1879
|
+
// follow-ups ("okay", "same as before", "cancel it") keep every restaurant
|
|
1880
|
+
// tool — discovery, booking and cancelling. Each tool still reaches a fresh
|
|
1881
|
+
// request on its own description.
|
|
1881
1882
|
// Anchors are deliberately empty (like the client's Nearby set): the set
|
|
1882
1883
|
// is only for stickiness, not a new way to activate on a prompt.
|
|
1883
1884
|
// prompt_user_confirm is left out of members: autoFilterClientTools always
|
|
1884
1885
|
// sends it, and as a member any unrelated confirmation would pin this set.
|
|
1885
1886
|
name: "restaurant-booking",
|
|
1887
|
+
members: [
|
|
1888
|
+
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
1889
|
+
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
1890
|
+
"AnumaPaymentsMCP-anuma_book_restaurant",
|
|
1891
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
1892
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation",
|
|
1893
|
+
"AnumaPaymentsMCP-anuma_discover_restaurants"
|
|
1894
|
+
],
|
|
1895
|
+
anchors: []
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
// What a confirmed booking card narrows the rest of the turn to (see
|
|
1899
|
+
// CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
|
|
1900
|
+
// discovery and cancel tools that restaurant-booking keeps sticky.
|
|
1901
|
+
// Anchors are empty for the same reason as restaurant-cancel below.
|
|
1902
|
+
name: "restaurant-book",
|
|
1886
1903
|
members: [
|
|
1887
1904
|
"AnumaPaymentsMCP-anuma_find_restaurant",
|
|
1888
1905
|
"AnumaPaymentsMCP-anuma_check_restaurant_availability",
|
|
1889
1906
|
"AnumaPaymentsMCP-anuma_book_restaurant"
|
|
1890
1907
|
],
|
|
1891
1908
|
anchors: []
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
// What a confirmed cancel card narrows the rest of the turn to (see
|
|
1912
|
+
// CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
|
|
1913
|
+
// restaurant-booking: anchors here are scored against client tools only,
|
|
1914
|
+
// so a server-tool anchor could never fire. The "cancel brings list"
|
|
1915
|
+
// edge on a fresh prompt is restaurant-cancel-lookup in
|
|
1916
|
+
// SERVER_TOOL_DEPENDENCY_SETS.
|
|
1917
|
+
name: "restaurant-cancel",
|
|
1918
|
+
members: [
|
|
1919
|
+
"AnumaPaymentsMCP-anuma_list_reservations",
|
|
1920
|
+
"AnumaPaymentsMCP-anuma_cancel_reservation"
|
|
1921
|
+
],
|
|
1922
|
+
anchors: []
|
|
1892
1923
|
}
|
|
1893
1924
|
];
|
|
1894
1925
|
function applyToolSets(matchedNames, availableNames, scores, toolSets = BUILT_IN_TOOL_SETS, independentThreshold = 0.65) {
|
|
@@ -2058,6 +2089,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
|
|
|
2058
2089
|
"OpenMeteoMCP-elevation"
|
|
2059
2090
|
],
|
|
2060
2091
|
anchorMinSimilarity: 0.5
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
// The cancel tool takes its resy_token and the other values only from a
|
|
2095
|
+
// live anuma_list_reservations result in the same turn, never from
|
|
2096
|
+
// memory, so the list tool must ride in whenever cancel is offered.
|
|
2097
|
+
// Members hold only the dependency, like openmeteo-geocode.
|
|
2098
|
+
name: "restaurant-cancel-lookup",
|
|
2099
|
+
members: ["AnumaPaymentsMCP-anuma_list_reservations"],
|
|
2100
|
+
anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
|
|
2101
|
+
anchorMinSimilarity: 0.5
|
|
2061
2102
|
}
|
|
2062
2103
|
];
|
|
2063
2104
|
var defaultServerToolsFilter = createServerToolsFilter({
|