Skip to content

Commit 981c254

Browse files
committed
improvement(search-mcp): steer involving to emails and activity questions
1 parent edcfadd commit 981c254

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/sim/lib/api/contracts/knowledge/mcp.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const liveSearchMcpSchema = searchWorkspaceInputFieldsSchema
5959
involving: liveSearchInvolvingSchema
6060
.optional()
6161
.describe(
62-
'Only items this person took part in: "me" (you) or a colleague\'s email. Each source applies its own meaning (sent, authored, owns, assigned, attended) and sources that cannot filter by person are skipped. Use for activity questions such as what someone worked on or what is assigned to them; with an empty query and a date range it lists that person\'s activity.'
62+
'Only items this person acted on: "me" (you) or a colleague\'s email address, never a name. Each source applies its own meaning (sent, authored, owns, assigned, attended; your own mail means mail you sent) and skips sources that cannot filter by person. Use it for what someone did or is assigned, not for your exchanges with others, which it would cut to one side; with an empty query and a date range it lists that person\'s activity.'
6363
),
6464
topK: searchWorkspaceInputFieldsSchema.shape.topK
6565
.unwrap()

‎apps/sim/lib/api/contracts/knowledge/search.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ export const liveSearchInvolvingSchema = z
191191
.string()
192192
.transform(normalizeEmail)
193193
.refine((value) => value === 'me' || isValidEmailSyntax(value), {
194-
message: 'involving must be "me" or an email address.',
194+
message:
195+
'involving takes "me" or an email address, not a name. Find the person\'s email first, or search without involving.',
195196
})
196197

197198
/** Chunks a search asks for at first paint, and once the reader asks for more; both within `topK`'s bound. */

0 commit comments

Comments
 (0)