profound-mcp 0.14.0 → 0.17.0

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.
Files changed (272) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +14 -184
  3. package/code-tool-types.d.mts +6 -9
  4. package/code-tool-types.d.mts.map +1 -1
  5. package/code-tool-types.d.ts +6 -9
  6. package/code-tool-types.d.ts.map +1 -1
  7. package/code-tool.d.mts +2 -2
  8. package/code-tool.d.mts.map +1 -1
  9. package/code-tool.d.ts +2 -2
  10. package/code-tool.d.ts.map +1 -1
  11. package/code-tool.js +53 -145
  12. package/code-tool.js.map +1 -1
  13. package/code-tool.mjs +53 -112
  14. package/code-tool.mjs.map +1 -1
  15. package/docs-search-tool.d.mts +15 -9
  16. package/docs-search-tool.d.mts.map +1 -1
  17. package/docs-search-tool.d.ts +15 -9
  18. package/docs-search-tool.d.ts.map +1 -1
  19. package/docs-search-tool.js +4 -1
  20. package/docs-search-tool.js.map +1 -1
  21. package/docs-search-tool.mjs +4 -1
  22. package/docs-search-tool.mjs.map +1 -1
  23. package/http.d.mts.map +1 -1
  24. package/http.d.ts.map +1 -1
  25. package/http.js +1 -18
  26. package/http.js.map +1 -1
  27. package/http.mjs +1 -18
  28. package/http.mjs.map +1 -1
  29. package/index.js +4 -40
  30. package/index.js.map +1 -1
  31. package/index.mjs +4 -40
  32. package/index.mjs.map +1 -1
  33. package/options.d.mts +0 -9
  34. package/options.d.mts.map +1 -1
  35. package/options.d.ts +0 -9
  36. package/options.d.ts.map +1 -1
  37. package/options.js +6 -361
  38. package/options.js.map +1 -1
  39. package/options.mjs +6 -361
  40. package/options.mjs.map +1 -1
  41. package/package.json +10 -66
  42. package/server.d.mts +3 -8
  43. package/server.d.mts.map +1 -1
  44. package/server.d.ts +3 -8
  45. package/server.d.ts.map +1 -1
  46. package/server.js +12 -65
  47. package/server.js.map +1 -1
  48. package/server.mjs +11 -62
  49. package/server.mjs.map +1 -1
  50. package/src/code-tool-types.ts +6 -9
  51. package/src/code-tool.ts +60 -138
  52. package/src/docs-search-tool.ts +8 -1
  53. package/src/http.ts +1 -19
  54. package/src/index.ts +5 -52
  55. package/src/options.ts +7 -388
  56. package/src/server.ts +12 -72
  57. package/src/stdio.ts +2 -3
  58. package/src/{tools/types.ts → types.ts} +1 -1
  59. package/stdio.d.mts +1 -2
  60. package/stdio.d.mts.map +1 -1
  61. package/stdio.d.ts +1 -2
  62. package/stdio.d.ts.map +1 -1
  63. package/stdio.js +2 -2
  64. package/stdio.js.map +1 -1
  65. package/stdio.mjs +2 -2
  66. package/stdio.mjs.map +1 -1
  67. package/{tools/types.d.mts → types.d.mts} +1 -1
  68. package/types.d.mts.map +1 -0
  69. package/{tools/types.d.ts → types.d.ts} +1 -1
  70. package/types.d.ts.map +1 -0
  71. package/types.js.map +1 -0
  72. package/types.mjs.map +1 -0
  73. package/code-tool-paths.cjs +0 -6
  74. package/code-tool-paths.cjs.map +0 -1
  75. package/code-tool-paths.d.cts +0 -2
  76. package/code-tool-paths.d.cts.map +0 -1
  77. package/code-tool-worker.d.mts +0 -5
  78. package/code-tool-worker.d.mts.map +0 -1
  79. package/code-tool-worker.d.ts +0 -5
  80. package/code-tool-worker.d.ts.map +0 -1
  81. package/code-tool-worker.js +0 -169
  82. package/code-tool-worker.js.map +0 -1
  83. package/code-tool-worker.mjs +0 -164
  84. package/code-tool-worker.mjs.map +0 -1
  85. package/compat.d.mts +0 -58
  86. package/compat.d.mts.map +0 -1
  87. package/compat.d.ts +0 -58
  88. package/compat.d.ts.map +0 -1
  89. package/compat.js +0 -387
  90. package/compat.js.map +0 -1
  91. package/compat.mjs +0 -378
  92. package/compat.mjs.map +0 -1
  93. package/dynamic-tools.d.mts +0 -12
  94. package/dynamic-tools.d.mts.map +0 -1
  95. package/dynamic-tools.d.ts +0 -12
  96. package/dynamic-tools.d.ts.map +0 -1
  97. package/dynamic-tools.js +0 -135
  98. package/dynamic-tools.js.map +0 -1
  99. package/dynamic-tools.mjs +0 -132
  100. package/dynamic-tools.mjs.map +0 -1
  101. package/filtering.d.mts +0 -3
  102. package/filtering.d.mts.map +0 -1
  103. package/filtering.d.ts +0 -3
  104. package/filtering.d.ts.map +0 -1
  105. package/filtering.js +0 -24
  106. package/filtering.js.map +0 -1
  107. package/filtering.mjs +0 -16
  108. package/filtering.mjs.map +0 -1
  109. package/src/code-tool-paths.cts +0 -3
  110. package/src/code-tool-worker.ts +0 -215
  111. package/src/compat.ts +0 -483
  112. package/src/dynamic-tools.ts +0 -153
  113. package/src/filtering.ts +0 -18
  114. package/src/tools/index.ts +0 -99
  115. package/src/tools/logs/raw/bots-logs-raw.ts +0 -544
  116. package/src/tools/logs/raw/logs-logs-raw.ts +0 -565
  117. package/src/tools/organizations/categories/assets-organizations-categories.ts +0 -57
  118. package/src/tools/organizations/categories/list-organizations-categories.ts +0 -51
  119. package/src/tools/organizations/categories/prompts-organizations-categories.ts +0 -57
  120. package/src/tools/organizations/categories/tags-organizations-categories.ts +0 -57
  121. package/src/tools/organizations/categories/topics-organizations-categories.ts +0 -57
  122. package/src/tools/organizations/domains-organizations.ts +0 -51
  123. package/src/tools/organizations/list-assets-organizations.ts +0 -51
  124. package/src/tools/organizations/models-organizations.ts +0 -51
  125. package/src/tools/organizations/regions-organizations.ts +0 -51
  126. package/src/tools/prompts/answers-prompts.ts +0 -370
  127. package/src/tools/reports/citations-reports.ts +0 -504
  128. package/src/tools/reports/sentiment-reports.ts +0 -418
  129. package/src/tools/reports/visibility-reports.ts +0 -364
  130. package/src/tools.ts +0 -1
  131. package/tools/index.d.mts +0 -10
  132. package/tools/index.d.mts.map +0 -1
  133. package/tools/index.d.ts +0 -10
  134. package/tools/index.d.ts.map +0 -1
  135. package/tools/index.js +0 -83
  136. package/tools/index.js.map +0 -1
  137. package/tools/index.mjs +0 -76
  138. package/tools/index.mjs.map +0 -1
  139. package/tools/logs/raw/bots-logs-raw.d.mts +0 -45
  140. package/tools/logs/raw/bots-logs-raw.d.mts.map +0 -1
  141. package/tools/logs/raw/bots-logs-raw.d.ts +0 -45
  142. package/tools/logs/raw/bots-logs-raw.d.ts.map +0 -1
  143. package/tools/logs/raw/bots-logs-raw.js +0 -544
  144. package/tools/logs/raw/bots-logs-raw.js.map +0 -1
  145. package/tools/logs/raw/bots-logs-raw.mjs +0 -537
  146. package/tools/logs/raw/bots-logs-raw.mjs.map +0 -1
  147. package/tools/logs/raw/logs-logs-raw.d.mts +0 -45
  148. package/tools/logs/raw/logs-logs-raw.d.mts.map +0 -1
  149. package/tools/logs/raw/logs-logs-raw.d.ts +0 -45
  150. package/tools/logs/raw/logs-logs-raw.d.ts.map +0 -1
  151. package/tools/logs/raw/logs-logs-raw.js +0 -565
  152. package/tools/logs/raw/logs-logs-raw.js.map +0 -1
  153. package/tools/logs/raw/logs-logs-raw.mjs +0 -558
  154. package/tools/logs/raw/logs-logs-raw.mjs.map +0 -1
  155. package/tools/organizations/categories/assets-organizations-categories.d.mts +0 -45
  156. package/tools/organizations/categories/assets-organizations-categories.d.mts.map +0 -1
  157. package/tools/organizations/categories/assets-organizations-categories.d.ts +0 -45
  158. package/tools/organizations/categories/assets-organizations-categories.d.ts.map +0 -1
  159. package/tools/organizations/categories/assets-organizations-categories.js +0 -55
  160. package/tools/organizations/categories/assets-organizations-categories.js.map +0 -1
  161. package/tools/organizations/categories/assets-organizations-categories.mjs +0 -48
  162. package/tools/organizations/categories/assets-organizations-categories.mjs.map +0 -1
  163. package/tools/organizations/categories/list-organizations-categories.d.mts +0 -45
  164. package/tools/organizations/categories/list-organizations-categories.d.mts.map +0 -1
  165. package/tools/organizations/categories/list-organizations-categories.d.ts +0 -45
  166. package/tools/organizations/categories/list-organizations-categories.d.ts.map +0 -1
  167. package/tools/organizations/categories/list-organizations-categories.js +0 -51
  168. package/tools/organizations/categories/list-organizations-categories.js.map +0 -1
  169. package/tools/organizations/categories/list-organizations-categories.mjs +0 -44
  170. package/tools/organizations/categories/list-organizations-categories.mjs.map +0 -1
  171. package/tools/organizations/categories/prompts-organizations-categories.d.mts +0 -45
  172. package/tools/organizations/categories/prompts-organizations-categories.d.mts.map +0 -1
  173. package/tools/organizations/categories/prompts-organizations-categories.d.ts +0 -45
  174. package/tools/organizations/categories/prompts-organizations-categories.d.ts.map +0 -1
  175. package/tools/organizations/categories/prompts-organizations-categories.js +0 -55
  176. package/tools/organizations/categories/prompts-organizations-categories.js.map +0 -1
  177. package/tools/organizations/categories/prompts-organizations-categories.mjs +0 -48
  178. package/tools/organizations/categories/prompts-organizations-categories.mjs.map +0 -1
  179. package/tools/organizations/categories/tags-organizations-categories.d.mts +0 -45
  180. package/tools/organizations/categories/tags-organizations-categories.d.mts.map +0 -1
  181. package/tools/organizations/categories/tags-organizations-categories.d.ts +0 -45
  182. package/tools/organizations/categories/tags-organizations-categories.d.ts.map +0 -1
  183. package/tools/organizations/categories/tags-organizations-categories.js +0 -55
  184. package/tools/organizations/categories/tags-organizations-categories.js.map +0 -1
  185. package/tools/organizations/categories/tags-organizations-categories.mjs +0 -48
  186. package/tools/organizations/categories/tags-organizations-categories.mjs.map +0 -1
  187. package/tools/organizations/categories/topics-organizations-categories.d.mts +0 -45
  188. package/tools/organizations/categories/topics-organizations-categories.d.mts.map +0 -1
  189. package/tools/organizations/categories/topics-organizations-categories.d.ts +0 -45
  190. package/tools/organizations/categories/topics-organizations-categories.d.ts.map +0 -1
  191. package/tools/organizations/categories/topics-organizations-categories.js +0 -55
  192. package/tools/organizations/categories/topics-organizations-categories.js.map +0 -1
  193. package/tools/organizations/categories/topics-organizations-categories.mjs +0 -48
  194. package/tools/organizations/categories/topics-organizations-categories.mjs.map +0 -1
  195. package/tools/organizations/domains-organizations.d.mts +0 -45
  196. package/tools/organizations/domains-organizations.d.mts.map +0 -1
  197. package/tools/organizations/domains-organizations.d.ts +0 -45
  198. package/tools/organizations/domains-organizations.d.ts.map +0 -1
  199. package/tools/organizations/domains-organizations.js +0 -51
  200. package/tools/organizations/domains-organizations.js.map +0 -1
  201. package/tools/organizations/domains-organizations.mjs +0 -44
  202. package/tools/organizations/domains-organizations.mjs.map +0 -1
  203. package/tools/organizations/list-assets-organizations.d.mts +0 -45
  204. package/tools/organizations/list-assets-organizations.d.mts.map +0 -1
  205. package/tools/organizations/list-assets-organizations.d.ts +0 -45
  206. package/tools/organizations/list-assets-organizations.d.ts.map +0 -1
  207. package/tools/organizations/list-assets-organizations.js +0 -51
  208. package/tools/organizations/list-assets-organizations.js.map +0 -1
  209. package/tools/organizations/list-assets-organizations.mjs +0 -44
  210. package/tools/organizations/list-assets-organizations.mjs.map +0 -1
  211. package/tools/organizations/models-organizations.d.mts +0 -45
  212. package/tools/organizations/models-organizations.d.mts.map +0 -1
  213. package/tools/organizations/models-organizations.d.ts +0 -45
  214. package/tools/organizations/models-organizations.d.ts.map +0 -1
  215. package/tools/organizations/models-organizations.js +0 -51
  216. package/tools/organizations/models-organizations.js.map +0 -1
  217. package/tools/organizations/models-organizations.mjs +0 -44
  218. package/tools/organizations/models-organizations.mjs.map +0 -1
  219. package/tools/organizations/regions-organizations.d.mts +0 -45
  220. package/tools/organizations/regions-organizations.d.mts.map +0 -1
  221. package/tools/organizations/regions-organizations.d.ts +0 -45
  222. package/tools/organizations/regions-organizations.d.ts.map +0 -1
  223. package/tools/organizations/regions-organizations.js +0 -51
  224. package/tools/organizations/regions-organizations.js.map +0 -1
  225. package/tools/organizations/regions-organizations.mjs +0 -44
  226. package/tools/organizations/regions-organizations.mjs.map +0 -1
  227. package/tools/prompts/answers-prompts.d.mts +0 -45
  228. package/tools/prompts/answers-prompts.d.mts.map +0 -1
  229. package/tools/prompts/answers-prompts.d.ts +0 -45
  230. package/tools/prompts/answers-prompts.d.ts.map +0 -1
  231. package/tools/prompts/answers-prompts.js +0 -372
  232. package/tools/prompts/answers-prompts.js.map +0 -1
  233. package/tools/prompts/answers-prompts.mjs +0 -365
  234. package/tools/prompts/answers-prompts.mjs.map +0 -1
  235. package/tools/reports/citations-reports.d.mts +0 -45
  236. package/tools/reports/citations-reports.d.mts.map +0 -1
  237. package/tools/reports/citations-reports.d.ts +0 -45
  238. package/tools/reports/citations-reports.d.ts.map +0 -1
  239. package/tools/reports/citations-reports.js +0 -503
  240. package/tools/reports/citations-reports.js.map +0 -1
  241. package/tools/reports/citations-reports.mjs +0 -496
  242. package/tools/reports/citations-reports.mjs.map +0 -1
  243. package/tools/reports/sentiment-reports.d.mts +0 -45
  244. package/tools/reports/sentiment-reports.d.mts.map +0 -1
  245. package/tools/reports/sentiment-reports.d.ts +0 -45
  246. package/tools/reports/sentiment-reports.d.ts.map +0 -1
  247. package/tools/reports/sentiment-reports.js +0 -417
  248. package/tools/reports/sentiment-reports.js.map +0 -1
  249. package/tools/reports/sentiment-reports.mjs +0 -410
  250. package/tools/reports/sentiment-reports.mjs.map +0 -1
  251. package/tools/reports/visibility-reports.d.mts +0 -45
  252. package/tools/reports/visibility-reports.d.mts.map +0 -1
  253. package/tools/reports/visibility-reports.d.ts +0 -45
  254. package/tools/reports/visibility-reports.d.ts.map +0 -1
  255. package/tools/reports/visibility-reports.js +0 -363
  256. package/tools/reports/visibility-reports.js.map +0 -1
  257. package/tools/reports/visibility-reports.mjs +0 -356
  258. package/tools/reports/visibility-reports.mjs.map +0 -1
  259. package/tools/types.d.mts.map +0 -1
  260. package/tools/types.d.ts.map +0 -1
  261. package/tools/types.js.map +0 -1
  262. package/tools/types.mjs.map +0 -1
  263. package/tools.d.mts +0 -2
  264. package/tools.d.mts.map +0 -1
  265. package/tools.d.ts +0 -2
  266. package/tools.d.ts.map +0 -1
  267. package/tools.js +0 -18
  268. package/tools.js.map +0 -1
  269. package/tools.mjs +0 -2
  270. package/tools.mjs.map +0 -1
  271. /package/{tools/types.js → types.js} +0 -0
  272. /package/{tools/types.mjs → types.mjs} +0 -0
@@ -1,370 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { Metadata, asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
-
5
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
- import Profound from 'profoundai';
7
-
8
- export const metadata: Metadata = {
9
- resource: 'prompts',
10
- operation: 'write',
11
- tags: [],
12
- httpMethod: 'post',
13
- httpPath: '/v1/prompts/answers',
14
- operationId: 'get_answers_v1_prompts_answers_post',
15
- };
16
-
17
- export const tool: Tool = {
18
- name: 'answers_prompts',
19
- description: 'Get the answers for the prompts.',
20
- inputSchema: {
21
- type: 'object',
22
- properties: {
23
- category_id: {
24
- type: 'string',
25
- title: 'Category Id',
26
- },
27
- end_date: {
28
- type: 'string',
29
- title: 'End Date',
30
- format: 'date-time',
31
- },
32
- start_date: {
33
- type: 'string',
34
- title: 'Start Date',
35
- format: 'date-time',
36
- },
37
- filters: {
38
- type: 'array',
39
- title: 'Filters',
40
- description: 'List of filters to apply to the answers report.',
41
- items: {
42
- anyOf: [
43
- {
44
- type: 'object',
45
- title: 'RegionIdFilter',
46
- properties: {
47
- field: {
48
- type: 'string',
49
- title: 'Field',
50
- description: '- `region` - Deprecated',
51
- enum: ['region_id', 'region'],
52
- },
53
- operator: {
54
- type: 'string',
55
- title: 'Operator',
56
- enum: ['is', 'not_is', 'in', 'not_in'],
57
- },
58
- value: {
59
- anyOf: [
60
- {
61
- type: 'string',
62
- },
63
- {
64
- type: 'array',
65
- items: {
66
- type: 'string',
67
- },
68
- },
69
- ],
70
- title: 'Value',
71
- },
72
- },
73
- required: ['field', 'operator', 'value'],
74
- },
75
- {
76
- type: 'object',
77
- title: 'ModelIdFilter',
78
- properties: {
79
- field: {
80
- type: 'string',
81
- title: 'Field',
82
- description: '- `model` - Deprecated',
83
- enum: ['model_id', 'model'],
84
- },
85
- operator: {
86
- type: 'string',
87
- title: 'Operator',
88
- enum: ['is', 'not_is', 'in', 'not_in'],
89
- },
90
- value: {
91
- anyOf: [
92
- {
93
- type: 'string',
94
- },
95
- {
96
- type: 'array',
97
- items: {
98
- type: 'string',
99
- },
100
- },
101
- ],
102
- title: 'Value',
103
- },
104
- },
105
- required: ['field', 'operator', 'value'],
106
- },
107
- {
108
- type: 'object',
109
- title: 'TagIdFilter',
110
- properties: {
111
- field: {
112
- type: 'string',
113
- title: 'Field',
114
- description: '- `tag` - Deprecated',
115
- enum: ['tag_id', 'tag'],
116
- },
117
- operator: {
118
- type: 'string',
119
- title: 'Operator',
120
- enum: ['is', 'not_is', 'in', 'not_in'],
121
- },
122
- value: {
123
- anyOf: [
124
- {
125
- type: 'string',
126
- },
127
- {
128
- type: 'array',
129
- items: {
130
- type: 'string',
131
- },
132
- },
133
- ],
134
- title: 'Value',
135
- },
136
- },
137
- required: ['field', 'operator', 'value'],
138
- },
139
- {
140
- type: 'object',
141
- title: 'PromptTypeFilter',
142
- description: 'Filter by prompt type (visibility or sentiment)',
143
- properties: {
144
- field: {
145
- type: 'string',
146
- title: 'Field',
147
- enum: ['prompt_type'],
148
- },
149
- operator: {
150
- type: 'string',
151
- title: 'Operator',
152
- enum: [
153
- 'is',
154
- 'not_is',
155
- 'in',
156
- 'not_in',
157
- 'contains',
158
- 'not_contains',
159
- 'matches',
160
- 'contains_case_insensitive',
161
- 'not_contains_case_insensitive',
162
- ],
163
- },
164
- value: {
165
- anyOf: [
166
- {
167
- type: 'string',
168
- enum: ['visibility', 'sentiment'],
169
- },
170
- {
171
- type: 'array',
172
- items: {
173
- type: 'string',
174
- enum: ['visibility', 'sentiment'],
175
- },
176
- },
177
- ],
178
- title: 'Value',
179
- },
180
- },
181
- required: ['field', 'operator', 'value'],
182
- },
183
- {
184
- type: 'object',
185
- title: 'PromptFilter',
186
- description: 'Filter by prompt text',
187
- properties: {
188
- field: {
189
- type: 'string',
190
- title: 'Field',
191
- enum: ['prompt'],
192
- },
193
- operator: {
194
- type: 'string',
195
- title: 'Operator',
196
- enum: [
197
- 'is',
198
- 'not_is',
199
- 'in',
200
- 'not_in',
201
- 'contains',
202
- 'not_contains',
203
- 'matches',
204
- 'contains_case_insensitive',
205
- 'not_contains_case_insensitive',
206
- ],
207
- },
208
- value: {
209
- anyOf: [
210
- {
211
- type: 'string',
212
- },
213
- {
214
- type: 'array',
215
- items: {
216
- type: 'string',
217
- },
218
- },
219
- ],
220
- title: 'Value',
221
- },
222
- },
223
- required: ['field', 'operator', 'value'],
224
- },
225
- {
226
- type: 'object',
227
- title: 'PersonaIdFilter',
228
- properties: {
229
- field: {
230
- type: 'string',
231
- title: 'Field',
232
- enum: ['persona_id'],
233
- },
234
- operator: {
235
- type: 'string',
236
- title: 'Operator',
237
- enum: ['is', 'not_is', 'in', 'not_in'],
238
- },
239
- value: {
240
- anyOf: [
241
- {
242
- type: 'string',
243
- },
244
- {
245
- type: 'array',
246
- items: {
247
- type: 'string',
248
- },
249
- },
250
- ],
251
- title: 'Value',
252
- },
253
- },
254
- required: ['field', 'operator', 'value'],
255
- },
256
- ],
257
- description: 'Filter by prompt type (visibility or sentiment)',
258
- },
259
- },
260
- include: {
261
- type: 'object',
262
- title: 'EnabledFieldsResponse',
263
- properties: {
264
- asset: {
265
- type: 'boolean',
266
- title: 'Asset',
267
- },
268
- citations: {
269
- type: 'boolean',
270
- title: 'Citations',
271
- },
272
- created_at: {
273
- type: 'boolean',
274
- title: 'Created At',
275
- },
276
- mentions: {
277
- type: 'boolean',
278
- title: 'Mentions',
279
- },
280
- model: {
281
- type: 'boolean',
282
- title: 'Model',
283
- },
284
- persona: {
285
- type: 'boolean',
286
- title: 'Persona',
287
- },
288
- prompt: {
289
- type: 'boolean',
290
- title: 'Prompt',
291
- },
292
- prompt_id: {
293
- type: 'boolean',
294
- title: 'Prompt Id',
295
- },
296
- prompt_type: {
297
- type: 'boolean',
298
- title: 'Prompt Type',
299
- },
300
- region: {
301
- type: 'boolean',
302
- title: 'Region',
303
- },
304
- response: {
305
- type: 'boolean',
306
- title: 'Response',
307
- },
308
- run_id: {
309
- type: 'boolean',
310
- title: 'Run Id',
311
- },
312
- search_queries: {
313
- type: 'boolean',
314
- title: 'Search Queries',
315
- },
316
- tags: {
317
- type: 'boolean',
318
- title: 'Tags',
319
- },
320
- themes: {
321
- type: 'boolean',
322
- title: 'Themes',
323
- },
324
- topic: {
325
- type: 'boolean',
326
- title: 'Topic',
327
- },
328
- },
329
- },
330
- pagination: {
331
- $ref: '#/$defs/pagination',
332
- },
333
- },
334
- required: ['category_id', 'end_date', 'start_date'],
335
- $defs: {
336
- pagination: {
337
- type: 'object',
338
- title: 'Pagination',
339
- description: 'Report pagination model.',
340
- properties: {
341
- limit: {
342
- type: 'integer',
343
- title: 'Limit',
344
- description: 'Maximum number of results to return. Default is 10,000, maximum is 50,000.',
345
- },
346
- offset: {
347
- type: 'integer',
348
- title: 'Offset',
349
- description: 'Offset for the results. Used for pagination.',
350
- },
351
- },
352
- },
353
- },
354
- },
355
- annotations: {},
356
- };
357
-
358
- export const handler = async (client: Profound, args: Record<string, unknown> | undefined) => {
359
- const body = args as any;
360
- try {
361
- return asTextContentResult(await client.prompts.answers(body));
362
- } catch (error) {
363
- if (error instanceof Profound.APIError) {
364
- return asErrorResult(error.message);
365
- }
366
- throw error;
367
- }
368
- };
369
-
370
- export default { metadata, tool, handler };