Skip to content

Commit dc3bbd8

Browse files
committed
improvement(search-mcp): say the logged-key cap applies per schema issue
1 parent 3049529 commit dc3bbd8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/sim/lib/knowledge/mcp/tool-arguments.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ export function repairToolCallMessage(message: Record<string, unknown>) {
8787
return { message: { ...message, params: { ...call, arguments: args } }, repairs: [...repairs] }
8888
}
8989

90-
/** Unrecognized field names a rejection records, each cut short, so a log line stays bounded. */
90+
/**
91+
* Unrecognized field names logged per schema issue, each cut short. The schema caps native queries
92+
* at nine, so a rejection's log line stays bounded.
93+
*/
9194
const MAX_LOGGED_KEYS = 5
9295
const MAX_LOGGED_KEY_CHARACTERS = 64
9396

0 commit comments

Comments
 (0)