@talonic/mcp 0.1.37 → 0.1.38
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.
- package/dist/http-server.js +17 -3
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/server.js +17 -3
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/http-server.js
CHANGED
|
@@ -361,7 +361,8 @@ var DESCRIPTION2 = [
|
|
|
361
361
|
"- is_not_empty: presence check, no value needed. Returns documents where the field has a materialized value. Results reflect data within seconds of extraction completing.",
|
|
362
362
|
"",
|
|
363
363
|
"SCHEMA TYPING:",
|
|
364
|
-
"- Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only resolve correctly when the schema field is typed as `number`. A field typed as `string` that holds numeric content (e.g. '\u20AC1,500.00') will silently return zero matches even after extraction. Pick the right type at schema design time.
|
|
364
|
+
"- Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only resolve correctly when the schema field is typed as `number`. A field typed as `string` that holds numeric content (e.g. '\u20AC1,500.00') will silently return zero matches even after extraction. Pick the right type at schema design time.",
|
|
365
|
+
"- If the response contains a `warnings` array, surface its `message` (and `suggestion`, if present) to the user verbatim \u2014 these explain *why* a query returned zero or unexpected results and typically suggest a schema-design change (e.g. switching a field's `data_type` from `string` to `number`) that will make subsequent filter calls work correctly. Do not silently retry without flagging the warning.",
|
|
365
366
|
"",
|
|
366
367
|
"TIPS:",
|
|
367
368
|
"- To discover available field names, call talonic_search first with a related query.",
|
|
@@ -420,7 +421,20 @@ var outputSchema2 = {
|
|
|
420
421
|
limit: z.number().optional(),
|
|
421
422
|
has_more: z.boolean().optional(),
|
|
422
423
|
next_cursor: z.string().nullable().optional()
|
|
423
|
-
}).optional().describe("Cursor-based pagination metadata.")
|
|
424
|
+
}).optional().describe("Cursor-based pagination metadata."),
|
|
425
|
+
warnings: z.array(
|
|
426
|
+
z.object({
|
|
427
|
+
code: z.string().optional().describe("Machine-readable warning code."),
|
|
428
|
+
message: z.string().optional().describe("Human-readable warning message."),
|
|
429
|
+
field: z.string().optional().describe("Canonical name of the field this warning applies to."),
|
|
430
|
+
field_id: z.string().optional().describe("UUID of the field this warning applies to."),
|
|
431
|
+
suggestion: z.string().optional().describe(
|
|
432
|
+
"Suggested mitigation, e.g. a recommended `data_type` change to make the query resolve correctly."
|
|
433
|
+
)
|
|
434
|
+
}).passthrough()
|
|
435
|
+
).optional().describe(
|
|
436
|
+
"API warnings surfaced by the Talonic filter endpoint. Most commonly raised when a numeric operator is applied to a string-typed field, in which case the warning explains the lexicographic-comparison trap and suggests a schema-design change. Agents should surface these to the user rather than silently retrying."
|
|
437
|
+
)
|
|
424
438
|
};
|
|
425
439
|
async function handleFilter(talonic, args) {
|
|
426
440
|
try {
|
|
@@ -984,7 +998,7 @@ function registerToMarkdown(server, getTalonic) {
|
|
|
984
998
|
|
|
985
999
|
// package.json
|
|
986
1000
|
var package_default = {
|
|
987
|
-
version: "0.1.
|
|
1001
|
+
version: "0.1.38"};
|
|
988
1002
|
|
|
989
1003
|
// src/version.ts
|
|
990
1004
|
var VERSION = package_default.version;
|