@magnetlab/mcp 0.1.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.
- package/README.md +119 -0
- package/dist/client.d.ts +465 -0
- package/dist/client.js +456 -0
- package/dist/constants.d.ts +30 -0
- package/dist/constants.js +87 -0
- package/dist/handlers/analytics.d.ts +5 -0
- package/dist/handlers/analytics.js +11 -0
- package/dist/handlers/brand-kit.d.ts +5 -0
- package/dist/handlers/brand-kit.js +32 -0
- package/dist/handlers/content-pipeline.d.ts +5 -0
- package/dist/handlers/content-pipeline.js +127 -0
- package/dist/handlers/email-sequences.d.ts +5 -0
- package/dist/handlers/email-sequences.js +30 -0
- package/dist/handlers/funnels.d.ts +5 -0
- package/dist/handlers/funnels.js +65 -0
- package/dist/handlers/ideation.d.ts +5 -0
- package/dist/handlers/ideation.js +44 -0
- package/dist/handlers/index.d.ts +24 -0
- package/dist/handlers/index.js +104 -0
- package/dist/handlers/lead-magnets.d.ts +5 -0
- package/dist/handlers/lead-magnets.js +31 -0
- package/dist/handlers/leads.d.ts +5 -0
- package/dist/handlers/leads.js +24 -0
- package/dist/handlers/libraries.d.ts +5 -0
- package/dist/handlers/libraries.js +31 -0
- package/dist/handlers/qualification-forms.d.ts +5 -0
- package/dist/handlers/qualification-forms.js +21 -0
- package/dist/handlers/swipe-file.d.ts +5 -0
- package/dist/handlers/swipe-file.js +31 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +58 -0
- package/dist/tools/analytics.d.ts +2 -0
- package/dist/tools/analytics.js +10 -0
- package/dist/tools/brand-kit.d.ts +2 -0
- package/dist/tools/brand-kit.js +89 -0
- package/dist/tools/content-pipeline.d.ts +2 -0
- package/dist/tools/content-pipeline.js +476 -0
- package/dist/tools/email-sequences.d.ts +2 -0
- package/dist/tools/email-sequences.js +70 -0
- package/dist/tools/funnels.d.ts +2 -0
- package/dist/tools/funnels.js +153 -0
- package/dist/tools/ideation.d.ts +2 -0
- package/dist/tools/ideation.js +161 -0
- package/dist/tools/index.d.ts +66 -0
- package/dist/tools/index.js +52 -0
- package/dist/tools/lead-magnets.d.ts +2 -0
- package/dist/tools/lead-magnets.js +101 -0
- package/dist/tools/leads.d.ts +2 -0
- package/dist/tools/leads.js +32 -0
- package/dist/tools/libraries.d.ts +2 -0
- package/dist/tools/libraries.js +83 -0
- package/dist/tools/qualification-forms.d.ts +2 -0
- package/dist/tools/qualification-forms.js +71 -0
- package/dist/tools/swipe-file.d.ts +2 -0
- package/dist/tools/swipe-file.js +46 -0
- package/dist/validation.d.ts +476 -0
- package/dist/validation.js +236 -0
- package/package.json +52 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export const qualificationFormTools = [
|
|
2
|
+
{
|
|
3
|
+
name: 'magnetlab_list_qualification_forms',
|
|
4
|
+
description: 'List all qualification forms. These are survey forms attached to funnel pages that filter leads into qualified/unqualified based on their answers.',
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {},
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'magnetlab_get_qualification_form',
|
|
12
|
+
description: 'Get details of a qualification form.',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
id: { type: 'string', description: 'Qualification form UUID' },
|
|
17
|
+
},
|
|
18
|
+
required: ['id'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'magnetlab_create_qualification_form',
|
|
23
|
+
description: 'Create a new qualification form. Add questions to it afterward, then attach it to a funnel page.',
|
|
24
|
+
inputSchema: {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
name: { type: 'string', description: 'Form name' },
|
|
28
|
+
},
|
|
29
|
+
required: ['name'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'magnetlab_list_questions',
|
|
34
|
+
description: 'List all questions in a qualification form.',
|
|
35
|
+
inputSchema: {
|
|
36
|
+
type: 'object',
|
|
37
|
+
properties: {
|
|
38
|
+
form_id: { type: 'string', description: 'Qualification form UUID' },
|
|
39
|
+
},
|
|
40
|
+
required: ['form_id'],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'magnetlab_create_question',
|
|
45
|
+
description: 'Add a question to a qualification form.',
|
|
46
|
+
inputSchema: {
|
|
47
|
+
type: 'object',
|
|
48
|
+
properties: {
|
|
49
|
+
form_id: { type: 'string', description: 'Qualification form UUID' },
|
|
50
|
+
question_text: { type: 'string', description: 'The question text' },
|
|
51
|
+
question_type: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
enum: ['text', 'single_choice', 'multi_choice'],
|
|
54
|
+
description: 'Question type',
|
|
55
|
+
},
|
|
56
|
+
options: {
|
|
57
|
+
type: 'array',
|
|
58
|
+
items: { type: 'string' },
|
|
59
|
+
description: 'Answer options (for choice types)',
|
|
60
|
+
},
|
|
61
|
+
qualifying_answers: {
|
|
62
|
+
type: 'array',
|
|
63
|
+
items: { type: 'string' },
|
|
64
|
+
description: 'Which answers qualify the lead',
|
|
65
|
+
},
|
|
66
|
+
is_required: { type: 'boolean', description: 'Whether the question is required' },
|
|
67
|
+
},
|
|
68
|
+
required: ['form_id', 'question_text', 'question_type'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export const swipeFileTools = [
|
|
2
|
+
{
|
|
3
|
+
name: 'magnetlab_browse_swipe_posts',
|
|
4
|
+
description: 'Browse the community swipe file of high-performing LinkedIn posts. Filter by niche, post type, or featured status. Great for inspiration.',
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
niche: { type: 'string', description: 'Filter by niche/industry' },
|
|
9
|
+
type: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
description: 'Filter by post type (e.g. hook, story, educational, promotional, engagement)',
|
|
12
|
+
},
|
|
13
|
+
featured: { type: 'boolean', description: 'Only show featured/top posts' },
|
|
14
|
+
limit: { type: 'number', default: 20, description: 'Max results (1-50)' },
|
|
15
|
+
offset: { type: 'number', default: 0, description: 'Pagination offset' },
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'magnetlab_browse_swipe_lead_magnets',
|
|
21
|
+
description: 'Browse the community swipe file of lead magnet examples. Filter by niche or format. See what lead magnets are working for others.',
|
|
22
|
+
inputSchema: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
niche: { type: 'string', description: 'Filter by niche/industry' },
|
|
26
|
+
format: { type: 'string', description: 'Filter by lead magnet format' },
|
|
27
|
+
featured: { type: 'boolean', description: 'Only show featured examples' },
|
|
28
|
+
limit: { type: 'number', default: 20, description: 'Max results (1-50)' },
|
|
29
|
+
offset: { type: 'number', default: 0, description: 'Pagination offset' },
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'magnetlab_submit_to_swipe_file',
|
|
35
|
+
description: 'Submit content to the community swipe file. Posts are reviewed before being made public.',
|
|
36
|
+
inputSchema: {
|
|
37
|
+
type: 'object',
|
|
38
|
+
properties: {
|
|
39
|
+
content: { type: 'string', description: 'The post content to share' },
|
|
40
|
+
type: { type: 'string', description: 'Post type category' },
|
|
41
|
+
niche: { type: 'string', description: 'Your niche/industry' },
|
|
42
|
+
},
|
|
43
|
+
required: ['content', 'type', 'niche'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
];
|
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const toolSchemas: {
|
|
3
|
+
readonly magnetlab_get_lead_magnet: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
id: string;
|
|
7
|
+
}, {
|
|
8
|
+
id: string;
|
|
9
|
+
}>;
|
|
10
|
+
readonly magnetlab_create_lead_magnet: z.ZodObject<{
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
archetype: z.ZodEnum<[string, ...string[]]>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
title: string;
|
|
15
|
+
archetype: string;
|
|
16
|
+
}, {
|
|
17
|
+
title: string;
|
|
18
|
+
archetype: string;
|
|
19
|
+
}>;
|
|
20
|
+
readonly magnetlab_delete_lead_magnet: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
id: string;
|
|
24
|
+
}, {
|
|
25
|
+
id: string;
|
|
26
|
+
}>;
|
|
27
|
+
readonly magnetlab_get_lead_magnet_stats: z.ZodObject<{
|
|
28
|
+
lead_magnet_id: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
lead_magnet_id: string;
|
|
31
|
+
}, {
|
|
32
|
+
lead_magnet_id: string;
|
|
33
|
+
}>;
|
|
34
|
+
readonly magnetlab_analyze_competitor: z.ZodObject<{
|
|
35
|
+
url: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
url: string;
|
|
38
|
+
}, {
|
|
39
|
+
url: string;
|
|
40
|
+
}>;
|
|
41
|
+
readonly magnetlab_analyze_transcript: z.ZodObject<{
|
|
42
|
+
transcript: z.ZodString;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
transcript: string;
|
|
45
|
+
}, {
|
|
46
|
+
transcript: string;
|
|
47
|
+
}>;
|
|
48
|
+
readonly magnetlab_ideate_lead_magnets: z.ZodObject<{
|
|
49
|
+
business_description: z.ZodString;
|
|
50
|
+
business_type: z.ZodString;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
business_description: string;
|
|
53
|
+
business_type: string;
|
|
54
|
+
}, {
|
|
55
|
+
business_description: string;
|
|
56
|
+
business_type: string;
|
|
57
|
+
}>;
|
|
58
|
+
readonly magnetlab_extract_content: z.ZodObject<{
|
|
59
|
+
lead_magnet_id: z.ZodString;
|
|
60
|
+
archetype: z.ZodEnum<[string, ...string[]]>;
|
|
61
|
+
concept: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
62
|
+
answers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
archetype: string;
|
|
65
|
+
concept: Record<string, unknown>;
|
|
66
|
+
lead_magnet_id: string;
|
|
67
|
+
answers: Record<string, string>;
|
|
68
|
+
}, {
|
|
69
|
+
archetype: string;
|
|
70
|
+
concept: Record<string, unknown>;
|
|
71
|
+
lead_magnet_id: string;
|
|
72
|
+
answers: Record<string, string>;
|
|
73
|
+
}>;
|
|
74
|
+
readonly magnetlab_generate_content: z.ZodObject<{
|
|
75
|
+
lead_magnet_id: z.ZodString;
|
|
76
|
+
archetype: z.ZodEnum<[string, ...string[]]>;
|
|
77
|
+
concept: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
78
|
+
answers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
archetype: string;
|
|
81
|
+
concept: Record<string, unknown>;
|
|
82
|
+
lead_magnet_id: string;
|
|
83
|
+
answers: Record<string, string>;
|
|
84
|
+
}, {
|
|
85
|
+
archetype: string;
|
|
86
|
+
concept: Record<string, unknown>;
|
|
87
|
+
lead_magnet_id: string;
|
|
88
|
+
answers: Record<string, string>;
|
|
89
|
+
}>;
|
|
90
|
+
readonly magnetlab_write_linkedin_posts: z.ZodObject<{
|
|
91
|
+
lead_magnet_id: z.ZodString;
|
|
92
|
+
lead_magnet_title: z.ZodString;
|
|
93
|
+
contents: z.ZodString;
|
|
94
|
+
problem_solved: z.ZodString;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
lead_magnet_id: string;
|
|
97
|
+
lead_magnet_title: string;
|
|
98
|
+
contents: string;
|
|
99
|
+
problem_solved: string;
|
|
100
|
+
}, {
|
|
101
|
+
lead_magnet_id: string;
|
|
102
|
+
lead_magnet_title: string;
|
|
103
|
+
contents: string;
|
|
104
|
+
problem_solved: string;
|
|
105
|
+
}>;
|
|
106
|
+
readonly magnetlab_polish_lead_magnet: z.ZodObject<{
|
|
107
|
+
lead_magnet_id: z.ZodString;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
lead_magnet_id: string;
|
|
110
|
+
}, {
|
|
111
|
+
lead_magnet_id: string;
|
|
112
|
+
}>;
|
|
113
|
+
readonly magnetlab_get_job_status: z.ZodObject<{
|
|
114
|
+
job_id: z.ZodString;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
job_id: string;
|
|
117
|
+
}, {
|
|
118
|
+
job_id: string;
|
|
119
|
+
}>;
|
|
120
|
+
readonly magnetlab_get_funnel: z.ZodObject<{
|
|
121
|
+
id: z.ZodString;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
id: string;
|
|
124
|
+
}, {
|
|
125
|
+
id: string;
|
|
126
|
+
}>;
|
|
127
|
+
readonly magnetlab_create_funnel: z.ZodObject<{
|
|
128
|
+
slug: z.ZodString;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
slug: string;
|
|
131
|
+
}, {
|
|
132
|
+
slug: string;
|
|
133
|
+
}>;
|
|
134
|
+
readonly magnetlab_update_funnel: z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
id: string;
|
|
138
|
+
}, {
|
|
139
|
+
id: string;
|
|
140
|
+
}>;
|
|
141
|
+
readonly magnetlab_delete_funnel: z.ZodObject<{
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
id: string;
|
|
145
|
+
}, {
|
|
146
|
+
id: string;
|
|
147
|
+
}>;
|
|
148
|
+
readonly magnetlab_publish_funnel: z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
id: string;
|
|
152
|
+
}, {
|
|
153
|
+
id: string;
|
|
154
|
+
}>;
|
|
155
|
+
readonly magnetlab_unpublish_funnel: z.ZodObject<{
|
|
156
|
+
id: z.ZodString;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
id: string;
|
|
159
|
+
}, {
|
|
160
|
+
id: string;
|
|
161
|
+
}>;
|
|
162
|
+
readonly magnetlab_generate_funnel_content: z.ZodObject<{
|
|
163
|
+
lead_magnet_id: z.ZodString;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
lead_magnet_id: string;
|
|
166
|
+
}, {
|
|
167
|
+
lead_magnet_id: string;
|
|
168
|
+
}>;
|
|
169
|
+
readonly magnetlab_get_email_sequence: z.ZodObject<{
|
|
170
|
+
lead_magnet_id: z.ZodString;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
lead_magnet_id: string;
|
|
173
|
+
}, {
|
|
174
|
+
lead_magnet_id: string;
|
|
175
|
+
}>;
|
|
176
|
+
readonly magnetlab_generate_email_sequence: z.ZodObject<{
|
|
177
|
+
lead_magnet_id: z.ZodString;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
lead_magnet_id: string;
|
|
180
|
+
}, {
|
|
181
|
+
lead_magnet_id: string;
|
|
182
|
+
}>;
|
|
183
|
+
readonly magnetlab_update_email_sequence: z.ZodObject<{
|
|
184
|
+
lead_magnet_id: z.ZodString;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
lead_magnet_id: string;
|
|
187
|
+
}, {
|
|
188
|
+
lead_magnet_id: string;
|
|
189
|
+
}>;
|
|
190
|
+
readonly magnetlab_activate_email_sequence: z.ZodObject<{
|
|
191
|
+
lead_magnet_id: z.ZodString;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
lead_magnet_id: string;
|
|
194
|
+
}, {
|
|
195
|
+
lead_magnet_id: string;
|
|
196
|
+
}>;
|
|
197
|
+
readonly magnetlab_submit_transcript: z.ZodObject<{
|
|
198
|
+
transcript: z.ZodString;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
transcript: string;
|
|
201
|
+
}, {
|
|
202
|
+
transcript: string;
|
|
203
|
+
}>;
|
|
204
|
+
readonly magnetlab_delete_transcript: z.ZodObject<{
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
id: string;
|
|
208
|
+
}, {
|
|
209
|
+
id: string;
|
|
210
|
+
}>;
|
|
211
|
+
readonly magnetlab_search_knowledge: z.ZodObject<{
|
|
212
|
+
query: z.ZodString;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
query: string;
|
|
215
|
+
}, {
|
|
216
|
+
query: string;
|
|
217
|
+
}>;
|
|
218
|
+
readonly magnetlab_get_idea: z.ZodObject<{
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
id: string;
|
|
222
|
+
}, {
|
|
223
|
+
id: string;
|
|
224
|
+
}>;
|
|
225
|
+
readonly magnetlab_update_idea_status: z.ZodObject<{
|
|
226
|
+
idea_id: z.ZodString;
|
|
227
|
+
status: z.ZodEnum<[string, ...string[]]>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
status: string;
|
|
230
|
+
idea_id: string;
|
|
231
|
+
}, {
|
|
232
|
+
status: string;
|
|
233
|
+
idea_id: string;
|
|
234
|
+
}>;
|
|
235
|
+
readonly magnetlab_delete_idea: z.ZodObject<{
|
|
236
|
+
id: z.ZodString;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
id: string;
|
|
239
|
+
}, {
|
|
240
|
+
id: string;
|
|
241
|
+
}>;
|
|
242
|
+
readonly magnetlab_write_post_from_idea: z.ZodObject<{
|
|
243
|
+
idea_id: z.ZodString;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
idea_id: string;
|
|
246
|
+
}, {
|
|
247
|
+
idea_id: string;
|
|
248
|
+
}>;
|
|
249
|
+
readonly magnetlab_get_post: z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
id: string;
|
|
253
|
+
}, {
|
|
254
|
+
id: string;
|
|
255
|
+
}>;
|
|
256
|
+
readonly magnetlab_update_post: z.ZodObject<{
|
|
257
|
+
id: z.ZodString;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
id: string;
|
|
260
|
+
}, {
|
|
261
|
+
id: string;
|
|
262
|
+
}>;
|
|
263
|
+
readonly magnetlab_delete_post: z.ZodObject<{
|
|
264
|
+
id: z.ZodString;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
id: string;
|
|
267
|
+
}, {
|
|
268
|
+
id: string;
|
|
269
|
+
}>;
|
|
270
|
+
readonly magnetlab_polish_post: z.ZodObject<{
|
|
271
|
+
id: z.ZodString;
|
|
272
|
+
}, "strip", z.ZodTypeAny, {
|
|
273
|
+
id: string;
|
|
274
|
+
}, {
|
|
275
|
+
id: string;
|
|
276
|
+
}>;
|
|
277
|
+
readonly magnetlab_publish_post: z.ZodObject<{
|
|
278
|
+
id: z.ZodString;
|
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
id: string;
|
|
281
|
+
}, {
|
|
282
|
+
id: string;
|
|
283
|
+
}>;
|
|
284
|
+
readonly magnetlab_schedule_post: z.ZodObject<{
|
|
285
|
+
post_id: z.ZodString;
|
|
286
|
+
scheduled_time: z.ZodString;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
post_id: string;
|
|
289
|
+
scheduled_time: string;
|
|
290
|
+
}, {
|
|
291
|
+
post_id: string;
|
|
292
|
+
scheduled_time: string;
|
|
293
|
+
}>;
|
|
294
|
+
readonly magnetlab_get_posts_by_date_range: z.ZodObject<{
|
|
295
|
+
start_date: z.ZodString;
|
|
296
|
+
end_date: z.ZodString;
|
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
start_date: string;
|
|
299
|
+
end_date: string;
|
|
300
|
+
}, {
|
|
301
|
+
start_date: string;
|
|
302
|
+
end_date: string;
|
|
303
|
+
}>;
|
|
304
|
+
readonly magnetlab_quick_write: z.ZodObject<{
|
|
305
|
+
topic: z.ZodString;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
topic: string;
|
|
308
|
+
}, {
|
|
309
|
+
topic: string;
|
|
310
|
+
}>;
|
|
311
|
+
readonly magnetlab_create_posting_slot: z.ZodObject<{
|
|
312
|
+
day_of_week: z.ZodNumber;
|
|
313
|
+
time: z.ZodString;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
day_of_week: number;
|
|
316
|
+
time: string;
|
|
317
|
+
}, {
|
|
318
|
+
day_of_week: number;
|
|
319
|
+
time: string;
|
|
320
|
+
}>;
|
|
321
|
+
readonly magnetlab_delete_posting_slot: z.ZodObject<{
|
|
322
|
+
id: z.ZodString;
|
|
323
|
+
}, "strip", z.ZodTypeAny, {
|
|
324
|
+
id: string;
|
|
325
|
+
}, {
|
|
326
|
+
id: string;
|
|
327
|
+
}>;
|
|
328
|
+
readonly magnetlab_approve_plan: z.ZodObject<{
|
|
329
|
+
plan_id: z.ZodString;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
plan_id: string;
|
|
332
|
+
}, {
|
|
333
|
+
plan_id: string;
|
|
334
|
+
}>;
|
|
335
|
+
readonly magnetlab_update_business_context: z.ZodObject<{
|
|
336
|
+
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
|
+
context: Record<string, unknown>;
|
|
339
|
+
}, {
|
|
340
|
+
context: Record<string, unknown>;
|
|
341
|
+
}>;
|
|
342
|
+
readonly magnetlab_extract_writing_style: z.ZodObject<{
|
|
343
|
+
linkedin_url: z.ZodString;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
linkedin_url: string;
|
|
346
|
+
}, {
|
|
347
|
+
linkedin_url: string;
|
|
348
|
+
}>;
|
|
349
|
+
readonly magnetlab_get_writing_style: z.ZodObject<{
|
|
350
|
+
id: z.ZodString;
|
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
|
352
|
+
id: string;
|
|
353
|
+
}, {
|
|
354
|
+
id: string;
|
|
355
|
+
}>;
|
|
356
|
+
readonly magnetlab_match_template: z.ZodObject<{
|
|
357
|
+
idea_id: z.ZodString;
|
|
358
|
+
}, "strip", z.ZodTypeAny, {
|
|
359
|
+
idea_id: string;
|
|
360
|
+
}, {
|
|
361
|
+
idea_id: string;
|
|
362
|
+
}>;
|
|
363
|
+
readonly magnetlab_extract_business_context: z.ZodObject<{
|
|
364
|
+
content: z.ZodString;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
content: string;
|
|
367
|
+
}, {
|
|
368
|
+
content: string;
|
|
369
|
+
}>;
|
|
370
|
+
readonly magnetlab_submit_to_swipe_file: z.ZodObject<{
|
|
371
|
+
content: z.ZodString;
|
|
372
|
+
type: z.ZodString;
|
|
373
|
+
niche: z.ZodString;
|
|
374
|
+
}, "strip", z.ZodTypeAny, {
|
|
375
|
+
niche: string;
|
|
376
|
+
type: string;
|
|
377
|
+
content: string;
|
|
378
|
+
}, {
|
|
379
|
+
niche: string;
|
|
380
|
+
type: string;
|
|
381
|
+
content: string;
|
|
382
|
+
}>;
|
|
383
|
+
readonly magnetlab_get_library: z.ZodObject<{
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
id: string;
|
|
387
|
+
}, {
|
|
388
|
+
id: string;
|
|
389
|
+
}>;
|
|
390
|
+
readonly magnetlab_create_library: z.ZodObject<{
|
|
391
|
+
name: z.ZodString;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
name: string;
|
|
394
|
+
}, {
|
|
395
|
+
name: string;
|
|
396
|
+
}>;
|
|
397
|
+
readonly magnetlab_update_library: z.ZodObject<{
|
|
398
|
+
id: z.ZodString;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
id: string;
|
|
401
|
+
}, {
|
|
402
|
+
id: string;
|
|
403
|
+
}>;
|
|
404
|
+
readonly magnetlab_delete_library: z.ZodObject<{
|
|
405
|
+
id: z.ZodString;
|
|
406
|
+
}, "strip", z.ZodTypeAny, {
|
|
407
|
+
id: string;
|
|
408
|
+
}, {
|
|
409
|
+
id: string;
|
|
410
|
+
}>;
|
|
411
|
+
readonly magnetlab_list_library_items: z.ZodObject<{
|
|
412
|
+
library_id: z.ZodString;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
library_id: string;
|
|
415
|
+
}, {
|
|
416
|
+
library_id: string;
|
|
417
|
+
}>;
|
|
418
|
+
readonly magnetlab_create_library_item: z.ZodObject<{
|
|
419
|
+
library_id: z.ZodString;
|
|
420
|
+
title: z.ZodString;
|
|
421
|
+
}, "strip", z.ZodTypeAny, {
|
|
422
|
+
title: string;
|
|
423
|
+
library_id: string;
|
|
424
|
+
}, {
|
|
425
|
+
title: string;
|
|
426
|
+
library_id: string;
|
|
427
|
+
}>;
|
|
428
|
+
readonly magnetlab_get_qualification_form: z.ZodObject<{
|
|
429
|
+
id: z.ZodString;
|
|
430
|
+
}, "strip", z.ZodTypeAny, {
|
|
431
|
+
id: string;
|
|
432
|
+
}, {
|
|
433
|
+
id: string;
|
|
434
|
+
}>;
|
|
435
|
+
readonly magnetlab_create_qualification_form: z.ZodObject<{
|
|
436
|
+
name: z.ZodString;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
name: string;
|
|
439
|
+
}, {
|
|
440
|
+
name: string;
|
|
441
|
+
}>;
|
|
442
|
+
readonly magnetlab_list_questions: z.ZodObject<{
|
|
443
|
+
form_id: z.ZodString;
|
|
444
|
+
}, "strip", z.ZodTypeAny, {
|
|
445
|
+
form_id: string;
|
|
446
|
+
}, {
|
|
447
|
+
form_id: string;
|
|
448
|
+
}>;
|
|
449
|
+
readonly magnetlab_create_question: z.ZodObject<{
|
|
450
|
+
form_id: z.ZodString;
|
|
451
|
+
question_text: z.ZodString;
|
|
452
|
+
question_type: z.ZodEnum<["text", "single_choice", "multi_choice"]>;
|
|
453
|
+
}, "strip", z.ZodTypeAny, {
|
|
454
|
+
form_id: string;
|
|
455
|
+
question_text: string;
|
|
456
|
+
question_type: "text" | "single_choice" | "multi_choice";
|
|
457
|
+
}, {
|
|
458
|
+
form_id: string;
|
|
459
|
+
question_text: string;
|
|
460
|
+
question_type: "text" | "single_choice" | "multi_choice";
|
|
461
|
+
}>;
|
|
462
|
+
};
|
|
463
|
+
export type ToolName = keyof typeof toolSchemas;
|
|
464
|
+
export type ValidationResult<T> = {
|
|
465
|
+
success: true;
|
|
466
|
+
data: T;
|
|
467
|
+
} | {
|
|
468
|
+
success: false;
|
|
469
|
+
error: string;
|
|
470
|
+
};
|
|
471
|
+
/**
|
|
472
|
+
* Validate tool arguments against the schema for the given tool.
|
|
473
|
+
* Returns success with parsed data if valid, or failure with error message.
|
|
474
|
+
* Tools without schemas pass through unchanged.
|
|
475
|
+
*/
|
|
476
|
+
export declare function validateToolArgs<T>(toolName: string, args: unknown): ValidationResult<T>;
|