The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
test(mcp): snapshot database tool input schemas from tools/list (#27161)
Charles Bochet2fedea0fa394
diff --git a/packages/twenty-server/test/integration/ai/suites/__snapshots__/mcp-database-tool-input-schemas.integration-spec.ts.snap b/packages/twenty-server/test/integration/ai/suites/__snapshots__/mcp-database-tool-input-schemas.integration-spec.ts.snapnew file mode 100644index 00000000000..dcc1a83a309--- /dev/null+++ b/packages/twenty-server/test/integration/ai/suites/__snapshots__/mcp-database-tool-input-schemas.integration-spec.ts.snap@@ -0,0 +1,9512 @@+// Jest Snapshot v1, https://goo.gl/fbAQLP++exports[`MCP database tool input schemas should list the input schemas of the note database tools: create_many_notes 1`] = `+{+ "properties": {+ "records": {+ "description": "Array of records to create. Each record should contain the required fields. Maximum 20 records per call.",+ "items": {+ "properties": {+ "bodyV2": {+ "description": "Note body",+ "properties": {+ "blocknote": {+ "type": "string",+ },+ "markdown": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "title": {+ "description": "Note title",+ "type": "string",+ },+ },+ "required": [+ "position",+ ],+ "type": "object",+ },+ "maxItems": 20,+ "minItems": 1,+ "type": "array",+ },+ },+ "required": [+ "records",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: create_one_note 1`] = `+{+ "properties": {+ "bodyV2": {+ "description": "Note body",+ "properties": {+ "blocknote": {+ "type": "string",+ },+ "markdown": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "title": {+ "description": "Note title",+ "type": "string",+ },+ },+ "required": [+ "position",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: delete_many_notes 1`] = `+{+ "properties": {+ "filter": {+ "$ref": "RecordFilter",+ "description": "Filter to select which records to delete. Supports field-level filters and logical operators (or, and, not). WARNING: A broad filter may delete many records at once. Always verify the filter scope with a find query first.",+ },+ },+ "required": [+ "filter",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: delete_one_note 1`] = `+{+ "properties": {+ "id": {+ "description": "The unique UUID of the record to delete",+ "format": "uuid",+ "type": "string",+ },+ },+ "required": [+ "id",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: find_many_notes 1`] = `+{+ "properties": {+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "bodyV2": {+ "properties": {+ "markdown": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "limit": {+ "default": 10,+ "description": "Maximum number of records to return (default: 10, max: 100). Start small and increase only if needed.",+ "exclusiveMinimum": 0,+ "type": "integer",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "offset": {+ "default": 0,+ "description": "Number of records to skip (default: 0)",+ "type": "integer",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "orderBy": {+ "description": "Array of sort criteria, one field per item. Use "DescNullsLast" for descending (top/largest), "AscNullsFirst" for ascending (bottom/smallest).",+ "items": {+ "additionalProperties": false,+ "description": "Object with exactly ONE property. Scalar fields take a direction string; composite fields take an object with one sub-field. Never use dot-notation keys.",+ "properties": {+ "bodyV2": {+ "additionalProperties": false,+ "properties": {+ "blocknote": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "markdown": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "createdAt": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "id": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "position": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "title": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "updatedAt": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "updatedBy": {+ "additionalProperties": false,+ "properties": {+ "context": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "name": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "source": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "workspaceMemberId": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "type": "array",+ },+ "select": {+ "description": "Fields to include in the response. Required. Use '*' to return all fields, or list specific field names. Relation fields resolve to related records as {id, label} summaries: MANY_TO_ONE returns a single object (or select the '<name>Id' FK column for just the id), ONE_TO_MANY returns up to 60 related records. For more fields or more records, query the related object directly. ",+ "items": {+ "type": "string",+ },+ "minItems": 1,+ "type": "array",+ },+ "title": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "select",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: find_one_note 1`] = `+{+ "properties": {+ "id": {+ "description": "The unique UUID of the record to retrieve",+ "format": "uuid",+ "type": "string",+ },+ "select": {+ "description": "Fields to include in the response. Required. Use '*' to return all fields. Relation fields resolve to related records as {id, label} summaries: MANY_TO_ONE returns a single object (or select the <name>Id FK column for just the id), ONE_TO_MANY returns up to 60 related records.",+ "items": {+ "type": "string",+ },+ "minItems": 1,+ "type": "array",+ },+ },+ "required": [+ "id",+ "select",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: group_by_notes 1`] = `+{+ "additionalProperties": false,+ "properties": {+ "aggregateFieldName": {+ "description": "Field to aggregate. Required for any operation other than COUNT. Available fields: id, createdAt, updatedAt, deletedAt, position, title, bodyV2, createdBy, updatedBy, searchVector.",+ "type": "string",+ },+ "aggregateOperation": {+ "default": "COUNT",+ "description": "Aggregate operation to apply per group. Default: COUNT. Any operation other than COUNT requires aggregateFieldName.",+ "enum": [+ "MIN",+ "MAX",+ "AVG",+ "SUM",+ "COUNT",+ "COUNT_UNIQUE_VALUES",+ "COUNT_EMPTY",+ "COUNT_NOT_EMPTY",+ "COUNT_TRUE",+ "COUNT_FALSE",+ "PERCENTAGE_EMPTY",+ "PERCENTAGE_NOT_EMPTY",+ ],+ "type": "string",+ },+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "bodyV2": {+ "properties": {+ "markdown": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "groupBy": {+ "description": "Fields to group by (max 2). Each entry must be an object with exactly one field key. At most one entry can use unnest. A record with several values is counted in each group, so totals can exceed the record count. Examples: {"status": true}, {"companyId": true}, {"createdAt": {"granularity": "MONTH", "timeZone": "UTC"}}. Available: createdAt (date), updatedAt (date), title, bodyV2.blocknote, bodyV2.markdown.",+ "items": {+ "anyOf": [+ {+ "additionalProperties": false,+ "properties": {+ "createdAt": {+ "additionalProperties": false,+ "description": "Date field grouping configuration",+ "properties": {+ "granularity": {+ "default": "MONTH",+ "description": "Date grouping granularity. Default: MONTH.",+ "enum": [+ "DAY",+ "MONTH",+ "QUARTER",+ "YEAR",+ "WEEK",+ "DAY_OF_THE_WEEK",+ "MONTH_OF_THE_YEAR",+ "QUARTER_OF_THE_YEAR",+ ],+ "type": "string",+ },+ "timeZone": {+ "default": "UTC",+ "description": "IANA timezone for date groupings (e.g. "America/New_York"). Default: UTC.",+ "type": "string",+ },+ "weekStartDay": {+ "description": "First day of week (MONDAY, SUNDAY, SATURDAY). Only used when granularity is WEEK.",+ "enum": [+ "MONDAY",+ "SUNDAY",+ "SATURDAY",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "createdAt",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "updatedAt": {+ "additionalProperties": false,+ "description": "Date field grouping configuration",+ "properties": {+ "granularity": {+ "default": "MONTH",+ "description": "Date grouping granularity. Default: MONTH.",+ "enum": [+ "DAY",+ "MONTH",+ "QUARTER",+ "YEAR",+ "WEEK",+ "DAY_OF_THE_WEEK",+ "MONTH_OF_THE_YEAR",+ "QUARTER_OF_THE_YEAR",+ ],+ "type": "string",+ },+ "timeZone": {+ "default": "UTC",+ "description": "IANA timezone for date groupings (e.g. "America/New_York"). Default: UTC.",+ "type": "string",+ },+ "weekStartDay": {+ "description": "First day of week (MONDAY, SUNDAY, SATURDAY). Only used when granularity is WEEK.",+ "enum": [+ "MONDAY",+ "SUNDAY",+ "SATURDAY",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "updatedAt",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "title": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "title",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "bodyV2": {+ "additionalProperties": false,+ "properties": {+ "blocknote": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "blocknote",+ ],+ "type": "object",+ },+ },+ "required": [+ "bodyV2",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "bodyV2": {+ "additionalProperties": false,+ "properties": {+ "markdown": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "markdown",+ ],+ "type": "object",+ },+ },+ "required": [+ "bodyV2",+ ],+ "type": "object",+ },+ ],+ },+ "maxItems": 2,+ "minItems": 1,+ "type": "array",+ },+ "limit": {+ "default": 50,+ "description": "Maximum number of groups to return (default: 50, max: 100).",+ "exclusiveMinimum": 0,+ "type": "integer",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "orderBy": {+ "default": "DESC",+ "description": "Order groups by aggregate value. DESC (default) gives "top N" behavior.",+ "enum": [+ "ASC",+ "DESC",+ ],+ "type": "string",+ },+ "title": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "groupBy",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: record filter 1`] = `+{+ "properties": {+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "bodyV2": {+ "properties": {+ "markdown": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "title": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: update_many record filter 1`] = `+{+ "properties": {+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "bodyV2": {+ "properties": {+ "markdown": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "title": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: update_many_notes 1`] = `+{+ "properties": {+ "data": {+ "description": "The field values to apply to all matching records. Only include fields you want to change.",+ "properties": {+ "bodyV2": {+ "description": "Note body",+ "properties": {+ "blocknote": {+ "type": "string",+ },+ "markdown": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "title": {+ "description": "Note title",+ "type": "string",+ },+ },+ "type": "object",+ },+ "filter": {+ "$ref": "RecordFilter",+ "description": "Filter to select which records to update. Supports field-level filters and logical operators (or, and, not). WARNING: A broad filter may update many records at once. Always verify the filter scope with a find query first.",+ },+ },+ "required": [+ "filter",+ "data",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: update_one_note 1`] = `+{+ "properties": {+ "bodyV2": {+ "description": "Note body",+ "properties": {+ "blocknote": {+ "type": "string",+ },+ "markdown": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "id": {+ "format": "uuid",+ "type": "string",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "title": {+ "description": "Note title",+ "type": "string",+ },+ },+ "required": [+ "id",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the note database tools: upsert_many_notes 1`] = `+{+ "properties": {+ "records": {+ "description": "Array of records to create. Each record should contain the required fields. Maximum 20 records per call.",+ "items": {+ "properties": {+ "bodyV2": {+ "description": "Note body",+ "properties": {+ "blocknote": {+ "type": "string",+ },+ "markdown": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "title": {+ "description": "Note title",+ "type": "string",+ },+ },+ "required": [+ "position",+ ],+ "type": "object",+ },+ "maxItems": 20,+ "minItems": 1,+ "type": "array",+ },+ },+ "required": [+ "records",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: create_many_pets 1`] = `+{+ "properties": {+ "records": {+ "description": "Array of records to create. Each record should contain the required fields. Maximum 20 records per call.",+ "items": {+ "properties": {+ "age": {+ "type": "integer",+ },+ "averageCostOfKibblePerMonth": {+ "properties": {+ "amountMicros": {+ "description": "Currency amount in micros (1 unit = 1,000,000 micros). Multiply the user-provided amount by 1,000,000 before writing.",+ "type": "number",+ },+ "currencyCode": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "bio": {+ "type": "string",+ },+ "birthday": {+ "format": "date",+ "type": "string",+ },+ "comments": {+ "type": "string",+ },+ "extraData": {+ "additionalProperties": {},+ "propertyNames": {+ "type": "string",+ },+ "type": "object",+ },+ "interestingFacts": {+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "isGoodWithKids": {+ "type": "boolean",+ },+ "location": {+ "properties": {+ "addressCity": {+ "type": "string",+ },+ "addressCountry": {+ "type": "string",+ },+ "addressLat": {+ "type": "number",+ },+ "addressLng": {+ "type": "number",+ },+ "addressPostcode": {+ "type": "string",+ },+ "addressState": {+ "type": "string",+ },+ "addressStreet1": {+ "type": "string",+ },+ "addressStreet2": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "properties": {+ "firstName": {+ "type": "string",+ },+ "lastName": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "pictures": {+ "properties": {+ "primaryLinkLabel": {+ "type": "string",+ },+ "primaryLinkUrl": {+ "format": "uri",+ "type": "string",+ },+ "secondaryLinks": {+ "items": {+ "properties": {+ "label": {+ "type": "string",+ },+ "url": {+ "format": "uri",+ "type": "string",+ },+ },+ "required": [+ "url",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "format": "uuid",+ "type": "string",+ },+ "polymorphicOwnerSurveyResultId": {+ "format": "uuid",+ "type": "string",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "soundSwag": {+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "species": {+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "traits": {+ "items": {+ "enum": [+ "PLAYFUL",+ "FRIENDLY",+ "PROTECTIVE",+ "SHY",+ "BRAVE",+ "CURIOUS",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "vetEmail": {+ "properties": {+ "additionalEmails": {+ "items": {+ "format": "email",+ "type": "string",+ },+ "type": "array",+ },+ "primaryEmail": {+ "format": "email",+ "type": "string",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "properties": {+ "additionalPhones": {+ "items": {+ "properties": {+ "callingCode": {+ "type": "string",+ },+ "countryCode": {+ "type": "string",+ },+ "number": {+ "type": "string",+ },+ },+ "required": [+ "number",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "primaryPhoneCallingCode": {+ "type": "string",+ },+ "primaryPhoneCountryCode": {+ "type": "string",+ },+ "primaryPhoneNumber": {+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "position",+ ],+ "type": "object",+ },+ "maxItems": 20,+ "minItems": 1,+ "type": "array",+ },+ },+ "required": [+ "records",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: create_one_pet 1`] = `+{+ "properties": {+ "age": {+ "type": "integer",+ },+ "averageCostOfKibblePerMonth": {+ "properties": {+ "amountMicros": {+ "description": "Currency amount in micros (1 unit = 1,000,000 micros). Multiply the user-provided amount by 1,000,000 before writing.",+ "type": "number",+ },+ "currencyCode": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "bio": {+ "type": "string",+ },+ "birthday": {+ "format": "date",+ "type": "string",+ },+ "comments": {+ "type": "string",+ },+ "extraData": {+ "additionalProperties": {},+ "propertyNames": {+ "type": "string",+ },+ "type": "object",+ },+ "interestingFacts": {+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "isGoodWithKids": {+ "type": "boolean",+ },+ "location": {+ "properties": {+ "addressCity": {+ "type": "string",+ },+ "addressCountry": {+ "type": "string",+ },+ "addressLat": {+ "type": "number",+ },+ "addressLng": {+ "type": "number",+ },+ "addressPostcode": {+ "type": "string",+ },+ "addressState": {+ "type": "string",+ },+ "addressStreet1": {+ "type": "string",+ },+ "addressStreet2": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "properties": {+ "firstName": {+ "type": "string",+ },+ "lastName": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "pictures": {+ "properties": {+ "primaryLinkLabel": {+ "type": "string",+ },+ "primaryLinkUrl": {+ "format": "uri",+ "type": "string",+ },+ "secondaryLinks": {+ "items": {+ "properties": {+ "label": {+ "type": "string",+ },+ "url": {+ "format": "uri",+ "type": "string",+ },+ },+ "required": [+ "url",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "format": "uuid",+ "type": "string",+ },+ "polymorphicOwnerSurveyResultId": {+ "format": "uuid",+ "type": "string",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "soundSwag": {+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "species": {+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "traits": {+ "items": {+ "enum": [+ "PLAYFUL",+ "FRIENDLY",+ "PROTECTIVE",+ "SHY",+ "BRAVE",+ "CURIOUS",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "vetEmail": {+ "properties": {+ "additionalEmails": {+ "items": {+ "format": "email",+ "type": "string",+ },+ "type": "array",+ },+ "primaryEmail": {+ "format": "email",+ "type": "string",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "properties": {+ "additionalPhones": {+ "items": {+ "properties": {+ "callingCode": {+ "type": "string",+ },+ "countryCode": {+ "type": "string",+ },+ "number": {+ "type": "string",+ },+ },+ "required": [+ "number",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "primaryPhoneCallingCode": {+ "type": "string",+ },+ "primaryPhoneCountryCode": {+ "type": "string",+ },+ "primaryPhoneNumber": {+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "position",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: delete_many_pets 1`] = `+{+ "properties": {+ "filter": {+ "$ref": "RecordFilter",+ "description": "Filter to select which records to delete. Supports field-level filters and logical operators (or, and, not). WARNING: A broad filter may delete many records at once. Always verify the filter scope with a find query first.",+ },+ },+ "required": [+ "filter",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: delete_one_pet 1`] = `+{+ "properties": {+ "id": {+ "description": "The unique UUID of the record to delete",+ "format": "uuid",+ "type": "string",+ },+ },+ "required": [+ "id",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: find_many_pets 1`] = `+{+ "properties": {+ "age": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "averageCostOfKibblePerMonth": {+ "properties": {+ "amountMicros": {+ "description": "Currency amount in micros (1 unit = 1,000,000 micros). Multiply the user-provided amount by 1,000,000 to build this filter.",+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "currencyCode": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "bio": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "birthday": {+ "properties": {+ "eq": {+ "description": "Equals (ISO datetime)",+ "format": "date-time",+ "type": "string",+ },+ "gt": {+ "description": "> ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "gte": {+ "description": ">= ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "in": {+ "description": "In array (ISO datetimes)",+ "items": {+ "format": "date-time",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "< ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "lte": {+ "description": "<= ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "neq": {+ "description": "Not equals (ISO datetime)",+ "format": "date-time",+ "type": "string",+ },+ },+ "type": "object",+ },+ "comments": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "extraData": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "interestingFacts": {+ "properties": {+ "containsIlike": {+ "description": "Contains case-insensitive substring",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "isEmptyArray": {+ "description": "Is empty array",+ "type": "boolean",+ },+ },+ "type": "object",+ },+ "isGoodWithKids": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "boolean",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "limit": {+ "default": 10,+ "description": "Maximum number of records to return (default: 10, max: 100). Start small and increase only if needed.",+ "exclusiveMinimum": 0,+ "type": "integer",+ },+ "location": {+ "properties": {+ "addressCity": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "addressCountry": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "addressStreet1": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "properties": {+ "firstName": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "lastName": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "name": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "offset": {+ "default": 0,+ "description": "Number of records to skip (default: 0)",+ "type": "integer",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "orderBy": {+ "description": "Array of sort criteria, one field per item. Use "DescNullsLast" for descending (top/largest), "AscNullsFirst" for ascending (bottom/smallest).",+ "items": {+ "additionalProperties": false,+ "description": "Object with exactly ONE property. Scalar fields take a direction string; composite fields take an object with one sub-field. Never use dot-notation keys.",+ "properties": {+ "age": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "averageCostOfKibblePerMonth": {+ "additionalProperties": false,+ "properties": {+ "amountMicros": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "currencyCode": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "bio": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "birthday": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "comments": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "createdAt": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "extraData": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "id": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "interestingFacts": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "isGoodWithKids": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "location": {+ "additionalProperties": false,+ "properties": {+ "addressCity": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "addressCountry": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "addressLat": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "addressLng": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "addressPostcode": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "addressState": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "addressStreet1": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "addressStreet2": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "additionalProperties": false,+ "properties": {+ "firstName": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "lastName": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "name": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "pictures": {+ "additionalProperties": false,+ "properties": {+ "primaryLinkLabel": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "primaryLinkUrl": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "secondaryLinks": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "polymorphicOwnerSurveyResultId": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "position": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "soundSwag": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "species": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "traits": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "updatedAt": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "updatedBy": {+ "additionalProperties": false,+ "properties": {+ "context": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "name": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "source": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "workspaceMemberId": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "vetEmail": {+ "additionalProperties": false,+ "properties": {+ "additionalEmails": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "primaryEmail": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "additionalProperties": false,+ "properties": {+ "additionalPhones": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "primaryPhoneCallingCode": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "primaryPhoneCountryCode": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "primaryPhoneNumber": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "type": "array",+ },+ "pictures": {+ "properties": {+ "primaryLinkUrl": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uri",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uri",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerSurveyResultId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "select": {+ "description": "Fields to include in the response. Required. Use '*' to return all fields, or list specific field names. Relation fields resolve to related records as {id, label} summaries: MANY_TO_ONE returns a single object (or select the '<name>Id' FK column for just the id), ONE_TO_MANY returns up to 60 related records. For more fields or more records, query the related object directly. ",+ "items": {+ "type": "string",+ },+ "minItems": 1,+ "type": "array",+ },+ "soundSwag": {+ "properties": {+ "eq": {+ "description": "Equals",+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "species": {+ "properties": {+ "eq": {+ "description": "Equals",+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "traits": {+ "properties": {+ "in": {+ "description": "Contains any of these values",+ "items": {+ "enum": [+ "PLAYFUL",+ "FRIENDLY",+ "PROTECTIVE",+ "SHY",+ "BRAVE",+ "CURIOUS",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "isEmptyArray": {+ "description": "Is empty array",+ "type": "boolean",+ },+ },+ "type": "object",+ },+ "vetEmail": {+ "properties": {+ "primaryEmail": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "email",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "email",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "properties": {+ "primaryPhoneNumber": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "select",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: find_one_pet 1`] = `+{+ "properties": {+ "id": {+ "description": "The unique UUID of the record to retrieve",+ "format": "uuid",+ "type": "string",+ },+ "select": {+ "description": "Fields to include in the response. Required. Use '*' to return all fields. Relation fields resolve to related records as {id, label} summaries: MANY_TO_ONE returns a single object (or select the <name>Id FK column for just the id), ONE_TO_MANY returns up to 60 related records.",+ "items": {+ "type": "string",+ },+ "minItems": 1,+ "type": "array",+ },+ },+ "required": [+ "id",+ "select",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: group_by_pets 1`] = `+{+ "additionalProperties": false,+ "properties": {+ "age": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "aggregateFieldName": {+ "description": "Field to aggregate. Required for any operation other than COUNT. Available fields: name, id, createdAt, createdBy, deletedAt, position, updatedAt, updatedBy, searchVector, species, traits, comments, age, location, vetPhone, vetEmail, birthday, isGoodWithKids, pictures, averageCostOfKibblePerMonth, averageCostOfKibblePerMonth.amountMicros, makesOwnerThinkOf, soundSwag, bio, interestingFacts, extraData, polymorphicOwnerSurveyResult, polymorphicOwnerRocket, polymorphicHelperSurveyResults, polymorphicHelperRockets.",+ "type": "string",+ },+ "aggregateOperation": {+ "default": "COUNT",+ "description": "Aggregate operation to apply per group. Default: COUNT. Any operation other than COUNT requires aggregateFieldName.",+ "enum": [+ "MIN",+ "MAX",+ "AVG",+ "SUM",+ "COUNT",+ "COUNT_UNIQUE_VALUES",+ "COUNT_EMPTY",+ "COUNT_NOT_EMPTY",+ "COUNT_TRUE",+ "COUNT_FALSE",+ "PERCENTAGE_EMPTY",+ "PERCENTAGE_NOT_EMPTY",+ ],+ "type": "string",+ },+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "averageCostOfKibblePerMonth": {+ "properties": {+ "amountMicros": {+ "description": "Currency amount in micros (1 unit = 1,000,000 micros). Multiply the user-provided amount by 1,000,000 to build this filter.",+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "currencyCode": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "bio": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "birthday": {+ "properties": {+ "eq": {+ "description": "Equals (ISO datetime)",+ "format": "date-time",+ "type": "string",+ },+ "gt": {+ "description": "> ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "gte": {+ "description": ">= ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "in": {+ "description": "In array (ISO datetimes)",+ "items": {+ "format": "date-time",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "< ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "lte": {+ "description": "<= ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "neq": {+ "description": "Not equals (ISO datetime)",+ "format": "date-time",+ "type": "string",+ },+ },+ "type": "object",+ },+ "comments": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "extraData": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "groupBy": {+ "description": "Fields to group by (max 2). Each entry must be an object with exactly one field key. At most one entry can use unnest. A record with several values is counted in each group, so totals can exceed the record count. Examples: {"status": true}, {"companyId": true}, {"createdAt": {"granularity": "MONTH", "timeZone": "UTC"}}. Available: name, createdAt (date), updatedAt (date), species, traits (multi-value, {"traits": {"unnest": true}} counts each value), comments, age, location.addressStreet1, location.addressStreet2, location.addressCity, location.addressPostcode, location.addressState, location.addressCountry, location.addressLat, location.addressLng, vetPhone.primaryPhoneNumber, vetPhone.primaryPhoneCountryCode, vetPhone.primaryPhoneCallingCode, vetEmail.primaryEmail, birthday (date), isGoodWithKids, pictures.primaryLinkLabel, pictures.primaryLinkUrl, averageCostOfKibblePerMonth.amountMicros, averageCostOfKibblePerMonth.currencyCode, makesOwnerThinkOf.firstName, makesOwnerThinkOf.lastName, soundSwag, bio, interestingFacts (multi-value, {"interestingFacts": {"unnest": true}} counts each value), polymorphicOwnerSurveyResultId, polymorphicOwnerRocketId.",+ "items": {+ "anyOf": [+ {+ "additionalProperties": false,+ "properties": {+ "name": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "name",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "createdAt": {+ "additionalProperties": false,+ "description": "Date field grouping configuration",+ "properties": {+ "granularity": {+ "default": "MONTH",+ "description": "Date grouping granularity. Default: MONTH.",+ "enum": [+ "DAY",+ "MONTH",+ "QUARTER",+ "YEAR",+ "WEEK",+ "DAY_OF_THE_WEEK",+ "MONTH_OF_THE_YEAR",+ "QUARTER_OF_THE_YEAR",+ ],+ "type": "string",+ },+ "timeZone": {+ "default": "UTC",+ "description": "IANA timezone for date groupings (e.g. "America/New_York"). Default: UTC.",+ "type": "string",+ },+ "weekStartDay": {+ "description": "First day of week (MONDAY, SUNDAY, SATURDAY). Only used when granularity is WEEK.",+ "enum": [+ "MONDAY",+ "SUNDAY",+ "SATURDAY",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "createdAt",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "updatedAt": {+ "additionalProperties": false,+ "description": "Date field grouping configuration",+ "properties": {+ "granularity": {+ "default": "MONTH",+ "description": "Date grouping granularity. Default: MONTH.",+ "enum": [+ "DAY",+ "MONTH",+ "QUARTER",+ "YEAR",+ "WEEK",+ "DAY_OF_THE_WEEK",+ "MONTH_OF_THE_YEAR",+ "QUARTER_OF_THE_YEAR",+ ],+ "type": "string",+ },+ "timeZone": {+ "default": "UTC",+ "description": "IANA timezone for date groupings (e.g. "America/New_York"). Default: UTC.",+ "type": "string",+ },+ "weekStartDay": {+ "description": "First day of week (MONDAY, SUNDAY, SATURDAY). Only used when granularity is WEEK.",+ "enum": [+ "MONDAY",+ "SUNDAY",+ "SATURDAY",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "updatedAt",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "species": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "species",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "traits": {+ "anyOf": [+ {+ "const": true,+ "type": "boolean",+ },+ {+ "additionalProperties": false,+ "properties": {+ "unnest": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "unnest",+ ],+ "type": "object",+ },+ ],+ },+ },+ "required": [+ "traits",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "comments": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "comments",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "age": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "age",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "location": {+ "additionalProperties": false,+ "properties": {+ "addressStreet1": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "addressStreet1",+ ],+ "type": "object",+ },+ },+ "required": [+ "location",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "location": {+ "additionalProperties": false,+ "properties": {+ "addressStreet2": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "addressStreet2",+ ],+ "type": "object",+ },+ },+ "required": [+ "location",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "location": {+ "additionalProperties": false,+ "properties": {+ "addressCity": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "addressCity",+ ],+ "type": "object",+ },+ },+ "required": [+ "location",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "location": {+ "additionalProperties": false,+ "properties": {+ "addressPostcode": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "addressPostcode",+ ],+ "type": "object",+ },+ },+ "required": [+ "location",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "location": {+ "additionalProperties": false,+ "properties": {+ "addressState": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "addressState",+ ],+ "type": "object",+ },+ },+ "required": [+ "location",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "location": {+ "additionalProperties": false,+ "properties": {+ "addressCountry": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "addressCountry",+ ],+ "type": "object",+ },+ },+ "required": [+ "location",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "location": {+ "additionalProperties": false,+ "properties": {+ "addressLat": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "addressLat",+ ],+ "type": "object",+ },+ },+ "required": [+ "location",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "location": {+ "additionalProperties": false,+ "properties": {+ "addressLng": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "addressLng",+ ],+ "type": "object",+ },+ },+ "required": [+ "location",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "vetPhone": {+ "additionalProperties": false,+ "properties": {+ "primaryPhoneNumber": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "primaryPhoneNumber",+ ],+ "type": "object",+ },+ },+ "required": [+ "vetPhone",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "vetPhone": {+ "additionalProperties": false,+ "properties": {+ "primaryPhoneCountryCode": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "primaryPhoneCountryCode",+ ],+ "type": "object",+ },+ },+ "required": [+ "vetPhone",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "vetPhone": {+ "additionalProperties": false,+ "properties": {+ "primaryPhoneCallingCode": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "primaryPhoneCallingCode",+ ],+ "type": "object",+ },+ },+ "required": [+ "vetPhone",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "vetEmail": {+ "additionalProperties": false,+ "properties": {+ "primaryEmail": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "primaryEmail",+ ],+ "type": "object",+ },+ },+ "required": [+ "vetEmail",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "birthday": {+ "additionalProperties": false,+ "description": "Date field grouping configuration",+ "properties": {+ "granularity": {+ "default": "MONTH",+ "description": "Date grouping granularity. Default: MONTH.",+ "enum": [+ "DAY",+ "MONTH",+ "QUARTER",+ "YEAR",+ "WEEK",+ "DAY_OF_THE_WEEK",+ "MONTH_OF_THE_YEAR",+ "QUARTER_OF_THE_YEAR",+ ],+ "type": "string",+ },+ "timeZone": {+ "default": "UTC",+ "description": "IANA timezone for date groupings (e.g. "America/New_York"). Default: UTC.",+ "type": "string",+ },+ "weekStartDay": {+ "description": "First day of week (MONDAY, SUNDAY, SATURDAY). Only used when granularity is WEEK.",+ "enum": [+ "MONDAY",+ "SUNDAY",+ "SATURDAY",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "birthday",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "isGoodWithKids": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "isGoodWithKids",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "pictures": {+ "additionalProperties": false,+ "properties": {+ "primaryLinkLabel": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "primaryLinkLabel",+ ],+ "type": "object",+ },+ },+ "required": [+ "pictures",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "pictures": {+ "additionalProperties": false,+ "properties": {+ "primaryLinkUrl": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "primaryLinkUrl",+ ],+ "type": "object",+ },+ },+ "required": [+ "pictures",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "averageCostOfKibblePerMonth": {+ "additionalProperties": false,+ "properties": {+ "amountMicros": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "amountMicros",+ ],+ "type": "object",+ },+ },+ "required": [+ "averageCostOfKibblePerMonth",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "averageCostOfKibblePerMonth": {+ "additionalProperties": false,+ "properties": {+ "currencyCode": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "currencyCode",+ ],+ "type": "object",+ },+ },+ "required": [+ "averageCostOfKibblePerMonth",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "makesOwnerThinkOf": {+ "additionalProperties": false,+ "properties": {+ "firstName": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "firstName",+ ],+ "type": "object",+ },+ },+ "required": [+ "makesOwnerThinkOf",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "makesOwnerThinkOf": {+ "additionalProperties": false,+ "properties": {+ "lastName": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "lastName",+ ],+ "type": "object",+ },+ },+ "required": [+ "makesOwnerThinkOf",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "soundSwag": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "soundSwag",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "bio": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "bio",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "interestingFacts": {+ "anyOf": [+ {+ "const": true,+ "type": "boolean",+ },+ {+ "additionalProperties": false,+ "properties": {+ "unnest": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "unnest",+ ],+ "type": "object",+ },+ ],+ },+ },+ "required": [+ "interestingFacts",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "polymorphicOwnerSurveyResultId": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "polymorphicOwnerSurveyResultId",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "polymorphicOwnerRocketId": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "polymorphicOwnerRocketId",+ ],+ "type": "object",+ },+ ],+ },+ "maxItems": 2,+ "minItems": 1,+ "type": "array",+ },+ "interestingFacts": {+ "properties": {+ "containsIlike": {+ "description": "Contains case-insensitive substring",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "isEmptyArray": {+ "description": "Is empty array",+ "type": "boolean",+ },+ },+ "type": "object",+ },+ "isGoodWithKids": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "boolean",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "limit": {+ "default": 50,+ "description": "Maximum number of groups to return (default: 50, max: 100).",+ "exclusiveMinimum": 0,+ "type": "integer",+ },+ "location": {+ "properties": {+ "addressCity": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "addressCountry": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "addressStreet1": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "properties": {+ "firstName": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "lastName": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "name": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "orderBy": {+ "default": "DESC",+ "description": "Order groups by aggregate value. DESC (default) gives "top N" behavior.",+ "enum": [+ "ASC",+ "DESC",+ ],+ "type": "string",+ },+ "pictures": {+ "properties": {+ "primaryLinkUrl": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uri",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uri",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerSurveyResultId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "soundSwag": {+ "properties": {+ "eq": {+ "description": "Equals",+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "species": {+ "properties": {+ "eq": {+ "description": "Equals",+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "traits": {+ "properties": {+ "in": {+ "description": "Contains any of these values",+ "items": {+ "enum": [+ "PLAYFUL",+ "FRIENDLY",+ "PROTECTIVE",+ "SHY",+ "BRAVE",+ "CURIOUS",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "isEmptyArray": {+ "description": "Is empty array",+ "type": "boolean",+ },+ },+ "type": "object",+ },+ "vetEmail": {+ "properties": {+ "primaryEmail": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "email",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "email",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "properties": {+ "primaryPhoneNumber": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "groupBy",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: record filter 1`] = `+{+ "properties": {+ "age": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "averageCostOfKibblePerMonth": {+ "properties": {+ "amountMicros": {+ "description": "Currency amount in micros (1 unit = 1,000,000 micros). Multiply the user-provided amount by 1,000,000 to build this filter.",+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "currencyCode": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "bio": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "birthday": {+ "properties": {+ "eq": {+ "description": "Equals (ISO datetime)",+ "format": "date-time",+ "type": "string",+ },+ "gt": {+ "description": "> ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "gte": {+ "description": ">= ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "in": {+ "description": "In array (ISO datetimes)",+ "items": {+ "format": "date-time",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "< ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "lte": {+ "description": "<= ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "neq": {+ "description": "Not equals (ISO datetime)",+ "format": "date-time",+ "type": "string",+ },+ },+ "type": "object",+ },+ "comments": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "extraData": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "interestingFacts": {+ "properties": {+ "containsIlike": {+ "description": "Contains case-insensitive substring",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "isEmptyArray": {+ "description": "Is empty array",+ "type": "boolean",+ },+ },+ "type": "object",+ },+ "isGoodWithKids": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "boolean",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "location": {+ "properties": {+ "addressCity": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "addressCountry": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "addressStreet1": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "properties": {+ "firstName": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "lastName": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "name": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "pictures": {+ "properties": {+ "primaryLinkUrl": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uri",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uri",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerSurveyResultId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "soundSwag": {+ "properties": {+ "eq": {+ "description": "Equals",+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "species": {+ "properties": {+ "eq": {+ "description": "Equals",+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "traits": {+ "properties": {+ "in": {+ "description": "Contains any of these values",+ "items": {+ "enum": [+ "PLAYFUL",+ "FRIENDLY",+ "PROTECTIVE",+ "SHY",+ "BRAVE",+ "CURIOUS",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "isEmptyArray": {+ "description": "Is empty array",+ "type": "boolean",+ },+ },+ "type": "object",+ },+ "vetEmail": {+ "properties": {+ "primaryEmail": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "email",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "email",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "properties": {+ "primaryPhoneNumber": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: update_many record filter 1`] = `+{+ "properties": {+ "age": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "averageCostOfKibblePerMonth": {+ "properties": {+ "amountMicros": {+ "description": "Currency amount in micros (1 unit = 1,000,000 micros). Multiply the user-provided amount by 1,000,000 to build this filter.",+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "currencyCode": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "bio": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "birthday": {+ "properties": {+ "eq": {+ "description": "Equals (ISO datetime)",+ "format": "date-time",+ "type": "string",+ },+ "gt": {+ "description": "> ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "gte": {+ "description": ">= ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "in": {+ "description": "In array (ISO datetimes)",+ "items": {+ "format": "date-time",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "< ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "lte": {+ "description": "<= ISO datetime",+ "format": "date-time",+ "type": "string",+ },+ "neq": {+ "description": "Not equals (ISO datetime)",+ "format": "date-time",+ "type": "string",+ },+ },+ "type": "object",+ },+ "comments": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "extraData": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "interestingFacts": {+ "properties": {+ "containsIlike": {+ "description": "Contains case-insensitive substring",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "isEmptyArray": {+ "description": "Is empty array",+ "type": "boolean",+ },+ },+ "type": "object",+ },+ "isGoodWithKids": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "boolean",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "location": {+ "properties": {+ "addressCity": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "addressCountry": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "addressStreet1": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "properties": {+ "firstName": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "lastName": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "name": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "pictures": {+ "properties": {+ "primaryLinkUrl": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uri",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uri",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerSurveyResultId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "soundSwag": {+ "properties": {+ "eq": {+ "description": "Equals",+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "species": {+ "properties": {+ "eq": {+ "description": "Equals",+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ "traits": {+ "properties": {+ "in": {+ "description": "Contains any of these values",+ "items": {+ "enum": [+ "PLAYFUL",+ "FRIENDLY",+ "PROTECTIVE",+ "SHY",+ "BRAVE",+ "CURIOUS",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "isEmptyArray": {+ "description": "Is empty array",+ "type": "boolean",+ },+ },+ "type": "object",+ },+ "vetEmail": {+ "properties": {+ "primaryEmail": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "email",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "email",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "properties": {+ "primaryPhoneNumber": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: update_many_pets 1`] = `+{+ "properties": {+ "data": {+ "description": "The field values to apply to all matching records. Only include fields you want to change.",+ "properties": {+ "age": {+ "type": "integer",+ },+ "averageCostOfKibblePerMonth": {+ "properties": {+ "amountMicros": {+ "description": "Currency amount in micros (1 unit = 1,000,000 micros). Multiply the user-provided amount by 1,000,000 before writing.",+ "type": "number",+ },+ "currencyCode": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "bio": {+ "type": "string",+ },+ "birthday": {+ "format": "date",+ "type": "string",+ },+ "comments": {+ "type": "string",+ },+ "extraData": {+ "additionalProperties": {},+ "propertyNames": {+ "type": "string",+ },+ "type": "object",+ },+ "interestingFacts": {+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "isGoodWithKids": {+ "type": "boolean",+ },+ "location": {+ "properties": {+ "addressCity": {+ "type": "string",+ },+ "addressCountry": {+ "type": "string",+ },+ "addressLat": {+ "type": "number",+ },+ "addressLng": {+ "type": "number",+ },+ "addressPostcode": {+ "type": "string",+ },+ "addressState": {+ "type": "string",+ },+ "addressStreet1": {+ "type": "string",+ },+ "addressStreet2": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "properties": {+ "firstName": {+ "type": "string",+ },+ "lastName": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "pictures": {+ "properties": {+ "primaryLinkLabel": {+ "type": "string",+ },+ "primaryLinkUrl": {+ "format": "uri",+ "type": "string",+ },+ "secondaryLinks": {+ "items": {+ "properties": {+ "label": {+ "type": "string",+ },+ "url": {+ "format": "uri",+ "type": "string",+ },+ },+ "required": [+ "url",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "format": "uuid",+ "type": "string",+ },+ "polymorphicOwnerSurveyResultId": {+ "format": "uuid",+ "type": "string",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "soundSwag": {+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "species": {+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "traits": {+ "items": {+ "enum": [+ "PLAYFUL",+ "FRIENDLY",+ "PROTECTIVE",+ "SHY",+ "BRAVE",+ "CURIOUS",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "vetEmail": {+ "properties": {+ "additionalEmails": {+ "items": {+ "format": "email",+ "type": "string",+ },+ "type": "array",+ },+ "primaryEmail": {+ "format": "email",+ "type": "string",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "properties": {+ "additionalPhones": {+ "items": {+ "properties": {+ "callingCode": {+ "type": "string",+ },+ "countryCode": {+ "type": "string",+ },+ "number": {+ "type": "string",+ },+ },+ "required": [+ "number",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "primaryPhoneCallingCode": {+ "type": "string",+ },+ "primaryPhoneCountryCode": {+ "type": "string",+ },+ "primaryPhoneNumber": {+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "filter": {+ "$ref": "RecordFilter",+ "description": "Filter to select which records to update. Supports field-level filters and logical operators (or, and, not). WARNING: A broad filter may update many records at once. Always verify the filter scope with a find query first.",+ },+ },+ "required": [+ "filter",+ "data",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: update_one_pet 1`] = `+{+ "properties": {+ "age": {+ "type": "integer",+ },+ "averageCostOfKibblePerMonth": {+ "properties": {+ "amountMicros": {+ "description": "Currency amount in micros (1 unit = 1,000,000 micros). Multiply the user-provided amount by 1,000,000 before writing.",+ "type": "number",+ },+ "currencyCode": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "bio": {+ "type": "string",+ },+ "birthday": {+ "format": "date",+ "type": "string",+ },+ "comments": {+ "type": "string",+ },+ "extraData": {+ "additionalProperties": {},+ "propertyNames": {+ "type": "string",+ },+ "type": "object",+ },+ "id": {+ "format": "uuid",+ "type": "string",+ },+ "interestingFacts": {+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "isGoodWithKids": {+ "type": "boolean",+ },+ "location": {+ "properties": {+ "addressCity": {+ "type": "string",+ },+ "addressCountry": {+ "type": "string",+ },+ "addressLat": {+ "type": "number",+ },+ "addressLng": {+ "type": "number",+ },+ "addressPostcode": {+ "type": "string",+ },+ "addressState": {+ "type": "string",+ },+ "addressStreet1": {+ "type": "string",+ },+ "addressStreet2": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "properties": {+ "firstName": {+ "type": "string",+ },+ "lastName": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "pictures": {+ "properties": {+ "primaryLinkLabel": {+ "type": "string",+ },+ "primaryLinkUrl": {+ "format": "uri",+ "type": "string",+ },+ "secondaryLinks": {+ "items": {+ "properties": {+ "label": {+ "type": "string",+ },+ "url": {+ "format": "uri",+ "type": "string",+ },+ },+ "required": [+ "url",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "format": "uuid",+ "type": "string",+ },+ "polymorphicOwnerSurveyResultId": {+ "format": "uuid",+ "type": "string",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "soundSwag": {+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "species": {+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "traits": {+ "items": {+ "enum": [+ "PLAYFUL",+ "FRIENDLY",+ "PROTECTIVE",+ "SHY",+ "BRAVE",+ "CURIOUS",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "vetEmail": {+ "properties": {+ "additionalEmails": {+ "items": {+ "format": "email",+ "type": "string",+ },+ "type": "array",+ },+ "primaryEmail": {+ "format": "email",+ "type": "string",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "properties": {+ "additionalPhones": {+ "items": {+ "properties": {+ "callingCode": {+ "type": "string",+ },+ "countryCode": {+ "type": "string",+ },+ "number": {+ "type": "string",+ },+ },+ "required": [+ "number",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "primaryPhoneCallingCode": {+ "type": "string",+ },+ "primaryPhoneCountryCode": {+ "type": "string",+ },+ "primaryPhoneNumber": {+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "id",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the pet database tools: upsert_many_pets 1`] = `+{+ "properties": {+ "records": {+ "description": "Array of records to create. Each record should contain the required fields. Maximum 20 records per call.",+ "items": {+ "properties": {+ "age": {+ "type": "integer",+ },+ "averageCostOfKibblePerMonth": {+ "properties": {+ "amountMicros": {+ "description": "Currency amount in micros (1 unit = 1,000,000 micros). Multiply the user-provided amount by 1,000,000 before writing.",+ "type": "number",+ },+ "currencyCode": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "bio": {+ "type": "string",+ },+ "birthday": {+ "format": "date",+ "type": "string",+ },+ "comments": {+ "type": "string",+ },+ "extraData": {+ "additionalProperties": {},+ "propertyNames": {+ "type": "string",+ },+ "type": "object",+ },+ "interestingFacts": {+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "isGoodWithKids": {+ "type": "boolean",+ },+ "location": {+ "properties": {+ "addressCity": {+ "type": "string",+ },+ "addressCountry": {+ "type": "string",+ },+ "addressLat": {+ "type": "number",+ },+ "addressLng": {+ "type": "number",+ },+ "addressPostcode": {+ "type": "string",+ },+ "addressState": {+ "type": "string",+ },+ "addressStreet1": {+ "type": "string",+ },+ "addressStreet2": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "makesOwnerThinkOf": {+ "properties": {+ "firstName": {+ "type": "string",+ },+ "lastName": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "pictures": {+ "properties": {+ "primaryLinkLabel": {+ "type": "string",+ },+ "primaryLinkUrl": {+ "format": "uri",+ "type": "string",+ },+ "secondaryLinks": {+ "items": {+ "properties": {+ "label": {+ "type": "string",+ },+ "url": {+ "format": "uri",+ "type": "string",+ },+ },+ "required": [+ "url",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ },+ "type": "object",+ },+ "polymorphicOwnerRocketId": {+ "format": "uuid",+ "type": "string",+ },+ "polymorphicOwnerSurveyResultId": {+ "format": "uuid",+ "type": "string",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "soundSwag": {+ "enum": [+ "RATING_1",+ "RATING_2",+ "RATING_3",+ "RATING_4",+ "RATING_5",+ ],+ "type": "string",+ },+ "species": {+ "enum": [+ "DOG",+ "CAT",+ "BIRD",+ "FISH",+ "RABBIT",+ "HAMSTER",+ ],+ "type": "string",+ },+ "traits": {+ "items": {+ "enum": [+ "PLAYFUL",+ "FRIENDLY",+ "PROTECTIVE",+ "SHY",+ "BRAVE",+ "CURIOUS",+ ],+ "type": "string",+ },+ "type": "array",+ },+ "vetEmail": {+ "properties": {+ "additionalEmails": {+ "items": {+ "format": "email",+ "type": "string",+ },+ "type": "array",+ },+ "primaryEmail": {+ "format": "email",+ "type": "string",+ },+ },+ "type": "object",+ },+ "vetPhone": {+ "properties": {+ "additionalPhones": {+ "items": {+ "properties": {+ "callingCode": {+ "type": "string",+ },+ "countryCode": {+ "type": "string",+ },+ "number": {+ "type": "string",+ },+ },+ "required": [+ "number",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "primaryPhoneCallingCode": {+ "type": "string",+ },+ "primaryPhoneCountryCode": {+ "type": "string",+ },+ "primaryPhoneNumber": {+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "position",+ ],+ "type": "object",+ },+ "maxItems": 20,+ "minItems": 1,+ "type": "array",+ },+ },+ "required": [+ "records",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: create_many_survey_results 1`] = `+{+ "properties": {+ "records": {+ "description": "Array of records to create. Each record should contain the required fields. Maximum 20 records per call.",+ "items": {+ "properties": {+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "type": "integer",+ },+ "comments": {+ "type": "string",+ },+ "files": {+ "items": {+ "additionalProperties": false,+ "properties": {+ "fileId": {+ "format": "uuid",+ "type": "string",+ },+ "label": {+ "type": "string",+ },+ },+ "required": [+ "fileId",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "helpedPetsId": {+ "format": "uuid",+ "type": "string",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "participants": {+ "type": "integer",+ },+ "percentageOfCompletion": {+ "type": "number",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "score": {+ "type": "number",+ },+ "shortNotes": {+ "type": "string",+ },+ },+ "required": [+ "position",+ ],+ "type": "object",+ },+ "maxItems": 20,+ "minItems": 1,+ "type": "array",+ },+ },+ "required": [+ "records",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: create_one_survey_result 1`] = `+{+ "properties": {+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "type": "integer",+ },+ "comments": {+ "type": "string",+ },+ "files": {+ "items": {+ "additionalProperties": false,+ "properties": {+ "fileId": {+ "format": "uuid",+ "type": "string",+ },+ "label": {+ "type": "string",+ },+ },+ "required": [+ "fileId",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "helpedPetsId": {+ "format": "uuid",+ "type": "string",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "participants": {+ "type": "integer",+ },+ "percentageOfCompletion": {+ "type": "number",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "score": {+ "type": "number",+ },+ "shortNotes": {+ "type": "string",+ },+ },+ "required": [+ "position",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: delete_many_survey_results 1`] = `+{+ "properties": {+ "filter": {+ "$ref": "RecordFilter",+ "description": "Filter to select which records to delete. Supports field-level filters and logical operators (or, and, not). WARNING: A broad filter may delete many records at once. Always verify the filter scope with a find query first.",+ },+ },+ "required": [+ "filter",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: delete_one_survey_result 1`] = `+{+ "properties": {+ "id": {+ "description": "The unique UUID of the record to delete",+ "format": "uuid",+ "type": "string",+ },+ },+ "required": [+ "id",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: find_many_survey_results 1`] = `+{+ "properties": {+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "comments": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "files": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "helpedPetsId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "limit": {+ "default": 10,+ "description": "Maximum number of records to return (default: 10, max: 100). Start small and increase only if needed.",+ "exclusiveMinimum": 0,+ "type": "integer",+ },+ "name": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "offset": {+ "default": 0,+ "description": "Number of records to skip (default: 0)",+ "type": "integer",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "orderBy": {+ "description": "Array of sort criteria, one field per item. Use "DescNullsLast" for descending (top/largest), "AscNullsFirst" for ascending (bottom/smallest).",+ "items": {+ "additionalProperties": false,+ "description": "Object with exactly ONE property. Scalar fields take a direction string; composite fields take an object with one sub-field. Never use dot-notation keys.",+ "properties": {+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "comments": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "createdAt": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "files": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "helpedPetsId": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "id": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "name": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "participants": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "percentageOfCompletion": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "position": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "score": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "shortNotes": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "updatedAt": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "updatedBy": {+ "additionalProperties": false,+ "properties": {+ "context": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "name": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "source": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ "workspaceMemberId": {+ "enum": [+ "AscNullsFirst",+ "AscNullsLast",+ "DescNullsFirst",+ "DescNullsLast",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+ },+ "type": "array",+ },+ "participants": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "percentageOfCompletion": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "score": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "select": {+ "description": "Fields to include in the response. Required. Use '*' to return all fields, or list specific field names. Relation fields resolve to related records as {id, label} summaries: MANY_TO_ONE returns a single object (or select the '<name>Id' FK column for just the id), ONE_TO_MANY returns up to 60 related records. For more fields or more records, query the related object directly. ",+ "items": {+ "type": "string",+ },+ "minItems": 1,+ "type": "array",+ },+ "shortNotes": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "select",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: find_one_survey_result 1`] = `+{+ "properties": {+ "id": {+ "description": "The unique UUID of the record to retrieve",+ "format": "uuid",+ "type": "string",+ },+ "select": {+ "description": "Fields to include in the response. Required. Use '*' to return all fields. Relation fields resolve to related records as {id, label} summaries: MANY_TO_ONE returns a single object (or select the <name>Id FK column for just the id), ONE_TO_MANY returns up to 60 related records.",+ "items": {+ "type": "string",+ },+ "minItems": 1,+ "type": "array",+ },+ },+ "required": [+ "id",+ "select",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: group_by_survey_results 1`] = `+{+ "additionalProperties": false,+ "properties": {+ "aggregateFieldName": {+ "description": "Field to aggregate. Required for any operation other than COUNT. Available fields: name, id, createdAt, createdBy, deletedAt, position, updatedAt, updatedBy, searchVector, score, percentageOfCompletion, participants, averageEstimatedNumberOfAtomsInTheUniverse, comments, shortNotes, files.",+ "type": "string",+ },+ "aggregateOperation": {+ "default": "COUNT",+ "description": "Aggregate operation to apply per group. Default: COUNT. Any operation other than COUNT requires aggregateFieldName.",+ "enum": [+ "MIN",+ "MAX",+ "AVG",+ "SUM",+ "COUNT",+ "COUNT_UNIQUE_VALUES",+ "COUNT_EMPTY",+ "COUNT_NOT_EMPTY",+ "COUNT_TRUE",+ "COUNT_FALSE",+ "PERCENTAGE_EMPTY",+ "PERCENTAGE_NOT_EMPTY",+ ],+ "type": "string",+ },+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "comments": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "files": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "groupBy": {+ "description": "Fields to group by (max 2). Each entry must be an object with exactly one field key. At most one entry can use unnest. A record with several values is counted in each group, so totals can exceed the record count. Examples: {"status": true}, {"companyId": true}, {"createdAt": {"granularity": "MONTH", "timeZone": "UTC"}}. Available: name, createdAt (date), updatedAt (date), score, percentageOfCompletion, participants, averageEstimatedNumberOfAtomsInTheUniverse, comments, shortNotes, helpedPetsId.",+ "items": {+ "anyOf": [+ {+ "additionalProperties": false,+ "properties": {+ "name": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "name",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "createdAt": {+ "additionalProperties": false,+ "description": "Date field grouping configuration",+ "properties": {+ "granularity": {+ "default": "MONTH",+ "description": "Date grouping granularity. Default: MONTH.",+ "enum": [+ "DAY",+ "MONTH",+ "QUARTER",+ "YEAR",+ "WEEK",+ "DAY_OF_THE_WEEK",+ "MONTH_OF_THE_YEAR",+ "QUARTER_OF_THE_YEAR",+ ],+ "type": "string",+ },+ "timeZone": {+ "default": "UTC",+ "description": "IANA timezone for date groupings (e.g. "America/New_York"). Default: UTC.",+ "type": "string",+ },+ "weekStartDay": {+ "description": "First day of week (MONDAY, SUNDAY, SATURDAY). Only used when granularity is WEEK.",+ "enum": [+ "MONDAY",+ "SUNDAY",+ "SATURDAY",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "createdAt",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "updatedAt": {+ "additionalProperties": false,+ "description": "Date field grouping configuration",+ "properties": {+ "granularity": {+ "default": "MONTH",+ "description": "Date grouping granularity. Default: MONTH.",+ "enum": [+ "DAY",+ "MONTH",+ "QUARTER",+ "YEAR",+ "WEEK",+ "DAY_OF_THE_WEEK",+ "MONTH_OF_THE_YEAR",+ "QUARTER_OF_THE_YEAR",+ ],+ "type": "string",+ },+ "timeZone": {+ "default": "UTC",+ "description": "IANA timezone for date groupings (e.g. "America/New_York"). Default: UTC.",+ "type": "string",+ },+ "weekStartDay": {+ "description": "First day of week (MONDAY, SUNDAY, SATURDAY). Only used when granularity is WEEK.",+ "enum": [+ "MONDAY",+ "SUNDAY",+ "SATURDAY",+ ],+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "updatedAt",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "score": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "score",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "percentageOfCompletion": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "percentageOfCompletion",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "participants": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "participants",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "averageEstimatedNumberOfAtomsInTheUniverse",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "comments": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "comments",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "shortNotes": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "shortNotes",+ ],+ "type": "object",+ },+ {+ "additionalProperties": false,+ "properties": {+ "helpedPetsId": {+ "const": true,+ "type": "boolean",+ },+ },+ "required": [+ "helpedPetsId",+ ],+ "type": "object",+ },+ ],+ },+ "maxItems": 2,+ "minItems": 1,+ "type": "array",+ },+ "helpedPetsId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "limit": {+ "default": 50,+ "description": "Maximum number of groups to return (default: 50, max: 100).",+ "exclusiveMinimum": 0,+ "type": "integer",+ },+ "name": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "orderBy": {+ "default": "DESC",+ "description": "Order groups by aggregate value. DESC (default) gives "top N" behavior.",+ "enum": [+ "ASC",+ "DESC",+ ],+ "type": "string",+ },+ "participants": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "percentageOfCompletion": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "score": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "shortNotes": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "required": [+ "groupBy",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: record filter 1`] = `+{+ "properties": {+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "comments": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "files": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "helpedPetsId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "name": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "participants": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "percentageOfCompletion": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "score": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "shortNotes": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: update_many record filter 1`] = `+{+ "properties": {+ "and": {+ "description": "AND condition - matches if ALL filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "comments": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "files": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ },+ "type": "object",+ },+ "helpedPetsId": {+ "properties": {+ "eq": {+ "description": "Equals",+ "format": "uuid",+ "type": "string",+ },+ "in": {+ "description": "In array of values",+ "items": {+ "format": "uuid",+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "format": "uuid",+ "type": "string",+ },+ },+ "type": "object",+ },+ "name": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ "not": {+ "$ref": "RecordFilter",+ "description": "NOT condition - matches if the filter does NOT match",+ },+ "or": {+ "description": "OR condition - matches if ANY of the filters match",+ "items": {+ "$ref": "RecordFilter",+ },+ "type": "array",+ },+ "participants": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "percentageOfCompletion": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "score": {+ "properties": {+ "eq": {+ "description": "Equals",+ "type": "number",+ },+ "gt": {+ "description": ">",+ "type": "number",+ },+ "gte": {+ "description": ">=",+ "type": "number",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "number",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "lt": {+ "description": "<",+ "type": "number",+ },+ "lte": {+ "description": "<=",+ "type": "number",+ },+ "neq": {+ "description": "Not equals",+ "type": "number",+ },+ },+ "type": "object",+ },+ "shortNotes": {+ "properties": {+ "endsWith": {+ "description": "Ends with",+ "type": "string",+ },+ "eq": {+ "description": "Equals",+ "type": "string",+ },+ "ilike": {+ "description": "ILIKE (% wildcard, case-insensitive)",+ "type": "string",+ },+ "in": {+ "description": "In array",+ "items": {+ "type": "string",+ },+ "type": "array",+ },+ "is": {+ "description": "Is null or not null",+ "enum": [+ "NULL",+ "NOT_NULL",+ ],+ "type": "string",+ },+ "like": {+ "description": "LIKE (% wildcard)",+ "type": "string",+ },+ "neq": {+ "description": "Not equals",+ "type": "string",+ },+ "startsWith": {+ "description": "Starts with",+ "type": "string",+ },+ },+ "type": "object",+ },+ },+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: update_many_survey_results 1`] = `+{+ "properties": {+ "data": {+ "description": "The field values to apply to all matching records. Only include fields you want to change.",+ "properties": {+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "type": "integer",+ },+ "comments": {+ "type": "string",+ },+ "files": {+ "items": {+ "additionalProperties": false,+ "properties": {+ "fileId": {+ "format": "uuid",+ "type": "string",+ },+ "label": {+ "type": "string",+ },+ },+ "required": [+ "fileId",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "helpedPetsId": {+ "format": "uuid",+ "type": "string",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "participants": {+ "type": "integer",+ },+ "percentageOfCompletion": {+ "type": "number",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "score": {+ "type": "number",+ },+ "shortNotes": {+ "type": "string",+ },+ },+ "type": "object",+ },+ "filter": {+ "$ref": "RecordFilter",+ "description": "Filter to select which records to update. Supports field-level filters and logical operators (or, and, not). WARNING: A broad filter may update many records at once. Always verify the filter scope with a find query first.",+ },+ },+ "required": [+ "filter",+ "data",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: update_one_survey_result 1`] = `+{+ "properties": {+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "type": "integer",+ },+ "comments": {+ "type": "string",+ },+ "files": {+ "items": {+ "additionalProperties": false,+ "properties": {+ "fileId": {+ "format": "uuid",+ "type": "string",+ },+ "label": {+ "type": "string",+ },+ },+ "required": [+ "fileId",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "helpedPetsId": {+ "format": "uuid",+ "type": "string",+ },+ "id": {+ "format": "uuid",+ "type": "string",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "participants": {+ "type": "integer",+ },+ "percentageOfCompletion": {+ "type": "number",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "score": {+ "type": "number",+ },+ "shortNotes": {+ "type": "string",+ },+ },+ "required": [+ "id",+ ],+ "type": "object",+}+`;++exports[`MCP database tool input schemas should list the input schemas of the survey_result database tools: upsert_many_survey_results 1`] = `+{+ "properties": {+ "records": {+ "description": "Array of records to create. Each record should contain the required fields. Maximum 20 records per call.",+ "items": {+ "properties": {+ "averageEstimatedNumberOfAtomsInTheUniverse": {+ "type": "integer",+ },+ "comments": {+ "type": "string",+ },+ "files": {+ "items": {+ "additionalProperties": false,+ "properties": {+ "fileId": {+ "format": "uuid",+ "type": "string",+ },+ "label": {+ "type": "string",+ },+ },+ "required": [+ "fileId",+ "label",+ ],+ "type": "object",+ },+ "type": "array",+ },+ "helpedPetsId": {+ "format": "uuid",+ "type": "string",+ },+ "name": {+ "description": "Name",+ "type": "string",+ },+ "participants": {+ "type": "integer",+ },+ "percentageOfCompletion": {+ "type": "number",+ },+ "position": {+ "anyOf": [+ {+ "type": "number",+ },+ {+ "const": "first",+ "type": "string",+ },+ {+ "const": "last",+ "type": "string",+ },+ ],+ "description": "Use "first" to insert at the top, "last" for the bottom, or a number for explicit ordering. Leave empty to place at the top (recommended).",+ },+ "score": {+ "type": "number",+ },+ "shortNotes": {+ "type": "string",+ },+ },+ "required": [+ "position",+ ],+ "type": "object",+ },+ "maxItems": 20,+ "minItems": 1,+ "type": "array",+ },+ },+ "required": [+ "records",+ ],+ "type": "object",+}+`;diff --git a/packages/twenty-server/test/integration/ai/suites/mcp-database-tool-input-schemas.integration-spec.ts b/packages/twenty-server/test/integration/ai/suites/mcp-database-tool-input-schemas.integration-spec.tsnew file mode 100644index 00000000000..a82983b94b4--- /dev/null+++ b/packages/twenty-server/test/integration/ai/suites/mcp-database-tool-input-schemas.integration-spec.ts@@ -0,0 +1,74 @@+import request from 'supertest';+import { normalizeToolInputSchema } from 'test/integration/ai/utils/normalize-tool-input-schema.util';++const OBJECT_NAMES = [+ { singular: 'pet', plural: 'pets' },+ { singular: 'survey_result', plural: 'survey_results' },+ { singular: 'note', plural: 'notes' },+];++const listDirectModeMcpTools = async (): Promise<+ { name: string; inputSchema: unknown }[]+> => {+ const response = await request(`http://localhost:${APP_PORT}`)+ .post('/mcp?mode=direct')+ .set('Authorization', `Bearer ${APPLE_JANE_ADMIN_ACCESS_TOKEN}`)+ .set('Content-Type', 'application/json')+ .set('Accept', 'application/json')+ .send(JSON.stringify({ jsonrpc: '2.0', method: 'tools/list', id: '1' }))+ .expect(200);++ return response.body.result.tools;+};++describe('MCP database tool input schemas', () => {+ let tools: { name: string; inputSchema: unknown }[];++ beforeAll(async () => {+ tools = await listDirectModeMcpTools();+ });++ const getNormalizedInputSchema = (toolName: string) => {+ const tool = tools.find(({ name }) => name === toolName);++ expect(tool).toBeDefined();++ return normalizeToolInputSchema({ inputSchema: tool?.inputSchema });+ };++ it.each(OBJECT_NAMES)(+ 'should list the input schemas of the $singular database tools',+ ({ singular, plural }) => {+ const findMany = getNormalizedInputSchema(`find_many_${plural}`);+ const updateMany = getNormalizedInputSchema(`update_many_${plural}`);++ expect(findMany.recordFilter).toMatchSnapshot('record filter');+ expect(updateMany.recordFilter).toMatchSnapshot(+ 'update_many record filter',+ );++ for (const toolName of [`group_by_${plural}`, `delete_many_${plural}`]) {+ expect(getNormalizedInputSchema(toolName).recordFilter).toEqual(+ findMany.recordFilter,+ );+ }++ for (const toolName of [+ `find_many_${plural}`,+ `find_one_${singular}`,+ `group_by_${plural}`,+ `create_one_${singular}`,+ `create_many_${plural}`,+ `update_one_${singular}`,+ `update_many_${plural}`,+ `upsert_many_${plural}`,+ `delete_one_${singular}`,+ `delete_many_${plural}`,+ ]) {+ expect(getNormalizedInputSchema(toolName).inputSchema).toMatchSnapshot(+ toolName,+ );+ }+ },+ );+});diff --git a/packages/twenty-server/test/integration/ai/utils/normalize-tool-input-schema.util.ts b/packages/twenty-server/test/integration/ai/utils/normalize-tool-input-schema.util.tsnew file mode 100644index 00000000000..2ff44dd527f--- /dev/null+++ b/packages/twenty-server/test/integration/ai/utils/normalize-tool-input-schema.util.ts@@ -0,0 +1,76 @@+import { isNonEmptyString } from '@sniptt/guards';+import { isDefined, isPlainObject } from 'twenty-shared/utils';++const RECORD_FILTER_REFERENCE = 'RecordFilter';++const isRecordFilterJsonSchema = (schema: unknown) =>+ isPlainObject(schema) &&+ isPlainObject(schema.properties) &&+ isDefined(schema.properties.or);++const inlineReferences = ({+ schema,+ definitions,+}: {+ schema: unknown;+ definitions: Record<string, unknown>;+}): unknown => {+ if (Array.isArray(schema)) {+ return schema.map((item) =>+ inlineReferences({ schema: item, definitions }),+ );+ }++ if (!isPlainObject(schema)) {+ return schema;+ }++ const { $ref, $defs: _definitions, ...keywords } = schema;++ const inlinedKeywords = Object.fromEntries(+ Object.entries(keywords).map(([keyword, value]) => [+ keyword,+ inlineReferences({ schema: value, definitions }),+ ]),+ );++ if (!isNonEmptyString($ref)) {+ return inlinedKeywords;+ }++ const definition = definitions[$ref.replace('#/$defs/', '')];++ if (isRecordFilterJsonSchema(definition)) {+ return { ...inlinedKeywords, $ref: RECORD_FILTER_REFERENCE };+ }++ const inlinedDefinition = inlineReferences({+ schema: definition,+ definitions,+ });++ if (!isPlainObject(inlinedDefinition)) {+ return inlinedDefinition;+ }++ return { ...inlinedDefinition, ...inlinedKeywords };+};++export const normalizeToolInputSchema = ({+ inputSchema,+}: {+ inputSchema: unknown;+}): { inputSchema: unknown; recordFilter: unknown } => {+ const definitions =+ isPlainObject(inputSchema) && isPlainObject(inputSchema.$defs)+ ? inputSchema.$defs+ : {};++ return {+ inputSchema: inlineReferences({ schema: inputSchema, definitions }),+ recordFilter: inlineReferences({+ schema: Object.values(definitions).find(isRecordFilterJsonSchema),+ definitions,+ }),+ };+};