@sendinel/mcp-server 1.0.168 → 1.0.170

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.
@@ -2035,10 +2035,12 @@ Requirements: urgency without desperation, acknowledge the gap, one clear CTA, v
2035
2035
  else if (email)
2036
2036
  q = q.eq('email', email);
2037
2037
  else
2038
- return txt('Provide either contact_id or email.');
2038
+ return toolError({ error: 'Provide either contact_id or email.', code: 'validation_failed' });
2039
2039
  const { data, error } = await q.maybeSingle();
2040
2040
  if (error)
2041
2041
  return txt(`Error: ${dbToolError(error).error}`);
2042
+ if (!data)
2043
+ return toolError({ error: 'Subscriber not found', code: 'not_found' });
2042
2044
  return j(data);
2043
2045
  });
2044
2046
  server.registerTool('enrich_subscriber', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendinel/mcp-server",
3
- "version": "1.0.168",
3
+ "version": "1.0.170",
4
4
  "description": "AI-controlled email operations control plane for campaigns, contacts, segments, analytics, and multi-provider sending via MCP.",
5
5
  "mcpName": "ai.sendinel/mcp-server",
6
6
  "type": "module",