@xano/developer-mcp 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -84,6 +84,30 @@ query "products" verb=GET {
|
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
|
87
|
+
## Input Block
|
|
88
|
+
|
|
89
|
+
For complete type and filter reference, use `xanoscript_docs({ keyword: "input" })`.
|
|
90
|
+
|
|
91
|
+
### Empty Input Blocks
|
|
92
|
+
|
|
93
|
+
**CRITICAL:** When an endpoint has no input parameters, the input block braces MUST be on separate lines. `input {}` on a single line will cause parsing errors.
|
|
94
|
+
|
|
95
|
+
```xs
|
|
96
|
+
// CORRECT - braces on separate lines
|
|
97
|
+
query "health" verb=GET {
|
|
98
|
+
api_group = "System"
|
|
99
|
+
input {
|
|
100
|
+
}
|
|
101
|
+
stack { ... }
|
|
102
|
+
response = { status: "ok" }
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// WRONG - causes parsing errors
|
|
106
|
+
input {}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
87
111
|
## Authentication
|
|
88
112
|
|
|
89
113
|
### Public Endpoint (default)
|
|
@@ -19,6 +19,15 @@ function "<name>" {
|
|
|
19
19
|
}
|
|
20
20
|
response = $result
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
// Function with no inputs - IMPORTANT: braces must be on separate lines
|
|
24
|
+
function "<name>" {
|
|
25
|
+
description = "..."
|
|
26
|
+
input {
|
|
27
|
+
}
|
|
28
|
+
stack { ... }
|
|
29
|
+
response = $result
|
|
30
|
+
}
|
|
22
31
|
```
|
|
23
32
|
|
|
24
33
|
### Calling Functions
|
|
@@ -73,6 +82,33 @@ input {
|
|
|
73
82
|
}
|
|
74
83
|
```
|
|
75
84
|
|
|
85
|
+
### Empty Input Blocks
|
|
86
|
+
|
|
87
|
+
**CRITICAL:** When a function has no input parameters, the input block braces MUST be on separate lines. This is a syntax requirement.
|
|
88
|
+
|
|
89
|
+
```xs
|
|
90
|
+
// CORRECT - braces on separate lines
|
|
91
|
+
function "get_all_users" {
|
|
92
|
+
description = "Returns all users"
|
|
93
|
+
input {
|
|
94
|
+
}
|
|
95
|
+
stack {
|
|
96
|
+
db.query "user" {} as $users
|
|
97
|
+
}
|
|
98
|
+
response = $users
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// WRONG - will cause parsing errors
|
|
102
|
+
function "get_all_users" {
|
|
103
|
+
description = "Returns all users"
|
|
104
|
+
input {} // <-- ERROR: braces must be on separate lines
|
|
105
|
+
stack {
|
|
106
|
+
db.query "user" {} as $users
|
|
107
|
+
}
|
|
108
|
+
response = $users
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
76
112
|
---
|
|
77
113
|
|
|
78
114
|
## Stack Block
|
|
@@ -74,6 +74,25 @@ input {
|
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
### Empty Input Blocks
|
|
78
|
+
|
|
79
|
+
**CRITICAL:** When a tool has no input parameters, the input block braces MUST be on separate lines. `input {}` on a single line will cause parsing errors.
|
|
80
|
+
|
|
81
|
+
```xs
|
|
82
|
+
// CORRECT - braces on separate lines
|
|
83
|
+
tool "get_system_status" {
|
|
84
|
+
description = "Get current system status"
|
|
85
|
+
instructions = "Use this to check if the system is healthy"
|
|
86
|
+
input {
|
|
87
|
+
}
|
|
88
|
+
stack { ... }
|
|
89
|
+
response = $status
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// WRONG - causes parsing errors
|
|
93
|
+
input {}
|
|
94
|
+
```
|
|
95
|
+
|
|
77
96
|
---
|
|
78
97
|
|
|
79
98
|
## Tool-Specific Statements
|
|
@@ -60,14 +60,16 @@ input {
|
|
|
60
60
|
}
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
### Empty Input Blocks
|
|
64
|
+
|
|
65
|
+
**CRITICAL:** When an input block has no parameters, the braces MUST be on separate lines. This is a strict syntax requirement - `input {}` on a single line will cause parsing errors.
|
|
64
66
|
|
|
65
67
|
```xs
|
|
66
|
-
//
|
|
68
|
+
// CORRECT - braces on separate lines
|
|
67
69
|
input {
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
//
|
|
72
|
+
// WRONG - causes parsing errors
|
|
71
73
|
input {}
|
|
72
74
|
```
|
|
73
75
|
|