11import { describeAccuracyTests } from "./sdk/describeAccuracyTests.js" ;
22import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
3+ import { formatUntrustedData } from "../../src/tools/tool.js" ;
34
45describeAccuracyTests ( [
56 {
@@ -8,7 +9,7 @@ describeAccuracyTests([
89 {
910 toolName : "atlas-local-connect-deployment" ,
1011 parameters : {
11- deploymentIdOrName : "my-database" ,
12+ deploymentName : "my-database" ,
1213 } ,
1314 } ,
1415 ] ,
@@ -19,7 +20,7 @@ describeAccuracyTests([
1920 {
2021 toolName : "atlas-local-connect-deployment" ,
2122 parameters : {
22- deploymentIdOrName : "my-instance" ,
23+ deploymentName : "my-instance" ,
2324 } ,
2425 } ,
2526 ] ,
@@ -28,13 +29,10 @@ describeAccuracyTests([
2829 prompt : "If and only if, the local MongoDB deployment 'local-mflix' exists, then connect to it" ,
2930 mockedTools : {
3031 "atlas-local-list-deployments" : ( ) : CallToolResult => ( {
31- content : [
32- { type : "text" , text : "Found 1 deployment:" } ,
33- {
34- type : "text" ,
35- text : "Deployment Name | State | MongoDB Version\n----------------|----------------|----------------\nlocal-mflix | Running | 6.0" ,
36- } ,
37- ] ,
32+ content : formatUntrustedData (
33+ "Found 1 deployments" ,
34+ '[{"name":"local-mflix","state":"Running","mongodbVersion":"6.0"}]'
35+ ) ,
3836 } ) ,
3937 } ,
4038 expectedToolCalls : [
@@ -45,7 +43,7 @@ describeAccuracyTests([
4543 {
4644 toolName : "atlas-local-connect-deployment" ,
4745 parameters : {
48- deploymentIdOrName : "local-mflix" ,
46+ deploymentName : "local-mflix" ,
4947 } ,
5048 } ,
5149 ] ,
@@ -62,7 +60,7 @@ describeAccuracyTests([
6260 {
6361 toolName : "atlas-local-connect-deployment" ,
6462 parameters : {
65- deploymentIdOrName : "local-mflix" ,
63+ deploymentName : "local-mflix" ,
6664 } ,
6765 } ,
6866 ] ,
0 commit comments