@@ -37,14 +37,14 @@ export const emailVerifyTool: ToolConfig<PresendEmailVerifyParams, PresendEmailV
3737 success : true ,
3838 output : {
3939 email : data ?. email ?? '' ,
40- valid : data ?. valid ?? false ,
40+ valid : data ?. valid ?? null ,
4141 syntaxValid : data ?. syntax_valid ?? false ,
4242 domain : data ?. domain ?? '' ,
43- mxFound : data ?. has_mx ?? false ,
43+ mxFound : data ?. has_mx ?? null ,
4444 mxCount : data ?. mx_count ?? 0 ,
4545 disposable : data ?. disposable ?? false ,
4646 roleAccount : data ?. role_account ?? false ,
47- reason : data ?. reason ?? '' ,
47+ reason : data ?. reason ?? null ,
4848 } ,
4949 }
5050 } ,
@@ -56,7 +56,9 @@ export const emailVerifyTool: ToolConfig<PresendEmailVerifyParams, PresendEmailV
5656 } ,
5757 valid : {
5858 type : 'boolean' ,
59- description : 'Whether the email address is valid overall' ,
59+ description :
60+ 'Whether the email address is valid overall. Null if it could not be checked (e.g. MX lookup failed); retry later' ,
61+ nullable : true ,
6062 } ,
6163 syntaxValid : {
6264 type : 'boolean' ,
@@ -68,7 +70,9 @@ export const emailVerifyTool: ToolConfig<PresendEmailVerifyParams, PresendEmailV
6870 } ,
6971 mxFound : {
7072 type : 'boolean' ,
71- description : "Whether the domain's MX records were found" ,
73+ description :
74+ "Whether the domain's MX records were found. Null if the MX lookup itself failed" ,
75+ nullable : true ,
7276 } ,
7377 mxCount : {
7478 type : 'number' ,
@@ -84,7 +88,9 @@ export const emailVerifyTool: ToolConfig<PresendEmailVerifyParams, PresendEmailV
8488 } ,
8589 reason : {
8690 type : 'string' ,
87- description : 'Explanation when the address is invalid, otherwise null' ,
91+ description :
92+ 'Why the address is not valid: invalid_syntax, no_mx_record, disposable_domain, or mx_lookup_failed. Null when the address is valid' ,
93+ nullable : true ,
8894 } ,
8995 } ,
9096}
0 commit comments