@canonry/canonry 7.51.4 → 7.51.6
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/assets/assets/AccessControls-B5TqDgeq.js +1 -0
- package/assets/assets/AuditHistoryPanel-DgxiizOW.js +1 -0
- package/assets/assets/BacklinksPage-Ay6pdphx.js +1 -0
- package/assets/assets/ChartPrimitives-DIEeZdrs.js +1 -0
- package/assets/assets/Hint-Cn4lh0Do.js +1 -0
- package/assets/assets/HistoryPage-B11eFH21.js +1 -0
- package/assets/assets/InfoTooltip-TIx9qM5h.js +1 -0
- package/assets/assets/MeasurementPropertyPage-1UYI7mzP.js +4 -0
- package/assets/assets/ProjectPage-DoY0hftd.js +8 -0
- package/assets/assets/RunsPage-BPBmuQAS.js +1 -0
- package/assets/assets/SettingsPage-ClKnP8xy.js +1 -0
- package/assets/assets/SiteHealthSection-PWjKMmEn.js +2 -0
- package/assets/assets/TrafficPage-DkfGiJXR.js +40 -0
- package/assets/assets/TrafficSourceDetailPage-DQu0YNt2.js +1 -0
- package/assets/assets/async-handler-Bj3TnIRw.js +1 -0
- package/assets/assets/card-DYMyvhB9.js +60 -0
- package/assets/assets/extract-error-message-BRM1I_3L.js +1 -0
- package/assets/assets/format-helpers-DrkFERj3.js +3 -0
- package/assets/assets/index-CG1Jox52.js +39 -0
- package/assets/assets/index-CsPsaUr7.css +1 -0
- package/assets/assets/query-client-gRFnU4VF.js +1 -0
- package/assets/assets/react-query-lH82FULK.js +1 -0
- package/assets/assets/react-sigma_core.esm.min-D09H4byP.js +3225 -0
- package/assets/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/assets/assets/service-Cx0HSnE9.js +1 -0
- package/assets/assets/vendor-lucide-BjvO55Hk.js +1 -0
- package/assets/assets/vendor-markdown-DWjffpgb.js +29 -0
- package/assets/assets/vendor-radix-BU76HM0G.js +41 -0
- package/assets/assets/vendor-recharts-CsHBXoK8.js +59 -0
- package/assets/assets/vendor-tanstack-QhOrDhIL.js +2 -0
- package/assets/assets/vendor-yaml-Y43rmNgW.js +105 -0
- package/assets/index.html +16 -8
- package/dist/ads-ABAT3K4K.js +544 -0
- package/dist/agent-5G4DRLYX.js +70 -0
- package/dist/agent-ask-UDVCZRO7.js +139 -0
- package/dist/agent-conversations-5E4JP2QZ.js +52 -0
- package/dist/agent-memory-7IIJ4HGZ.js +92 -0
- package/dist/agent-providers-BOXPUXZ4.js +55 -0
- package/dist/agent-transcript-4O56G6PQ.js +77 -0
- package/dist/analytics-PKMWX5XL.js +240 -0
- package/dist/apply-OK4XEBDA.js +175 -0
- package/dist/backfill-2OT56CX2.js +41 -0
- package/dist/backlinks-547WCHND.js +303 -0
- package/dist/bing-ZVBV4ZD5.js +418 -0
- package/dist/bootstrap-HUB7XQ73.js +326 -0
- package/dist/cdp-KQKQ4PWJ.js +162 -0
- package/dist/chunk-2G6IP3MO.js +517 -0
- package/dist/chunk-42D2LE2B.js +1273 -0
- package/dist/chunk-4MJYGB56.js +124 -0
- package/dist/chunk-63ISSSGX.js +9150 -0
- package/dist/{chunk-HHRM3H3L.js → chunk-6G6FTDWC.js} +8082 -13941
- package/dist/chunk-6GO5VVAC.js +15 -0
- package/dist/{chunk-6GNV6VF4.js → chunk-73P65KPW.js} +2 -2
- package/dist/chunk-7B2Q4NJE.js +133 -0
- package/dist/{chunk-KU4TPVZV.js → chunk-7WZ2FPB4.js} +2 -13
- package/dist/chunk-AOJU5LKX.js +8 -0
- package/dist/chunk-B2FR2ZQ4.js +420 -0
- package/dist/chunk-B5J675KK.js +6557 -0
- package/dist/{chunk-YOGHHIGE.js → chunk-D6COIM3U.js} +17155 -17164
- package/dist/{chunk-KUS7M65J.js → chunk-DGVUTH7W.js} +6809 -32243
- package/dist/chunk-ELCLGWUT.js +83 -0
- package/dist/chunk-GO2J7SYT.js +1034 -0
- package/dist/chunk-HACZUMGM.js +145 -0
- package/dist/chunk-HM4NNKLG.js +94 -0
- package/dist/chunk-I3A56PFP.js +58 -0
- package/dist/chunk-I77PLCWG.js +961 -0
- package/dist/chunk-ISOQPVPY.js +232 -0
- package/dist/chunk-KFT5LOP2.js +610 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-MMEO22MF.js +38 -0
- package/dist/chunk-NHQ2U5I4.js +78 -0
- package/dist/chunk-PCXRFT3N.js +530 -0
- package/dist/chunk-PITHTCAX.js +15376 -0
- package/dist/chunk-QWKPSFGL.js +30 -0
- package/dist/chunk-RKIXES2B.js +609 -0
- package/dist/chunk-TSENU4GG.js +18 -0
- package/dist/{chunk-P6D6P337.js → chunk-TUTKNUMV.js} +7 -5
- package/dist/chunk-U3AHE2RT.js +1160 -0
- package/dist/chunk-UQ3MOZGC.js +644 -0
- package/dist/{chunk-35QQMVO6.js → chunk-VBCE4CLX.js} +6 -4
- package/dist/chunk-VJWDBFSL.js +69 -0
- package/dist/chunk-VYMZ3QXG.js +8264 -0
- package/dist/chunk-WAULJDKO.js +2686 -0
- package/dist/chunk-WDFI5YMD.js +204 -0
- package/dist/chunk-XEBKF4N5.js +8 -0
- package/dist/chunk-Z7IUAJOF.js +13 -0
- package/dist/{chunk-RUWELF3K.js → chunk-ZWJRY5UI.js} +358 -581
- package/dist/chunk-ZXUAWVWM.js +15 -0
- package/dist/citations-UYB2RU5U.js +106 -0
- package/dist/{cli-catalog-KTQ6BHEU.js → cli-catalog-F6FI7NB2.js} +5 -3
- package/dist/cli-commands-ZG5ILKDA.js +19 -0
- package/dist/cli.js +35 -29
- package/dist/competitor-EKP4R7YY.js +561 -0
- package/dist/content-DREE6JF3.js +257 -0
- package/dist/dashboard-ZALEOLLU.js +71 -0
- package/dist/demo-JG4Y22O4.js +75 -0
- package/dist/{demo-server-26UUDUM7.js → demo-server-3A4J2C65.js} +22 -9
- package/dist/discover-W6GMD2HS.js +372 -0
- package/dist/discover-eval-CKFZHRBW.js +282 -0
- package/dist/doctor-TNGBSUMA.js +152 -0
- package/dist/evidence-3H2GFQBZ.js +57 -0
- package/dist/export-cmd-WUIKU5GK.js +49 -0
- package/dist/ga-JI6REFO4.js +911 -0
- package/dist/gbp-4ENDM5NS.js +370 -0
- package/dist/google-HKQSCLOC.js +946 -0
- package/dist/google-marketing-KQR5J2S4.js +403 -0
- package/dist/health-cmd-TS7EMMCS.js +64 -0
- package/dist/history-MSD5DK6K.js +90 -0
- package/dist/index.d.ts +194 -60
- package/dist/index.js +29 -6
- package/dist/init-L6WAEOWX.js +432 -0
- package/dist/insights-RTZ3IZTD.js +63 -0
- package/dist/intelligence-service-TH52PCNJ.js +15 -0
- package/dist/keys-625DZBRM.js +116 -0
- package/dist/keyword-CW46RNRR.js +164 -0
- package/dist/logs-V33SHBIW.js +30 -0
- package/dist/mcp-DFEDPSEG.js +14 -0
- package/dist/mcp.js +14 -5
- package/dist/measurement-plan-6W37RUOP.js +42 -0
- package/dist/notify-DSUOT7WO.js +125 -0
- package/dist/organic-evidence-BMN6L4OB.js +53 -0
- package/dist/overview-WRRMBZ6S.js +213 -0
- package/dist/project-2GJIU3FE.js +460 -0
- package/dist/query-3XPMGJUA.js +211 -0
- package/dist/research-V433CKJ4.js +200 -0
- package/dist/results-export-RGBU7QQQ.js +27 -0
- package/dist/run-NIAC6OJN.js +31 -0
- package/dist/schedule-KDWXRIE7.js +177 -0
- package/dist/search-626MPUJN.js +42 -0
- package/dist/serve-73SMMASI.js +557 -0
- package/dist/session-7WWOETZB.js +47 -0
- package/dist/settings-VKFQO6F2.js +107 -0
- package/dist/skills-5HC5H7TE.js +33 -0
- package/dist/snapshot-BSJUHFBC.js +538 -0
- package/dist/src-F6HM73TN.js +316 -0
- package/dist/status-V4OWP7LZ.js +126 -0
- package/dist/support-ARF4HER7.js +24 -0
- package/dist/technical-aeo-TG7CGU3F.js +625 -0
- package/dist/telemetry-O2IUNUBW.js +118 -0
- package/dist/tools-2GJIDKND.js +41 -0
- package/dist/traffic-XV4I3UPH.js +1295 -0
- package/dist/users-VGBLDL5K.js +170 -0
- package/dist/visibility-stats-UKJYJ6PP.js +241 -0
- package/dist/wordpress-JZA7CGC6.js +600 -0
- package/package.json +30 -30
- package/assets/assets/AuditHistoryPanel-CtWNkC6F.js +0 -1
- package/assets/assets/BacklinksPage-Cs3_j55C.js +0 -1
- package/assets/assets/ChartPrimitives-B6ryduMN.js +0 -1
- package/assets/assets/Hint-DICI5Jq9.js +0 -1
- package/assets/assets/HistoryPage-_5Vwj01m.js +0 -1
- package/assets/assets/MeasurementPropertyPage-B2yBTUZd.js +0 -4
- package/assets/assets/ProjectPage-hs-9PcoS.js +0 -8
- package/assets/assets/RunsPage-B_mhz9vj.js +0 -1
- package/assets/assets/SettingsPage-D1Lzcw03.js +0 -1
- package/assets/assets/SiteHealthSection-CGlrPdrk.js +0 -4
- package/assets/assets/TrafficPage-C27a0rQp.js +0 -40
- package/assets/assets/TrafficSourceDetailPage-DOSoQySv.js +0 -1
- package/assets/assets/extract-error-message-itBoiivg.js +0 -1
- package/assets/assets/index-Br2WtEIO.css +0 -1
- package/assets/assets/index-CdAuyP-X.js +0 -86
- package/assets/assets/react-sigma_core.esm.min-CPYhSQFc.js +0 -312
- package/assets/assets/v2-overview-adapter-DQXWmK0B.js +0 -1
- package/assets/assets/vendor-lucide-Y6jANGfG.js +0 -1
- package/assets/assets/vendor-markdown-B4giJcws.js +0 -29
- package/assets/assets/vendor-radix-twS1M3FF.js +0 -45
- package/assets/assets/vendor-recharts-D_R6YxjS.js +0 -36
- package/assets/assets/vendor-tanstack-ZXXkndVj.js +0 -1
- package/assets/assets/vendor-yaml-GWJz5H2G.js +0 -131
- package/dist/chunk-EQTVQIM2.js +0 -23082
- package/dist/chunk-GZPJ7TSE.js +0 -10872
- package/dist/cli-commands-5ZODWR4I.js +0 -15
- package/dist/intelligence-service-ZGDBVFDE.js +0 -9
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
dedupeGscSitemapUrls,
|
|
3
|
+
resolveDiscoveredGscSitemapUrls,
|
|
4
|
+
submitGscSitemapBatches
|
|
5
|
+
} from "./chunk-HM4NNKLG.js";
|
|
6
|
+
import {
|
|
7
|
+
measurementDraftOperationSchema,
|
|
8
|
+
runMeasurementDraftAction
|
|
9
|
+
} from "./chunk-HACZUMGM.js";
|
|
10
|
+
import {
|
|
11
|
+
CliError
|
|
4
12
|
} from "./chunk-HGMYEDAQ.js";
|
|
5
13
|
import {
|
|
6
14
|
AGENT_MEMORY_KEY_MAX_LENGTH,
|
|
@@ -45,7 +53,6 @@ import {
|
|
|
45
53
|
competitorLandscapeQuerySchema,
|
|
46
54
|
competitorSuggestionsQuerySchema,
|
|
47
55
|
contentTargetDismissRequestSchema,
|
|
48
|
-
describeError,
|
|
49
56
|
discoveryBucketSchema,
|
|
50
57
|
discoveryCompetitorTypeSchema,
|
|
51
58
|
discoveryPromoteRequestSchema,
|
|
@@ -66,30 +73,7 @@ import {
|
|
|
66
73
|
measurementChangesQuerySchema,
|
|
67
74
|
measurementDataQualityQuerySchema,
|
|
68
75
|
measurementDiscoveryRequestSchema,
|
|
69
|
-
measurementDraftApplyAssignmentsRequestSchema,
|
|
70
|
-
measurementDraftApplyGroupMembershipRequestSchema,
|
|
71
|
-
measurementDraftApplyPairedAssignmentsRequestSchema,
|
|
72
|
-
measurementDraftApplySitemapSelectionRequestSchema,
|
|
73
|
-
measurementDraftClassifyAssignmentsRequestSchema,
|
|
74
|
-
measurementDraftClearAssignmentsRequestSchema,
|
|
75
76
|
measurementDraftCollectionQuerySchema,
|
|
76
|
-
measurementDraftCreateRequestSchema,
|
|
77
|
-
measurementDraftExcludeTargetRequestSchema,
|
|
78
|
-
measurementDraftImportSitemapRequestSchema,
|
|
79
|
-
measurementDraftMergeTargetsRequestSchema,
|
|
80
|
-
measurementDraftPreviewAssignmentsRequestSchema,
|
|
81
|
-
measurementDraftPreviewGroupMembershipRequestSchema,
|
|
82
|
-
measurementDraftPublishRequestSchema,
|
|
83
|
-
measurementDraftRebindTargetRequestSchema,
|
|
84
|
-
measurementDraftRemoveAssignmentRequestSchema,
|
|
85
|
-
measurementDraftRemoveCompetitorRequestSchema,
|
|
86
|
-
measurementDraftRemoveGroupRequestSchema,
|
|
87
|
-
measurementDraftRenameTargetRequestSchema,
|
|
88
|
-
measurementDraftReplaceAssignmentsRequestSchema,
|
|
89
|
-
measurementDraftUpsertCompetitorRequestSchema,
|
|
90
|
-
measurementDraftUpsertGroupRequestSchema,
|
|
91
|
-
measurementDraftUpsertMarketRequestSchema,
|
|
92
|
-
measurementDraftUpsertTargetRequestSchema,
|
|
93
77
|
measurementOverviewQuerySchema,
|
|
94
78
|
measurementPlanAuthoringSchema,
|
|
95
79
|
measurementPlanDeactivateRequestSchema,
|
|
@@ -163,224 +147,24 @@ import {
|
|
|
163
147
|
trafficSeriesGranularitySchema,
|
|
164
148
|
visibilityCompareSelectionSchema,
|
|
165
149
|
visibilityReportRequestSchema
|
|
166
|
-
} from "./chunk-
|
|
167
|
-
|
|
168
|
-
// src/package-version.ts
|
|
169
|
-
import { createRequire } from "module";
|
|
170
|
-
var _require = createRequire(import.meta.url);
|
|
171
|
-
var PACKAGE_VERSION = _require("../package.json").version;
|
|
150
|
+
} from "./chunk-D6COIM3U.js";
|
|
172
151
|
|
|
173
152
|
// src/mcp/tool-registry.ts
|
|
174
|
-
import { z as
|
|
175
|
-
|
|
176
|
-
// src/gsc-sitemap-submission.ts
|
|
177
|
-
function dedupeGscSitemapUrls(urls) {
|
|
178
|
-
return [...new Set(urls.map((url) => url.trim()).filter(Boolean))];
|
|
179
|
-
}
|
|
180
|
-
async function resolveDiscoveredGscSitemapUrls(client, project, mode) {
|
|
181
|
-
const topLevel = await client.gscSitemaps(project);
|
|
182
|
-
if (mode === "indexes") {
|
|
183
|
-
return dedupeGscSitemapUrls(
|
|
184
|
-
topLevel.preferredSubmissionUrls.length > 0 ? topLevel.preferredSubmissionUrls : topLevel.sitemaps.map((sitemap) => sitemap.path)
|
|
185
|
-
);
|
|
186
|
-
}
|
|
187
|
-
const indexes = topLevel.sitemaps.filter((sitemap) => sitemap.isSitemapsIndex).map((sitemap) => sitemap.path);
|
|
188
|
-
const expandedIndexUrls = [];
|
|
189
|
-
for (let offset = 0; offset < indexes.length; offset += 4) {
|
|
190
|
-
const children = await Promise.all(
|
|
191
|
-
indexes.slice(offset, offset + 4).map((sitemapIndex) => client.gscSitemaps(project, { sitemapIndex }))
|
|
192
|
-
);
|
|
193
|
-
children.forEach((result, index) => {
|
|
194
|
-
const sitemapIndex = indexes[offset + index];
|
|
195
|
-
expandedIndexUrls.push(...result.sitemaps.length > 0 ? result.sitemaps.map((sitemap) => sitemap.path) : [sitemapIndex]);
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
return dedupeGscSitemapUrls([
|
|
199
|
-
...topLevel.sitemaps.filter((sitemap) => !sitemap.isSitemapsIndex).map((sitemap) => sitemap.path),
|
|
200
|
-
...expandedIndexUrls
|
|
201
|
-
]);
|
|
202
|
-
}
|
|
203
|
-
function requireGscSitemapUrls(project, sitemapUrls) {
|
|
204
|
-
if (sitemapUrls.length > 0) return;
|
|
205
|
-
throw new CliError({
|
|
206
|
-
code: "CLI_USAGE_ERROR",
|
|
207
|
-
message: "no GSC sitemaps found; provide a URL or use --configured",
|
|
208
|
-
displayMessage: "Error: no GSC sitemaps found; provide a URL or use --configured",
|
|
209
|
-
details: { command: "google.submit-sitemap", project }
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
async function submitGscSitemapBatches(client, project, sitemapUrls, opts = {}) {
|
|
213
|
-
const batches = Array.from(
|
|
214
|
-
{ length: Math.ceil(sitemapUrls.length / 50) },
|
|
215
|
-
(_, index) => sitemapUrls.slice(index * 50, index * 50 + 50)
|
|
216
|
-
);
|
|
217
|
-
const aggregate = {
|
|
218
|
-
summary: { total: 0, accepted: 0, failed: 0 },
|
|
219
|
-
results: []
|
|
220
|
-
};
|
|
221
|
-
for (const [index, batchSitemapUrls] of batches.entries()) {
|
|
222
|
-
try {
|
|
223
|
-
const result = await client.gscSubmitSitemaps(project, { sitemapUrls: batchSitemapUrls });
|
|
224
|
-
aggregate.summary.total += result.summary.total;
|
|
225
|
-
aggregate.summary.accepted += result.summary.accepted;
|
|
226
|
-
aggregate.summary.failed += result.summary.failed;
|
|
227
|
-
aggregate.results.push(...result.results);
|
|
228
|
-
opts.onProgress?.(index + 1, batches.length);
|
|
229
|
-
} catch (cause) {
|
|
230
|
-
if (index === 0) throw cause;
|
|
231
|
-
const attempted = aggregate.summary.total + batchSitemapUrls.length;
|
|
232
|
-
const remaining = sitemapUrls.length - attempted;
|
|
233
|
-
throw new CliError({
|
|
234
|
-
code: "GOOGLE_SITEMAP_SUBMISSION_PARTIAL",
|
|
235
|
-
message: `Sitemap submission stopped at batch ${index + 1}/${batches.length}; ${aggregate.summary.accepted} accepted, ${aggregate.summary.failed} failed, ${batchSitemapUrls.length} unconfirmed, ${remaining} not attempted.`,
|
|
236
|
-
displayMessage: `Sitemap submission stopped at batch ${index + 1}/${batches.length}; ${aggregate.summary.accepted} accepted, ${aggregate.summary.failed} failed, ${batchSitemapUrls.length} unconfirmed, ${remaining} not attempted. Earlier accepted submissions were not rolled back.`,
|
|
237
|
-
exitCode: cause instanceof CliError && cause.exitCode === 1 ? 1 : EXIT_SYSTEM_ERROR,
|
|
238
|
-
details: {
|
|
239
|
-
project,
|
|
240
|
-
accepted: aggregate.summary.accepted,
|
|
241
|
-
failed: aggregate.summary.failed,
|
|
242
|
-
completed: aggregate.summary.total,
|
|
243
|
-
attempted,
|
|
244
|
-
unconfirmed: batchSitemapUrls.length,
|
|
245
|
-
remaining,
|
|
246
|
-
unconfirmedBatch: { index: index + 1, total: batches.length, sitemapUrls: batchSitemapUrls },
|
|
247
|
-
partialResult: aggregate,
|
|
248
|
-
cause: cause instanceof CliError ? { code: cause.code, message: cause.message, details: cause.details } : { message: describeError(cause) }
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
return aggregate;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// src/measurement-draft-actions.ts
|
|
257
|
-
import { z } from "zod";
|
|
258
|
-
var idempotencyKeySchema = z.string().trim().min(1).describe(
|
|
259
|
-
"A fresh request key. Reuse it only when retrying the identical request."
|
|
260
|
-
);
|
|
261
|
-
var draftEtagSchema = z.string().trim().min(1).optional().describe(
|
|
262
|
-
"Current draft ETag from canonry_measurement_draft_get. The API requires it for draft edits, publish, and discard; omit it only to receive the API\u2019s actionable 428 response."
|
|
263
|
-
);
|
|
264
|
-
function mutationOperationSchema(action, request) {
|
|
265
|
-
return z.object({
|
|
266
|
-
action: z.literal(action),
|
|
267
|
-
request,
|
|
268
|
-
etag: draftEtagSchema,
|
|
269
|
-
idempotencyKey: idempotencyKeySchema
|
|
270
|
-
}).strict().describe(`Operation for ${action}.`);
|
|
271
|
-
}
|
|
272
|
-
var measurementDraftOperationSchema = z.discriminatedUnion("action", [
|
|
273
|
-
z.object({
|
|
274
|
-
action: z.literal("create"),
|
|
275
|
-
request: measurementDraftCreateRequestSchema,
|
|
276
|
-
idempotencyKey: idempotencyKeySchema
|
|
277
|
-
}).strict().describe("Operation for create."),
|
|
278
|
-
mutationOperationSchema("import-sitemap", measurementDraftImportSitemapRequestSchema),
|
|
279
|
-
mutationOperationSchema("apply-sitemap-selection", measurementDraftApplySitemapSelectionRequestSchema),
|
|
280
|
-
mutationOperationSchema("upsert-target", measurementDraftUpsertTargetRequestSchema),
|
|
281
|
-
mutationOperationSchema("rename-target", measurementDraftRenameTargetRequestSchema),
|
|
282
|
-
mutationOperationSchema("merge-targets", measurementDraftMergeTargetsRequestSchema),
|
|
283
|
-
mutationOperationSchema("exclude-target", measurementDraftExcludeTargetRequestSchema),
|
|
284
|
-
mutationOperationSchema("rebind-target", measurementDraftRebindTargetRequestSchema),
|
|
285
|
-
mutationOperationSchema("apply-assignments", measurementDraftApplyAssignmentsRequestSchema),
|
|
286
|
-
z.object({
|
|
287
|
-
action: z.literal("preview-assignments"),
|
|
288
|
-
request: measurementDraftPreviewAssignmentsRequestSchema
|
|
289
|
-
}).strict().describe("Read-semantic assignment impact preview."),
|
|
290
|
-
mutationOperationSchema("replace-assignments", measurementDraftReplaceAssignmentsRequestSchema),
|
|
291
|
-
mutationOperationSchema("apply-paired-assignments", measurementDraftApplyPairedAssignmentsRequestSchema),
|
|
292
|
-
mutationOperationSchema("remove-assignment", measurementDraftRemoveAssignmentRequestSchema),
|
|
293
|
-
mutationOperationSchema("clear-assignments", measurementDraftClearAssignmentsRequestSchema),
|
|
294
|
-
mutationOperationSchema("classify-assignments", measurementDraftClassifyAssignmentsRequestSchema),
|
|
295
|
-
mutationOperationSchema("upsert-group", measurementDraftUpsertGroupRequestSchema),
|
|
296
|
-
mutationOperationSchema("upsert-market", measurementDraftUpsertMarketRequestSchema),
|
|
297
|
-
mutationOperationSchema("remove-group", measurementDraftRemoveGroupRequestSchema),
|
|
298
|
-
z.object({
|
|
299
|
-
action: z.literal("preview-group-membership"),
|
|
300
|
-
request: measurementDraftPreviewGroupMembershipRequestSchema
|
|
301
|
-
}).strict().describe("Read-semantic CSV group-membership preview."),
|
|
302
|
-
mutationOperationSchema("apply-group-membership", measurementDraftApplyGroupMembershipRequestSchema),
|
|
303
|
-
mutationOperationSchema("upsert-competitor", measurementDraftUpsertCompetitorRequestSchema),
|
|
304
|
-
mutationOperationSchema("remove-competitor", measurementDraftRemoveCompetitorRequestSchema),
|
|
305
|
-
z.object({ action: z.literal("compile-preview") }).strict().describe("Operation for compile-preview."),
|
|
306
|
-
z.object({ action: z.literal("diff-preview") }).strict().describe("Operation for diff-preview."),
|
|
307
|
-
mutationOperationSchema("publish", measurementDraftPublishRequestSchema),
|
|
308
|
-
z.object({
|
|
309
|
-
action: z.literal("discard"),
|
|
310
|
-
etag: draftEtagSchema,
|
|
311
|
-
idempotencyKey: idempotencyKeySchema
|
|
312
|
-
}).strict().describe("Operation for discard.")
|
|
313
|
-
]);
|
|
314
|
-
function runMeasurementDraftAction(client, project, actionInput) {
|
|
315
|
-
switch (actionInput.action) {
|
|
316
|
-
case "create":
|
|
317
|
-
return client.createMeasurementPlanDraft(project, actionInput.request, actionInput.idempotencyKey);
|
|
318
|
-
case "import-sitemap":
|
|
319
|
-
return client.importMeasurementDraftSitemap(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
320
|
-
case "apply-sitemap-selection":
|
|
321
|
-
return client.applyMeasurementDraftSitemapSelection(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
322
|
-
case "upsert-target":
|
|
323
|
-
return client.upsertMeasurementDraftTarget(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
324
|
-
case "rename-target":
|
|
325
|
-
return client.renameMeasurementDraftTarget(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
326
|
-
case "merge-targets":
|
|
327
|
-
return client.mergeMeasurementDraftTargets(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
328
|
-
case "exclude-target":
|
|
329
|
-
return client.excludeMeasurementDraftTarget(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
330
|
-
case "rebind-target":
|
|
331
|
-
return client.rebindMeasurementDraftTarget(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
332
|
-
case "apply-assignments":
|
|
333
|
-
return client.applyMeasurementDraftAssignments(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
334
|
-
case "preview-assignments":
|
|
335
|
-
return client.previewMeasurementDraftAssignments(project, actionInput.request);
|
|
336
|
-
case "replace-assignments":
|
|
337
|
-
return client.replaceMeasurementDraftAssignments(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
338
|
-
case "apply-paired-assignments":
|
|
339
|
-
return client.applyPairedMeasurementDraftAssignments(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
340
|
-
case "remove-assignment":
|
|
341
|
-
return client.removeMeasurementDraftAssignment(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
342
|
-
case "clear-assignments":
|
|
343
|
-
return client.clearMeasurementDraftAssignments(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
344
|
-
case "classify-assignments":
|
|
345
|
-
return client.classifyMeasurementDraftAssignments(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
346
|
-
case "upsert-group":
|
|
347
|
-
return client.upsertMeasurementDraftGroup(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
348
|
-
case "upsert-market":
|
|
349
|
-
return client.upsertMeasurementDraftMarket(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
350
|
-
case "remove-group":
|
|
351
|
-
return client.removeMeasurementDraftGroup(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
352
|
-
case "preview-group-membership":
|
|
353
|
-
return client.previewMeasurementDraftGroupMembership(project, actionInput.request);
|
|
354
|
-
case "apply-group-membership":
|
|
355
|
-
return client.applyMeasurementDraftGroupMembership(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
356
|
-
case "upsert-competitor":
|
|
357
|
-
return client.upsertMeasurementDraftCompetitor(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
358
|
-
case "remove-competitor":
|
|
359
|
-
return client.removeMeasurementDraftCompetitor(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
360
|
-
case "compile-preview":
|
|
361
|
-
return client.compileMeasurementDraftPreview(project);
|
|
362
|
-
case "diff-preview":
|
|
363
|
-
return client.diffMeasurementDraftPreview(project);
|
|
364
|
-
case "publish":
|
|
365
|
-
return client.publishMeasurementDraft(project, actionInput.request, actionInput.idempotencyKey, actionInput.etag);
|
|
366
|
-
case "discard":
|
|
367
|
-
return client.discardMeasurementDraft(project, actionInput.idempotencyKey, actionInput.etag);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
153
|
+
import { z as z2 } from "zod";
|
|
370
154
|
|
|
371
155
|
// src/mcp/schema.ts
|
|
372
|
-
import { z
|
|
373
|
-
var projectNameSchema =
|
|
374
|
-
var runIdSchema =
|
|
375
|
-
var insightIdSchema =
|
|
376
|
-
var analyticsWindowSchema =
|
|
377
|
-
var emptyInputSchema =
|
|
378
|
-
var projectInputSchema =
|
|
156
|
+
import { z } from "zod";
|
|
157
|
+
var projectNameSchema = z.string().min(1).describe("Canonry project name.");
|
|
158
|
+
var runIdSchema = z.string().min(1).describe("Canonry run ID.");
|
|
159
|
+
var insightIdSchema = z.string().min(1).describe("Canonry insight ID.");
|
|
160
|
+
var analyticsWindowSchema = z.enum(["7d", "30d", "90d", "all"]).describe("Analytics time window.");
|
|
161
|
+
var emptyInputSchema = z.object({});
|
|
162
|
+
var projectInputSchema = z.object({
|
|
379
163
|
project: projectNameSchema
|
|
380
164
|
});
|
|
381
165
|
function toJsonSchema(schema, name) {
|
|
382
166
|
return {
|
|
383
|
-
...
|
|
167
|
+
...z.toJSONSchema(schema, { target: "draft-7" }),
|
|
384
168
|
title: name
|
|
385
169
|
};
|
|
386
170
|
}
|
|
@@ -433,21 +217,21 @@ function defineTool(tool) {
|
|
|
433
217
|
inputJsonSchema: toJsonSchema(tool.inputSchema, tool.name)
|
|
434
218
|
};
|
|
435
219
|
}
|
|
436
|
-
var runTriggerInputSchema =
|
|
220
|
+
var runTriggerInputSchema = z2.object({
|
|
437
221
|
project: projectNameSchema,
|
|
438
222
|
request: runTriggerRequestSchema.optional()
|
|
439
223
|
});
|
|
440
|
-
var measurementPlanVersionInputSchema =
|
|
224
|
+
var measurementPlanVersionInputSchema = z2.object({ project: projectNameSchema, revision: z2.number().int().positive() });
|
|
441
225
|
var measurementReportInputSchema = measurementPlanVersionInputSchema.extend({
|
|
442
226
|
runId: runIdSchema.optional().describe("Exact eligible full measurement run to reconstruct. Omit for the latest run in the revision."),
|
|
443
227
|
queryClass: measurementQueryClassFilterSchema.optional().describe("Omit for non-brand on a schema v2 revision; read branded as a separate call. all pools both classes. A schema v1 revision records no class: omit it there.")
|
|
444
228
|
});
|
|
445
|
-
var measurementPlanPreviewInputSchema =
|
|
229
|
+
var measurementPlanPreviewInputSchema = z2.object({ project: projectNameSchema, plan: measurementPlanAuthoringSchema });
|
|
446
230
|
var measurementPlanPublishInputSchema = measurementPlanPublishRequestSchema.extend({ project: projectNameSchema });
|
|
447
|
-
var measurementPlanRetireInputSchema =
|
|
231
|
+
var measurementPlanRetireInputSchema = z2.object({ project: projectNameSchema, stableKey: z2.string().min(1) });
|
|
448
232
|
var measurementDiscoveryInputSchema = measurementDiscoveryRequestSchema.extend({ project: projectNameSchema });
|
|
449
|
-
var idempotencyKeyInputSchema =
|
|
450
|
-
var measurementOverviewInputSchema =
|
|
233
|
+
var idempotencyKeyInputSchema = z2.string().trim().min(1).describe("A fresh request key. Reuse it only when retrying the identical request.");
|
|
234
|
+
var measurementOverviewInputSchema = z2.object({
|
|
451
235
|
project: projectNameSchema,
|
|
452
236
|
scope: measurementOverviewQuerySchema.shape.scope.describe("Read all Properties, one group (every query of its Properties), one market (only the market's own queries, as the dashboard's market view), or one Property. A group and a market can share a name and still differ; for a market, use market scope."),
|
|
453
237
|
groupKey: measurementOverviewQuerySchema.shape.groupKey.describe("Group stable key. Required only for group scope."),
|
|
@@ -463,7 +247,7 @@ var measurementOverviewInputSchema = z3.object({
|
|
|
463
247
|
sort: measurementOverviewQuerySchema.shape.sort,
|
|
464
248
|
cursor: measurementOverviewQuerySchema.shape.cursor,
|
|
465
249
|
limit: measurementOverviewQuerySchema.shape.limit,
|
|
466
|
-
compact:
|
|
250
|
+
compact: z2.boolean().default(true).describe("Defaults to true: bounded whole rows omit repeated per-Property engine detail with explicit detailsOmitted. Use compact=false for that detail; preserve all filters when following nextCursor.")
|
|
467
251
|
}).strict().superRefine((input, context) => {
|
|
468
252
|
if (input.scope === "group" && !input.groupKey) {
|
|
469
253
|
context.addIssue({ code: "custom", path: ["groupKey"], message: "Group scope requires groupKey." });
|
|
@@ -502,7 +286,7 @@ var measurementPortfolioSummaryInputSchema = measurementPortfolioSummaryQuerySch
|
|
|
502
286
|
groupKey: measurementPortfolioSummaryQuerySchema.shape.groupKey.describe("A market stable key (a row's metro.groupKey or a markets row's groupKey). Scopes rows to that market and lists its direct submarkets."),
|
|
503
287
|
list: measurementPortfolioSummaryQuerySchema.shape.list.describe("Select one complete compact list. Default cursor walks weakest-properties; other first-page lists are bounded summaries. observed-names and cited-domains require answers=not-mentioned. Keep list unchanged across cursors."),
|
|
504
288
|
limit: measurementPortfolioSummaryQuerySchema.shape.limit.describe("Maximum selected-list rows; omitted auto-sizes up to 50 under the byte budget. nextCursor advances only pageList; use list to enumerate another ranking, market or evidence list."),
|
|
505
|
-
compact:
|
|
289
|
+
compact: z2.boolean().default(true).describe("Defaults to true. Omits detailed evidence with explicit detailsOmitted and returns bounded cursor pages."),
|
|
506
290
|
includeNestedMarkets: measurementPortfolioSummaryQuerySchema.shape.includeNestedMarkets.describe("Include every market level; compact pages preserve market totals and page the rows.")
|
|
507
291
|
}).strict();
|
|
508
292
|
var measurementPropertyQuestionsInputSchema = measurementPropertyQuestionsQuerySchema.extend({
|
|
@@ -519,22 +303,22 @@ var MEASUREMENT_CHANGES_AGENT_ROWS = 20;
|
|
|
519
303
|
var measurementChangesInputSchema = measurementChangesQuerySchema.safeExtend({
|
|
520
304
|
project: projectNameSchema,
|
|
521
305
|
queryClass: measurementQueryClassFilterSchema.default(AGENT_DEFAULT_QUERY_CLASS).describe("Defaults to non-brand. Call once per class; all pools both classes in rows and distribution."),
|
|
522
|
-
limit:
|
|
306
|
+
limit: z2.number().int().positive().max(MEASUREMENT_CHANGES_AGENT_ROWS).optional().describe(`Changed rows, largest move first, every move beyond noise before any within it. Default and maximum ${MEASUREMENT_CHANGES_AGENT_ROWS}; distribution counts every Property whatever the limit.`)
|
|
523
307
|
}).strict();
|
|
524
308
|
var measurementDataQualityInputSchema = measurementDataQualityQuerySchema.extend({
|
|
525
309
|
project: projectNameSchema
|
|
526
310
|
}).strict();
|
|
527
311
|
var measurementDraftCollectionInputSchema = measurementDraftCollectionQuerySchema.extend({ project: projectNameSchema });
|
|
528
|
-
var measurementQuerySetInputSchema =
|
|
312
|
+
var measurementQuerySetInputSchema = z2.object({
|
|
529
313
|
project: projectNameSchema,
|
|
530
|
-
setId:
|
|
314
|
+
setId: z2.string().trim().min(1)
|
|
531
315
|
}).strict();
|
|
532
316
|
var measurementQuerySetUpsertInputSchema = measurementQuerySetInputSchema.extend({
|
|
533
317
|
request: measurementQuerySetUpsertRequestSchema
|
|
534
318
|
}).strict();
|
|
535
|
-
var measurementQueryTemplateInputSchema =
|
|
319
|
+
var measurementQueryTemplateInputSchema = z2.object({
|
|
536
320
|
project: projectNameSchema,
|
|
537
|
-
templateId:
|
|
321
|
+
templateId: z2.string().trim().min(1)
|
|
538
322
|
}).strict();
|
|
539
323
|
var measurementQueryTemplateUpsertInputSchema = measurementQueryTemplateInputSchema.extend({
|
|
540
324
|
request: measurementQueryTemplateUpsertRequestSchema
|
|
@@ -547,7 +331,7 @@ var measurementPlanDeactivateInputSchema = measurementPlanDeactivateRequestSchem
|
|
|
547
331
|
project: projectNameSchema,
|
|
548
332
|
idempotencyKey: idempotencyKeyInputSchema
|
|
549
333
|
}).strict();
|
|
550
|
-
var measurementDraftActionInputSchema =
|
|
334
|
+
var measurementDraftActionInputSchema = z2.object({
|
|
551
335
|
project: projectNameSchema,
|
|
552
336
|
operation: measurementDraftOperationSchema.describe("Typed draft operation. Select exactly one action branch.")
|
|
553
337
|
}).strict();
|
|
@@ -579,112 +363,112 @@ var measurementDraftActionOpenApiOperations = [
|
|
|
579
363
|
"POST /api/v1/projects/{name}/measurement-plan/draft/actions/publish",
|
|
580
364
|
"POST /api/v1/projects/{name}/measurement-plan/draft/actions/discard"
|
|
581
365
|
];
|
|
582
|
-
var runsListInputSchema =
|
|
583
|
-
since:
|
|
366
|
+
var runsListInputSchema = z2.object({
|
|
367
|
+
since: z2.string().optional().describe("Inclusive ISO 8601 lower bound on creation time. Omit to read all dates."),
|
|
584
368
|
project: projectNameSchema,
|
|
585
|
-
limit:
|
|
369
|
+
limit: z2.number().int().positive().max(500).optional(),
|
|
586
370
|
kind: runListFilterQuerySchema.shape.kind.describe('Restrict to a single run kind (e.g. "answer-visibility"). Unknown values are rejected.'),
|
|
587
371
|
excludeKind: runListFilterQuerySchema.shape.excludeKind.describe('Exclude one run kind before applying the limit (e.g. "bing-inspect" omits single-URL inspections). Combines with kind and status.'),
|
|
588
372
|
excludeKinds: runListFilterQuerySchema.shape.excludeKinds.describe('Exclude multiple run kinds before applying the limit (e.g. ["bing-inspect", "traffic-sync"] keeps meaningful Activity jobs). Combines with excludeKind, kind, and status.'),
|
|
589
373
|
status: runListFilterQuerySchema.shape.status.describe('Restrict to a single run status (e.g. "running" for in-flight work, "failed" to triage). Unknown values are rejected.')
|
|
590
374
|
});
|
|
591
|
-
var runGetInputSchema =
|
|
375
|
+
var runGetInputSchema = z2.object({
|
|
592
376
|
runId: runIdSchema
|
|
593
377
|
});
|
|
594
|
-
var runFillInputSchema =
|
|
378
|
+
var runFillInputSchema = z2.object({
|
|
595
379
|
runId: runIdSchema,
|
|
596
|
-
providers:
|
|
597
|
-
dryRun:
|
|
380
|
+
providers: z2.array(z2.string().min(1)).min(1).optional().describe("Fill only these providers. Omit for every provider with missing answers."),
|
|
381
|
+
dryRun: z2.boolean().optional().describe("Evaluate every rule and report what would run, without queueing or spending quota.")
|
|
598
382
|
});
|
|
599
|
-
var timelineInputSchema =
|
|
383
|
+
var timelineInputSchema = z2.object({
|
|
600
384
|
project: projectNameSchema,
|
|
601
|
-
location:
|
|
602
|
-
limit:
|
|
385
|
+
location: z2.string().optional().describe("Location label. Use an empty string for locationless results."),
|
|
386
|
+
limit: z2.number().int().positive().max(100).optional().describe("Restrict history to the most recent N project runs.")
|
|
603
387
|
});
|
|
604
388
|
var historyFilterShape = {
|
|
605
389
|
...auditHistoryQuerySchema.shape,
|
|
606
|
-
limit:
|
|
607
|
-
offset:
|
|
390
|
+
limit: z2.number().int().positive().max(500).optional(),
|
|
391
|
+
offset: z2.number().int().nonnegative().optional()
|
|
608
392
|
};
|
|
609
|
-
var projectHistoryInputSchema =
|
|
610
|
-
var globalHistoryInputSchema =
|
|
611
|
-
var snapshotsListInputSchema =
|
|
393
|
+
var projectHistoryInputSchema = z2.object({ project: projectNameSchema, ...historyFilterShape });
|
|
394
|
+
var globalHistoryInputSchema = z2.object(historyFilterShape);
|
|
395
|
+
var snapshotsListInputSchema = z2.object({
|
|
612
396
|
project: projectNameSchema,
|
|
613
|
-
limit:
|
|
614
|
-
offset:
|
|
615
|
-
location:
|
|
397
|
+
limit: z2.number().int().positive().max(500).optional(),
|
|
398
|
+
offset: z2.number().int().nonnegative().optional(),
|
|
399
|
+
location: z2.string().optional().describe("Location label. Use an empty string for locationless results.")
|
|
616
400
|
});
|
|
617
|
-
var snapshotsDiffInputSchema =
|
|
401
|
+
var snapshotsDiffInputSchema = z2.object({
|
|
618
402
|
project: projectNameSchema,
|
|
619
403
|
run1: runIdSchema,
|
|
620
404
|
run2: runIdSchema
|
|
621
405
|
});
|
|
622
|
-
var insightsListInputSchema =
|
|
406
|
+
var insightsListInputSchema = z2.object({
|
|
623
407
|
project: projectNameSchema,
|
|
624
|
-
dismissed:
|
|
408
|
+
dismissed: z2.boolean().optional(),
|
|
625
409
|
runId: runIdSchema.optional()
|
|
626
410
|
});
|
|
627
|
-
var insightInputSchema =
|
|
411
|
+
var insightInputSchema = z2.object({
|
|
628
412
|
project: projectNameSchema,
|
|
629
413
|
insightId: insightIdSchema
|
|
630
414
|
});
|
|
631
|
-
var healthHistoryInputSchema =
|
|
415
|
+
var healthHistoryInputSchema = z2.object({
|
|
632
416
|
project: projectNameSchema,
|
|
633
|
-
limit:
|
|
417
|
+
limit: z2.number().int().positive().max(100).optional()
|
|
634
418
|
});
|
|
635
|
-
var gscPerformanceInputSchema =
|
|
419
|
+
var gscPerformanceInputSchema = z2.object({
|
|
636
420
|
project: projectNameSchema,
|
|
637
|
-
startDate:
|
|
638
|
-
endDate:
|
|
639
|
-
query:
|
|
640
|
-
page:
|
|
641
|
-
limit:
|
|
642
|
-
offset:
|
|
421
|
+
startDate: z2.string().optional(),
|
|
422
|
+
endDate: z2.string().optional(),
|
|
423
|
+
query: z2.string().optional(),
|
|
424
|
+
page: z2.string().optional(),
|
|
425
|
+
limit: z2.number().int().positive().max(5e3).optional(),
|
|
426
|
+
offset: z2.number().int().nonnegative().optional(),
|
|
643
427
|
orderBy: gscPerformanceOrderBySchema.optional(),
|
|
644
428
|
window: analyticsWindowSchema.optional()
|
|
645
429
|
});
|
|
646
|
-
var gscPerformanceDailyInputSchema =
|
|
430
|
+
var gscPerformanceDailyInputSchema = z2.object({
|
|
647
431
|
project: projectNameSchema,
|
|
648
|
-
startDate:
|
|
649
|
-
endDate:
|
|
432
|
+
startDate: z2.string().optional(),
|
|
433
|
+
endDate: z2.string().optional(),
|
|
650
434
|
window: analyticsWindowSchema.optional()
|
|
651
435
|
});
|
|
652
|
-
var gscTopPagesInputSchema =
|
|
436
|
+
var gscTopPagesInputSchema = z2.object({
|
|
653
437
|
project: projectNameSchema,
|
|
654
|
-
startDate:
|
|
655
|
-
endDate:
|
|
656
|
-
limit:
|
|
438
|
+
startDate: z2.string().optional(),
|
|
439
|
+
endDate: z2.string().optional(),
|
|
440
|
+
limit: z2.number().int().positive().max(500).optional(),
|
|
657
441
|
window: analyticsWindowSchema.optional()
|
|
658
442
|
});
|
|
659
|
-
var gscQueryTotalsInputSchema =
|
|
443
|
+
var gscQueryTotalsInputSchema = z2.object({
|
|
660
444
|
project: projectNameSchema,
|
|
661
|
-
startDate:
|
|
662
|
-
endDate:
|
|
663
|
-
limit:
|
|
664
|
-
offset:
|
|
445
|
+
startDate: z2.string().optional(),
|
|
446
|
+
endDate: z2.string().optional(),
|
|
447
|
+
limit: z2.number().int().positive().max(5e3).optional(),
|
|
448
|
+
offset: z2.number().int().nonnegative().optional(),
|
|
665
449
|
window: analyticsWindowSchema.optional()
|
|
666
450
|
});
|
|
667
|
-
var gscInspectionsInputSchema =
|
|
451
|
+
var gscInspectionsInputSchema = z2.object({
|
|
668
452
|
project: projectNameSchema,
|
|
669
|
-
url:
|
|
670
|
-
limit:
|
|
453
|
+
url: z2.string().optional(),
|
|
454
|
+
limit: z2.number().int().positive().max(500).optional()
|
|
671
455
|
});
|
|
672
|
-
var gscCoverageHistoryInputSchema =
|
|
456
|
+
var gscCoverageHistoryInputSchema = z2.object({
|
|
673
457
|
project: projectNameSchema,
|
|
674
|
-
limit:
|
|
458
|
+
limit: z2.number().int().positive().max(500).optional()
|
|
675
459
|
});
|
|
676
|
-
var gscSitemapsInputSchema =
|
|
460
|
+
var gscSitemapsInputSchema = z2.object({
|
|
677
461
|
project: projectNameSchema,
|
|
678
|
-
sitemapIndex:
|
|
462
|
+
sitemapIndex: z2.string().url().optional()
|
|
679
463
|
});
|
|
680
|
-
var gscSitemapsSubmitInputSchema =
|
|
681
|
-
|
|
464
|
+
var gscSitemapsSubmitInputSchema = z2.union([
|
|
465
|
+
z2.object({
|
|
682
466
|
project: projectNameSchema,
|
|
683
|
-
sitemapUrls:
|
|
467
|
+
sitemapUrls: z2.array(z2.string().url()).min(1).max(50)
|
|
684
468
|
}).strict(),
|
|
685
|
-
|
|
469
|
+
z2.object({
|
|
686
470
|
project: projectNameSchema,
|
|
687
|
-
mode:
|
|
471
|
+
mode: z2.enum(["indexes", "all-files"])
|
|
688
472
|
}).strict()
|
|
689
473
|
]);
|
|
690
474
|
async function submitGscSitemapsFromMcp(client, input) {
|
|
@@ -694,94 +478,94 @@ async function submitGscSitemapsFromMcp(client, input) {
|
|
|
694
478
|
}
|
|
695
479
|
return submitGscSitemapBatches(client, input.project, sitemapUrls);
|
|
696
480
|
}
|
|
697
|
-
var gaWindowInputSchema =
|
|
481
|
+
var gaWindowInputSchema = z2.object({
|
|
698
482
|
project: projectNameSchema,
|
|
699
483
|
window: analyticsWindowSchema.optional(),
|
|
700
|
-
startDate:
|
|
701
|
-
endDate:
|
|
484
|
+
startDate: z2.string().optional(),
|
|
485
|
+
endDate: z2.string().optional()
|
|
702
486
|
});
|
|
703
487
|
var GA_RANGE_PARAMS = ["window", "startDate", "endDate"];
|
|
704
488
|
var gaTrafficInputSchema = gaWindowInputSchema.extend({
|
|
705
|
-
limit:
|
|
489
|
+
limit: z2.number().int().positive().max(500).optional()
|
|
706
490
|
});
|
|
707
|
-
var gaMeasurementAnalysisInputSchema =
|
|
491
|
+
var gaMeasurementAnalysisInputSchema = z2.object({
|
|
708
492
|
project: projectNameSchema,
|
|
709
493
|
window: gaMeasurementAnalysisWindowSchema.optional(),
|
|
710
494
|
hostScope: gaMeasurementHostScopeSchema.optional(),
|
|
711
|
-
pathPrefix:
|
|
712
|
-
limit:
|
|
495
|
+
pathPrefix: z2.string().min(1).optional(),
|
|
496
|
+
limit: z2.number().int().positive().max(100).optional()
|
|
713
497
|
});
|
|
714
|
-
var gaSearchLandingPagesInputSchema =
|
|
498
|
+
var gaSearchLandingPagesInputSchema = z2.object({
|
|
715
499
|
project: projectNameSchema,
|
|
716
500
|
window: gaSearchLandingWindowSchema.optional(),
|
|
717
|
-
limit:
|
|
718
|
-
offset:
|
|
501
|
+
limit: z2.number().int().positive().max(GA_SEARCH_LANDING_MAX_LIMIT).optional(),
|
|
502
|
+
offset: z2.number().int().nonnegative().optional()
|
|
719
503
|
});
|
|
720
|
-
var queriesInputSchema =
|
|
504
|
+
var queriesInputSchema = z2.object({
|
|
721
505
|
project: projectNameSchema,
|
|
722
506
|
request: queryBatchRequestSchema
|
|
723
507
|
});
|
|
724
|
-
var queryGenerateInputSchema =
|
|
508
|
+
var queryGenerateInputSchema = z2.object({
|
|
725
509
|
project: projectNameSchema,
|
|
726
510
|
request: queryGenerateRequestSchema
|
|
727
511
|
});
|
|
728
|
-
var gbpListLocationsInputSchema =
|
|
512
|
+
var gbpListLocationsInputSchema = z2.object({
|
|
729
513
|
project: projectNameSchema,
|
|
730
|
-
selected:
|
|
514
|
+
selected: z2.boolean().optional()
|
|
731
515
|
});
|
|
732
|
-
var gbpDiscoverInputSchema =
|
|
516
|
+
var gbpDiscoverInputSchema = z2.object({
|
|
733
517
|
project: projectNameSchema,
|
|
734
|
-
selectAllNew:
|
|
735
|
-
accountName:
|
|
736
|
-
switchAccount:
|
|
518
|
+
selectAllNew: z2.boolean().optional().default(true),
|
|
519
|
+
accountName: z2.string().regex(/^accounts\//, 'accountName must be a Google resource name like "accounts/12345"').optional(),
|
|
520
|
+
switchAccount: z2.boolean().optional().default(false)
|
|
737
521
|
});
|
|
738
|
-
var gbpLocationSelectionInputSchema =
|
|
522
|
+
var gbpLocationSelectionInputSchema = z2.object({
|
|
739
523
|
project: projectNameSchema,
|
|
740
|
-
locationName:
|
|
741
|
-
selected:
|
|
524
|
+
locationName: z2.string().min(1).regex(/^locations\//, 'locationName must be a Google resource name like "locations/12345"'),
|
|
525
|
+
selected: z2.boolean()
|
|
742
526
|
});
|
|
743
|
-
var gbpSyncInputSchema =
|
|
527
|
+
var gbpSyncInputSchema = z2.object({
|
|
744
528
|
project: projectNameSchema,
|
|
745
|
-
locationNames:
|
|
746
|
-
daysOfMetrics:
|
|
747
|
-
monthsOfKeywords:
|
|
529
|
+
locationNames: z2.array(z2.string()).optional(),
|
|
530
|
+
daysOfMetrics: z2.number().int().positive().max(540).optional(),
|
|
531
|
+
monthsOfKeywords: z2.number().int().positive().max(18).optional()
|
|
748
532
|
});
|
|
749
|
-
var gbpMetricsInputSchema =
|
|
533
|
+
var gbpMetricsInputSchema = z2.object({
|
|
750
534
|
project: projectNameSchema,
|
|
751
|
-
locationName:
|
|
752
|
-
metric:
|
|
535
|
+
locationName: z2.string().optional(),
|
|
536
|
+
metric: z2.string().optional()
|
|
753
537
|
});
|
|
754
|
-
var gbpLocationScopedInputSchema =
|
|
538
|
+
var gbpLocationScopedInputSchema = z2.object({
|
|
755
539
|
project: projectNameSchema,
|
|
756
|
-
locationName:
|
|
540
|
+
locationName: z2.string().optional()
|
|
757
541
|
});
|
|
758
|
-
var gbpReviewsInputSchema =
|
|
542
|
+
var gbpReviewsInputSchema = z2.object({
|
|
759
543
|
project: projectNameSchema,
|
|
760
|
-
locationName:
|
|
761
|
-
negative:
|
|
762
|
-
limit:
|
|
544
|
+
locationName: z2.string().optional(),
|
|
545
|
+
negative: z2.boolean().optional().describe("Only reviews at or below the project's negative-review threshold (negativeReviewMaxStars, 3 stars by default), the one the review.negative webhook uses."),
|
|
546
|
+
limit: z2.number().int().positive().max(500).optional().describe("Max reviews, newest first. Default 50.")
|
|
763
547
|
});
|
|
764
|
-
var gbpAccountsInputSchema =
|
|
548
|
+
var gbpAccountsInputSchema = z2.object({
|
|
765
549
|
project: projectNameSchema
|
|
766
550
|
});
|
|
767
|
-
var adsInsightsInputSchema =
|
|
551
|
+
var adsInsightsInputSchema = z2.object({
|
|
768
552
|
project: projectNameSchema,
|
|
769
|
-
level:
|
|
770
|
-
entityId:
|
|
771
|
-
from:
|
|
772
|
-
to:
|
|
553
|
+
level: z2.enum(["campaign", "ad_group"]).optional(),
|
|
554
|
+
entityId: z2.string().optional(),
|
|
555
|
+
from: z2.string().optional(),
|
|
556
|
+
to: z2.string().optional()
|
|
773
557
|
});
|
|
774
558
|
var adsGeoSearchInputSchema = adsGeoSearchQuerySchema.extend({
|
|
775
559
|
project: projectNameSchema
|
|
776
560
|
});
|
|
777
|
-
var adsLiveDeliveryInputSchema =
|
|
561
|
+
var adsLiveDeliveryInputSchema = z2.object({
|
|
778
562
|
project: projectNameSchema,
|
|
779
|
-
campaignId:
|
|
780
|
-
lookbackDays:
|
|
563
|
+
campaignId: z2.string().min(1).max(200).optional(),
|
|
564
|
+
lookbackDays: z2.number().int().min(1).max(30).optional()
|
|
781
565
|
});
|
|
782
|
-
var adsOperationInputSchema =
|
|
566
|
+
var adsOperationInputSchema = z2.object({
|
|
783
567
|
project: projectNameSchema,
|
|
784
|
-
operationKey:
|
|
568
|
+
operationKey: z2.string().min(8).max(128)
|
|
785
569
|
});
|
|
786
570
|
var adsOperationResumeActivationInputSchema = adsOperationInputSchema.strict();
|
|
787
571
|
var adsUnresolvedOperationsInputSchema = adsUnresolvedOperationListQuerySchema.extend({
|
|
@@ -789,92 +573,92 @@ var adsUnresolvedOperationsInputSchema = adsUnresolvedOperationListQuerySchema.e
|
|
|
789
573
|
});
|
|
790
574
|
var adsOperationReconcileInputSchema = adsOperationReconcileRequestSchema.extend({
|
|
791
575
|
project: projectNameSchema,
|
|
792
|
-
operationKey:
|
|
576
|
+
operationKey: z2.string().min(8).max(128)
|
|
793
577
|
});
|
|
794
|
-
var adsImageUploadInputSchema =
|
|
578
|
+
var adsImageUploadInputSchema = z2.object({
|
|
795
579
|
project: projectNameSchema,
|
|
796
580
|
request: adsImageUploadRequestSchema
|
|
797
581
|
});
|
|
798
|
-
var adsCampaignCreateInputSchema =
|
|
582
|
+
var adsCampaignCreateInputSchema = z2.object({
|
|
799
583
|
project: projectNameSchema,
|
|
800
584
|
request: adsCampaignCreateRequestSchema
|
|
801
585
|
});
|
|
802
|
-
var adsCampaignUpdateInputSchema =
|
|
586
|
+
var adsCampaignUpdateInputSchema = z2.object({
|
|
803
587
|
project: projectNameSchema,
|
|
804
|
-
campaignId:
|
|
588
|
+
campaignId: z2.string().min(1),
|
|
805
589
|
request: adsCampaignUpdateRequestSchema
|
|
806
590
|
});
|
|
807
|
-
var adsCampaignActivateTreeInputSchema =
|
|
591
|
+
var adsCampaignActivateTreeInputSchema = z2.object({
|
|
808
592
|
project: projectNameSchema,
|
|
809
|
-
campaignId:
|
|
593
|
+
campaignId: z2.string().min(1),
|
|
810
594
|
request: adsActivateTreeRequestSchema
|
|
811
595
|
});
|
|
812
|
-
var adsCampaignPauseInputSchema =
|
|
596
|
+
var adsCampaignPauseInputSchema = z2.object({
|
|
813
597
|
project: projectNameSchema,
|
|
814
|
-
campaignId:
|
|
598
|
+
campaignId: z2.string().min(1),
|
|
815
599
|
request: adsPauseRequestSchema
|
|
816
600
|
});
|
|
817
|
-
var adsAdGroupCreateInputSchema =
|
|
601
|
+
var adsAdGroupCreateInputSchema = z2.object({
|
|
818
602
|
project: projectNameSchema,
|
|
819
603
|
request: adsAdGroupCreateRequestSchema
|
|
820
604
|
});
|
|
821
|
-
var adsAdGroupUpdateInputSchema =
|
|
605
|
+
var adsAdGroupUpdateInputSchema = z2.object({
|
|
822
606
|
project: projectNameSchema,
|
|
823
|
-
adGroupId:
|
|
607
|
+
adGroupId: z2.string().min(1),
|
|
824
608
|
request: adsAdGroupUpdateRequestSchema
|
|
825
609
|
});
|
|
826
|
-
var adsAdGroupPauseInputSchema =
|
|
610
|
+
var adsAdGroupPauseInputSchema = z2.object({
|
|
827
611
|
project: projectNameSchema,
|
|
828
|
-
adGroupId:
|
|
612
|
+
adGroupId: z2.string().min(1),
|
|
829
613
|
request: adsPauseRequestSchema
|
|
830
614
|
});
|
|
831
|
-
var adsAdCreateInputSchema =
|
|
615
|
+
var adsAdCreateInputSchema = z2.object({
|
|
832
616
|
project: projectNameSchema,
|
|
833
617
|
request: adsAdCreateRequestSchema
|
|
834
618
|
});
|
|
835
|
-
var adsAdUpdateInputSchema =
|
|
619
|
+
var adsAdUpdateInputSchema = z2.object({
|
|
836
620
|
project: projectNameSchema,
|
|
837
|
-
adId:
|
|
621
|
+
adId: z2.string().min(1),
|
|
838
622
|
request: adsAdUpdateRequestSchema
|
|
839
623
|
});
|
|
840
|
-
var adsAdPauseInputSchema =
|
|
624
|
+
var adsAdPauseInputSchema = z2.object({
|
|
841
625
|
project: projectNameSchema,
|
|
842
|
-
adId:
|
|
626
|
+
adId: z2.string().min(1),
|
|
843
627
|
request: adsPauseRequestSchema
|
|
844
628
|
});
|
|
845
|
-
var googleMarketingSnapshotPageInputSchema =
|
|
629
|
+
var googleMarketingSnapshotPageInputSchema = z2.object({
|
|
846
630
|
project: projectNameSchema,
|
|
847
|
-
limit:
|
|
848
|
-
cursor:
|
|
631
|
+
limit: z2.number().int().min(1).max(GOOGLE_MARKETING_STORED_SNAPSHOT_PAGE_MAX).optional(),
|
|
632
|
+
cursor: z2.string().trim().min(1).optional()
|
|
849
633
|
}).strict();
|
|
850
|
-
var googleAdsPerformanceInputSchema =
|
|
634
|
+
var googleAdsPerformanceInputSchema = z2.object({
|
|
851
635
|
project: projectNameSchema,
|
|
852
636
|
window: googleAdsMetricsWindowSchema.optional()
|
|
853
637
|
}).strict();
|
|
854
|
-
var googleMarketingSnapshotInputSchema =
|
|
638
|
+
var googleMarketingSnapshotInputSchema = z2.object({
|
|
855
639
|
project: projectNameSchema,
|
|
856
|
-
snapshotId:
|
|
640
|
+
snapshotId: z2.string().trim().min(1)
|
|
857
641
|
}).strict();
|
|
858
|
-
var gtmAccountInputSchema =
|
|
642
|
+
var gtmAccountInputSchema = z2.object({
|
|
859
643
|
project: projectNameSchema,
|
|
860
|
-
accountId:
|
|
644
|
+
accountId: z2.string().trim().min(1)
|
|
861
645
|
}).strict().superRefine((input, context) => {
|
|
862
646
|
if (!canonicalizeGtmAccountId(input.accountId)) {
|
|
863
647
|
context.addIssue({
|
|
864
|
-
code:
|
|
648
|
+
code: z2.ZodIssueCode.custom,
|
|
865
649
|
path: ["accountId"],
|
|
866
650
|
message: "Expected a safe GTM account ID or accounts/{id} resource path."
|
|
867
651
|
});
|
|
868
652
|
}
|
|
869
653
|
});
|
|
870
|
-
var gtmContainerInputSchema =
|
|
654
|
+
var gtmContainerInputSchema = z2.object({
|
|
871
655
|
project: projectNameSchema,
|
|
872
|
-
accountId:
|
|
873
|
-
containerId:
|
|
656
|
+
accountId: z2.string().trim().min(1),
|
|
657
|
+
containerId: z2.string().trim().min(1)
|
|
874
658
|
}).strict().superRefine((input, context) => {
|
|
875
659
|
if (!canonicalizeGtmResourceSelection(input)) {
|
|
876
660
|
context.addIssue({
|
|
877
|
-
code:
|
|
661
|
+
code: z2.ZodIssueCode.custom,
|
|
878
662
|
path: ["containerId"],
|
|
879
663
|
message: "Expected matching safe GTM account/container IDs or resource paths."
|
|
880
664
|
});
|
|
@@ -890,33 +674,33 @@ function canonicalGtmMcpSelection(accountId, containerId) {
|
|
|
890
674
|
if (!canonical) throw new Error("Invalid GTM account/container input.");
|
|
891
675
|
return canonical;
|
|
892
676
|
}
|
|
893
|
-
var conversionTrackingContractInputSchema =
|
|
677
|
+
var conversionTrackingContractInputSchema = z2.object({
|
|
894
678
|
project: projectNameSchema,
|
|
895
|
-
contractId:
|
|
679
|
+
contractId: z2.string().trim().min(1)
|
|
896
680
|
}).strict();
|
|
897
|
-
var keywordsInputSchema =
|
|
681
|
+
var keywordsInputSchema = z2.object({
|
|
898
682
|
project: projectNameSchema,
|
|
899
683
|
request: keywordBatchRequestSchema
|
|
900
684
|
});
|
|
901
|
-
var keywordGenerateInputSchema =
|
|
685
|
+
var keywordGenerateInputSchema = z2.object({
|
|
902
686
|
project: projectNameSchema,
|
|
903
687
|
request: keywordGenerateRequestSchema
|
|
904
688
|
});
|
|
905
|
-
var competitorsInputSchema =
|
|
689
|
+
var competitorsInputSchema = z2.object({
|
|
906
690
|
project: projectNameSchema,
|
|
907
691
|
request: competitorBatchRequestSchema
|
|
908
692
|
});
|
|
909
|
-
var competitorsAddInputSchema =
|
|
693
|
+
var competitorsAddInputSchema = z2.object({
|
|
910
694
|
project: projectNameSchema,
|
|
911
695
|
request: competitorAppendRequestSchema
|
|
912
696
|
});
|
|
913
|
-
var competitorChangePreviewInputSchema =
|
|
697
|
+
var competitorChangePreviewInputSchema = z2.discriminatedUnion("change", [
|
|
914
698
|
competitorChangePreviewRequestSchema.options[0].extend({ project: projectNameSchema }),
|
|
915
699
|
competitorChangePreviewRequestSchema.options[1].extend({ project: projectNameSchema }),
|
|
916
700
|
competitorChangePreviewRequestSchema.options[2].extend({ project: projectNameSchema }),
|
|
917
701
|
competitorChangePreviewRequestSchema.options[3].extend({ project: projectNameSchema })
|
|
918
702
|
]);
|
|
919
|
-
var competitorDomainInputSchema =
|
|
703
|
+
var competitorDomainInputSchema = z2.string().trim().min(1).describe("Tracked competitor domain (any spelling; it resolves to the stored registrable domain).");
|
|
920
704
|
var competitorAliasesInputSchema = competitorAliasesRequestSchema.safeExtend({
|
|
921
705
|
project: projectNameSchema,
|
|
922
706
|
domain: competitorDomainInputSchema
|
|
@@ -928,7 +712,7 @@ var competitorAliasBlockInputSchema = competitorAliasBlockRequestSchema.safeExte
|
|
|
928
712
|
var latestSweepRunIdDescription = "A run id, or latest for the latest sweep (the run the measurement reads display). With queryClass branded or non-brand and neither runId nor window, this tool reads latest; pass window to pool every sweep in it.";
|
|
929
713
|
var competitorLandscapeInputSchema = competitorLandscapeQuerySchema.safeExtend({
|
|
930
714
|
project: projectNameSchema,
|
|
931
|
-
runId:
|
|
715
|
+
runId: z2.string().trim().min(1).optional().describe(latestSweepRunIdDescription)
|
|
932
716
|
}).strict();
|
|
933
717
|
var competitorSuggestionsInputSchema = competitorSuggestionsQuerySchema.safeExtend({
|
|
934
718
|
project: projectNameSchema
|
|
@@ -938,189 +722,189 @@ function latestSweepUnlessPooled(query) {
|
|
|
938
722
|
if (query.queryClass !== "branded" && query.queryClass !== "non-brand") return query;
|
|
939
723
|
return { ...query, runId: LATEST_RUN_ID };
|
|
940
724
|
}
|
|
941
|
-
var projectUpsertInputSchema =
|
|
725
|
+
var projectUpsertInputSchema = z2.object({
|
|
942
726
|
project: projectNameSchema,
|
|
943
727
|
request: projectUpsertRequestSchema
|
|
944
728
|
});
|
|
945
|
-
var projectPatchInputSchema =
|
|
729
|
+
var projectPatchInputSchema = z2.object({
|
|
946
730
|
project: projectNameSchema,
|
|
947
731
|
request: projectPatchRequestSchema
|
|
948
732
|
});
|
|
949
|
-
var applyConfigInputSchema =
|
|
733
|
+
var applyConfigInputSchema = z2.object({
|
|
950
734
|
config: projectConfigSchema
|
|
951
735
|
});
|
|
952
|
-
var scheduleSetInputSchema =
|
|
736
|
+
var scheduleSetInputSchema = z2.object({
|
|
953
737
|
project: projectNameSchema,
|
|
954
738
|
schedule: scheduleUpsertRequestSchema
|
|
955
739
|
});
|
|
956
|
-
var scheduleReadInputSchema =
|
|
740
|
+
var scheduleReadInputSchema = z2.object({
|
|
957
741
|
project: projectNameSchema,
|
|
958
742
|
kind: schedulableRunKindSchema.optional().describe('Schedulable run kind. Defaults to "answer-visibility" if omitted.')
|
|
959
743
|
});
|
|
960
|
-
var scheduleListOutputSchema =
|
|
961
|
-
var notificationEventsOutputSchema =
|
|
962
|
-
var agentWebhookAttachInputSchema =
|
|
744
|
+
var scheduleListOutputSchema = z2.object({ items: z2.array(scheduleDtoSchema) });
|
|
745
|
+
var notificationEventsOutputSchema = z2.object({ items: z2.array(notificationEventSchema) });
|
|
746
|
+
var agentWebhookAttachInputSchema = z2.object({
|
|
963
747
|
project: projectNameSchema,
|
|
964
|
-
url:
|
|
748
|
+
url: z2.string().url()
|
|
965
749
|
});
|
|
966
|
-
var doctorInputSchema =
|
|
750
|
+
var doctorInputSchema = z2.object({
|
|
967
751
|
reportMonth: reportMonthSchema.optional().describe("Report month (YYYY-MM). Defaults to this month, also retaining the prior month through UTC day 3."),
|
|
968
752
|
project: projectNameSchema.optional().describe("Project name to scope project-level checks. Omit to run global checks (provider keys, config, etc.)."),
|
|
969
|
-
checks:
|
|
753
|
+
checks: z2.array(z2.string().min(1)).optional().describe('Optional check IDs or wildcard prefixes (e.g. "google.auth.*", "config.providers"). Empty/omitted runs all matching checks for the chosen scope.')
|
|
970
754
|
});
|
|
971
|
-
var statusInputSchema =
|
|
755
|
+
var statusInputSchema = z2.object({
|
|
972
756
|
project: projectNameSchema.optional().describe("Optional project name. Omit to read every visible project."),
|
|
973
|
-
problems:
|
|
757
|
+
problems: z2.boolean().optional().describe("Return only failing, stale, or never-synced projects and integrations.")
|
|
974
758
|
});
|
|
975
|
-
var contentTargetsInputSchema =
|
|
759
|
+
var contentTargetsInputSchema = z2.object({
|
|
976
760
|
project: projectNameSchema,
|
|
977
|
-
limit:
|
|
978
|
-
includeInProgress:
|
|
979
|
-
winnabilityClass:
|
|
980
|
-
ownable:
|
|
761
|
+
limit: z2.number().int().positive().max(500).optional().describe("Max rows. Defaults to all. Use a small number (3-10) when summarizing for the user."),
|
|
762
|
+
includeInProgress: z2.boolean().optional().describe("Include rows that already have an in-flight tracked action. Default false."),
|
|
763
|
+
winnabilityClass: z2.enum(["ownable", "ceded"]).optional().describe('Filter by winnability: "ownable" (worth a brief) or "ceded" (aggregator/editorial head term to skip).'),
|
|
764
|
+
ownable: z2.boolean().optional().describe('Convenience: when true, return only ownable targets (same as winnabilityClass="ownable").')
|
|
981
765
|
});
|
|
982
|
-
var contentBriefInputSchema =
|
|
766
|
+
var contentBriefInputSchema = z2.object({
|
|
983
767
|
project: projectNameSchema,
|
|
984
|
-
targetRef:
|
|
985
|
-
provider:
|
|
986
|
-
model:
|
|
987
|
-
forceRefresh:
|
|
768
|
+
targetRef: z2.string().min(1).describe("Stable target ref from canonry_content_targets. The target must be ownable; ceded targets are rejected."),
|
|
769
|
+
provider: z2.string().optional().describe("Optional provider override (claude|openai|gemini|zai)."),
|
|
770
|
+
model: z2.string().optional().describe("Optional model override within the chosen provider."),
|
|
771
|
+
forceRefresh: z2.boolean().optional().describe("Force a fresh synthesis even if a cached brief exists.")
|
|
988
772
|
});
|
|
989
|
-
var contentMapInputSchema =
|
|
773
|
+
var contentMapInputSchema = z2.object({
|
|
990
774
|
project: projectNameSchema
|
|
991
775
|
});
|
|
992
|
-
var backlinksDomainsInputSchema =
|
|
776
|
+
var backlinksDomainsInputSchema = z2.object({
|
|
993
777
|
project: projectNameSchema,
|
|
994
|
-
limit:
|
|
995
|
-
release:
|
|
778
|
+
limit: z2.number().int().positive().max(200).optional().describe("Max linking-domain rows. Default 50, max 200."),
|
|
779
|
+
release: z2.string().optional().describe("Common Crawl release id, e.g. cc-main-2026-jan-feb-mar. Omit for the most recent release with data."),
|
|
996
780
|
source: backlinkSourceSchema.optional().describe("Stored source. Common Crawl is active; bing-webmaster is historical-only.")
|
|
997
781
|
});
|
|
998
|
-
var backlinksSourcesInputSchema =
|
|
782
|
+
var backlinksSourcesInputSchema = z2.object({
|
|
999
783
|
project: projectNameSchema
|
|
1000
784
|
});
|
|
1001
|
-
var memoryUpsertInputSchema =
|
|
785
|
+
var memoryUpsertInputSchema = z2.object({
|
|
1002
786
|
project: projectNameSchema,
|
|
1003
|
-
key:
|
|
1004
|
-
value:
|
|
787
|
+
key: z2.string().min(1).max(AGENT_MEMORY_KEY_MAX_LENGTH).describe(`Stable identifier for the note (max ${AGENT_MEMORY_KEY_MAX_LENGTH} chars). Writing the same key overwrites the prior value.`),
|
|
788
|
+
value: z2.string().min(1).describe(`Plain-text note body (max ${AGENT_MEMORY_VALUE_MAX_BYTES} bytes). Use for durable operator preferences, migration context, or non-obvious reasoning that should survive future sessions.`)
|
|
1005
789
|
});
|
|
1006
|
-
var memoryForgetInputSchema =
|
|
790
|
+
var memoryForgetInputSchema = z2.object({
|
|
1007
791
|
project: projectNameSchema,
|
|
1008
|
-
key:
|
|
792
|
+
key: z2.string().min(1).max(AGENT_MEMORY_KEY_MAX_LENGTH).describe("Exact key of the note to remove. No-op (status=missing) when no note exists for that key.")
|
|
1009
793
|
});
|
|
1010
|
-
var trafficConnectCloudRunInputSchema =
|
|
794
|
+
var trafficConnectCloudRunInputSchema = z2.object({
|
|
1011
795
|
project: projectNameSchema,
|
|
1012
796
|
request: trafficConnectCloudRunRequestSchema
|
|
1013
797
|
});
|
|
1014
|
-
var trafficConnectWordpressInputSchema =
|
|
798
|
+
var trafficConnectWordpressInputSchema = z2.object({
|
|
1015
799
|
project: projectNameSchema,
|
|
1016
800
|
request: trafficConnectWordpressRequestSchema
|
|
1017
801
|
});
|
|
1018
|
-
var trafficConnectVercelInputSchema =
|
|
802
|
+
var trafficConnectVercelInputSchema = z2.object({
|
|
1019
803
|
project: projectNameSchema,
|
|
1020
804
|
request: trafficConnectVercelRequestSchema
|
|
1021
805
|
});
|
|
1022
|
-
var trafficSyncInputSchema =
|
|
806
|
+
var trafficSyncInputSchema = z2.object({
|
|
1023
807
|
project: projectNameSchema,
|
|
1024
|
-
sourceId:
|
|
1025
|
-
sinceMinutes:
|
|
808
|
+
sourceId: z2.string().min(1).describe("Traffic source ID returned by canonry_traffic_connect_cloud_run or canonry_traffic_sources_list."),
|
|
809
|
+
sinceMinutes: z2.number().int().positive().max(365 * 24 * 60).optional().describe("Optional lookback in minutes. Defaults are adapter-specific and clamp forward to lastSyncedAt; a new or idle WordPress source uses 365d to cover the plugin\u2019s maximum configurable retention.")
|
|
1026
810
|
});
|
|
1027
|
-
var trafficBackfillInputSchema =
|
|
811
|
+
var trafficBackfillInputSchema = z2.object({
|
|
1028
812
|
project: projectNameSchema,
|
|
1029
|
-
sourceId:
|
|
1030
|
-
days:
|
|
813
|
+
sourceId: z2.string().min(1).describe("Traffic source ID returned by canonry_traffic_sources_list."),
|
|
814
|
+
days: z2.number().int().positive().max(90).optional().describe("Lookback window in days. Default 30, capped by the adapter at 90d. Generic WordPress replace backfill is unavailable because retained coverage is unproven.")
|
|
1031
815
|
});
|
|
1032
|
-
var trafficResetInputSchema =
|
|
816
|
+
var trafficResetInputSchema = z2.object({
|
|
1033
817
|
project: projectNameSchema,
|
|
1034
|
-
sourceId:
|
|
1035
|
-
advanceToNow:
|
|
818
|
+
sourceId: z2.string().min(1).describe("Traffic source ID returned by canonry_traffic_sources_list."),
|
|
819
|
+
advanceToNow: z2.literal(true).describe("Must be `true`. Explicit gate against accidental resets. Advances lastSyncedAt to NOW and clears the source's error state; WordPress also clears its continuation state and records an unrecovered span that needs retention-aware repair.")
|
|
1036
820
|
});
|
|
1037
|
-
var trafficEventsInputSchema =
|
|
821
|
+
var trafficEventsInputSchema = z2.object({
|
|
1038
822
|
project: projectNameSchema,
|
|
1039
|
-
since:
|
|
1040
|
-
until:
|
|
1041
|
-
kind:
|
|
1042
|
-
sourceId:
|
|
1043
|
-
limit:
|
|
823
|
+
since: z2.string().optional().describe("ISO 8601 lower bound. Defaults to 24h ago when omitted."),
|
|
824
|
+
until: z2.string().optional().describe("ISO 8601 upper bound. Defaults to now when omitted."),
|
|
825
|
+
kind: z2.union([trafficEventKindSchema, z2.literal("all")]).optional().describe('Filter to one traffic kind; "all" (default) returns every kind.'),
|
|
826
|
+
sourceId: z2.string().min(1).optional().describe("Restrict to a single traffic source ID."),
|
|
827
|
+
limit: z2.number().int().positive().max(5e3).optional().describe("Max combined rows. Defaults to 500, max 5000. Totals always reflect the full window."),
|
|
1044
828
|
granularity: trafficSeriesGranularitySchema.optional().describe("Full-window chart series bucket size: hour (default) or day.")
|
|
1045
829
|
});
|
|
1046
|
-
var trafficSourceIdInputSchema =
|
|
830
|
+
var trafficSourceIdInputSchema = z2.object({
|
|
1047
831
|
project: projectNameSchema,
|
|
1048
|
-
sourceId:
|
|
832
|
+
sourceId: z2.string().min(1).describe("Traffic source ID.")
|
|
1049
833
|
});
|
|
1050
|
-
var discoveryRunInputSchema =
|
|
834
|
+
var discoveryRunInputSchema = z2.object({
|
|
1051
835
|
project: projectNameSchema,
|
|
1052
836
|
request: discoveryRunRequestSchema.extend({
|
|
1053
837
|
// Stronger descriptions for the LLM. The base Zod schema enforces the
|
|
1054
838
|
// upper bound; this just clarifies the meaning of each knob.
|
|
1055
|
-
icpDescription:
|
|
1056
|
-
buyerDescription:
|
|
1057
|
-
seedProviders:
|
|
1058
|
-
dedupThreshold:
|
|
1059
|
-
maxProbes:
|
|
1060
|
-
probeConcurrency:
|
|
839
|
+
icpDescription: z2.string().min(1).optional().describe("Free-text ICP description. If omitted, the project must already have spec.icpDescription stored."),
|
|
840
|
+
buyerDescription: z2.string().min(1).optional().describe("Who evaluates or buys the offering, separate from the ICP. When present, every generated query is anchored on this buyer."),
|
|
841
|
+
seedProviders: z2.array(z2.enum(["gemini", "openai"])).min(1).optional().describe('Which providers generate seed candidates. Omit for the Gemini-only default; ["gemini","openai"] merges both phrasing distributions before dedup.'),
|
|
842
|
+
dedupThreshold: z2.number().min(0).max(1).optional().describe("Cosine similarity threshold for clustering seed candidates. Defaults to 0.85. Lower values dedupe more aggressively."),
|
|
843
|
+
maxProbes: z2.number().int().positive().max(DISCOVERY_MAX_PROBES_CAP).optional().describe(`Max canonical queries to probe in this session. Default 100, hard cap ${DISCOVERY_MAX_PROBES_CAP}.`),
|
|
844
|
+
probeConcurrency: z2.number().int().min(1).max(DISCOVERY_PROBE_CONCURRENCY_CAP).optional().describe(`How many probes may run in parallel. Default 1 (strictly serial), hard cap ${DISCOVERY_PROBE_CONCURRENCY_CAP}. Probe rows are persisted in canonical order regardless of concurrency, so this only shortens wall-clock time.`)
|
|
1061
845
|
}).optional()
|
|
1062
846
|
});
|
|
1063
|
-
var discoverySessionsListInputSchema =
|
|
847
|
+
var discoverySessionsListInputSchema = z2.object({
|
|
1064
848
|
project: projectNameSchema,
|
|
1065
|
-
limit:
|
|
849
|
+
limit: z2.number().int().positive().max(200).optional().describe("Max sessions returned. Default 50.")
|
|
1066
850
|
});
|
|
1067
|
-
var discoverySessionIdInputSchema =
|
|
851
|
+
var discoverySessionIdInputSchema = z2.object({
|
|
1068
852
|
project: projectNameSchema,
|
|
1069
|
-
sessionId:
|
|
853
|
+
sessionId: z2.string().min(1).describe("Discovery session ID returned by canonry_discover_run_start.")
|
|
1070
854
|
});
|
|
1071
|
-
var researchRunStartInputSchema =
|
|
855
|
+
var researchRunStartInputSchema = z2.object({
|
|
1072
856
|
project: projectNameSchema,
|
|
1073
857
|
request: researchRunCreateSchema.describe("One shared provider/model/location context for every final free-form query in this saved research batch. An optional market or Property destination is saved with the batch. Template provenance records a template ID and version only; it never expands or alters queries.")
|
|
1074
858
|
});
|
|
1075
|
-
var researchRunsListInputSchema =
|
|
859
|
+
var researchRunsListInputSchema = z2.object({
|
|
1076
860
|
project: projectNameSchema,
|
|
1077
|
-
limit:
|
|
1078
|
-
cursor:
|
|
861
|
+
limit: z2.number().int().positive().max(100).optional().describe("Max saved research runs returned. Default 20."),
|
|
862
|
+
cursor: z2.string().min(1).optional().describe("Opaque cursor from the previous page.")
|
|
1079
863
|
});
|
|
1080
|
-
var researchBatchStartInputSchema =
|
|
864
|
+
var researchBatchStartInputSchema = z2.object({
|
|
1081
865
|
project: projectNameSchema,
|
|
1082
866
|
request: researchBatchCreateSchema.describe("Reviewed concrete runs, at most 20 destinations and 50 total queries. Specify provider, model and location (null means none) for every run. Pin the plan revision for each market or Property. Reuse the same idempotencyKey and unchanged request after an uncertain response.")
|
|
1083
867
|
});
|
|
1084
|
-
var researchRunIdInputSchema =
|
|
868
|
+
var researchRunIdInputSchema = z2.object({
|
|
1085
869
|
project: projectNameSchema,
|
|
1086
|
-
runId:
|
|
870
|
+
runId: z2.string().min(1).describe("Research run ID returned by canonry_research_run_start.")
|
|
1087
871
|
});
|
|
1088
|
-
var discoveryHarvestInputSchema =
|
|
872
|
+
var discoveryHarvestInputSchema = z2.object({
|
|
1089
873
|
project: projectNameSchema,
|
|
1090
|
-
sessionId:
|
|
1091
|
-
minProbeHits:
|
|
1092
|
-
anchor:
|
|
874
|
+
sessionId: z2.string().min(1).describe("Discovery session ID returned by canonry_discover_run_start."),
|
|
875
|
+
minProbeHits: z2.number().int().positive().optional().describe("Recurrence floor \u2014 a candidate must have appeared in at least this many distinct probes to be admitted. Default 1."),
|
|
876
|
+
anchor: z2.boolean().optional().describe("Apply the subject-anchor filter that drops off-topic acronym collisions. Default true; pass false for new-subject discovery on a well-scoped project.")
|
|
1093
877
|
});
|
|
1094
|
-
var discoveryPromoteInputSchema =
|
|
878
|
+
var discoveryPromoteInputSchema = z2.object({
|
|
1095
879
|
project: projectNameSchema,
|
|
1096
|
-
sessionId:
|
|
880
|
+
sessionId: z2.string().min(1).describe("Discovery session ID returned by canonry_discover_run_start."),
|
|
1097
881
|
request: discoveryPromoteRequestSchema.extend({
|
|
1098
882
|
// Stronger descriptions for the LLM. The base Zod schema enforces the shape.
|
|
1099
|
-
buckets:
|
|
1100
|
-
includeCompetitors:
|
|
1101
|
-
competitorTypes:
|
|
883
|
+
buckets: z2.array(discoveryBucketSchema).min(1).optional().describe("Which probe buckets to adopt into the tracked basket. Omitted promotes cited + aspirational; include wasted-surface explicitly for off-ICP competitor gaps."),
|
|
884
|
+
includeCompetitors: z2.boolean().optional().describe("Whether to also merge recurring discovered competitor domains into the project. Defaults to true."),
|
|
885
|
+
competitorTypes: z2.array(discoveryCompetitorTypeSchema).min(1).optional().describe("Which classified competitor types to merge. Omitted promotes direct-competitor only; pass an explicit list to also adopt editorial-media channels or to recover legacy unknown entries. Ignored when includeCompetitors is false.")
|
|
1102
886
|
}).optional()
|
|
1103
887
|
});
|
|
1104
|
-
var technicalAeoScoreInputSchema =
|
|
888
|
+
var technicalAeoScoreInputSchema = z2.object({
|
|
1105
889
|
project: projectNameSchema,
|
|
1106
890
|
runId: runIdSchema.optional().describe("Historical site-audit run ID. Omit for the latest audit.")
|
|
1107
891
|
});
|
|
1108
|
-
var technicalAeoPagesInputSchema =
|
|
892
|
+
var technicalAeoPagesInputSchema = z2.object({
|
|
1109
893
|
project: projectNameSchema,
|
|
1110
894
|
runId: runIdSchema.optional().describe("Historical site-audit run ID. Omit for the latest audit."),
|
|
1111
|
-
status:
|
|
1112
|
-
sort:
|
|
1113
|
-
limit:
|
|
1114
|
-
offset:
|
|
895
|
+
status: z2.enum(["success", "error"]).optional().describe("Filter to successfully-audited or errored pages."),
|
|
896
|
+
sort: z2.enum(["score-asc", "score-desc", "url"]).optional().describe("Sort order. Defaults to score-asc (worst pages first)."),
|
|
897
|
+
limit: z2.number().int().positive().max(500).optional(),
|
|
898
|
+
offset: z2.number().int().nonnegative().optional()
|
|
1115
899
|
});
|
|
1116
|
-
var technicalAeoTrendInputSchema =
|
|
900
|
+
var technicalAeoTrendInputSchema = z2.object({
|
|
1117
901
|
project: projectNameSchema,
|
|
1118
|
-
limit:
|
|
902
|
+
limit: z2.number().int().positive().max(365).optional()
|
|
1119
903
|
});
|
|
1120
904
|
var crawlRunIdSchema = runIdSchema.optional().describe(
|
|
1121
905
|
"Historical crawl-bearing site-audit run ID. Omit for the newest scan with a crawl, complete or stopped at its budget."
|
|
1122
906
|
);
|
|
1123
|
-
var technicalAeoCrawlInputSchema =
|
|
907
|
+
var technicalAeoCrawlInputSchema = z2.object({
|
|
1124
908
|
project: projectNameSchema,
|
|
1125
909
|
runId: crawlRunIdSchema,
|
|
1126
910
|
date: calendarDateSchema.optional().describe("Exact UTC scan date YYYY-MM-DD, mutually exclusive with runId. A dated no-data result may include availableScanDates. When the user omitted the year, resolve it from matchingMonthDayDates and request that exact returned date before concluding the scan is missing. Never silently select another date.")
|
|
@@ -1131,13 +915,13 @@ var siteHealthIssuesInputSchema = siteAuditIssueListQuerySchema.extend({
|
|
|
1131
915
|
cursor: siteAuditIssueListQuerySchema.shape.cursor.describe("Opaque nextCursor from this same scan and issue feed.")
|
|
1132
916
|
});
|
|
1133
917
|
var siteHealthIssuePagesInputSchema = siteHealthIssuesInputSchema.extend({
|
|
1134
|
-
issueId:
|
|
918
|
+
issueId: z2.string().min(1).describe("Exact issue ID from canonry_site_health_issues. Keep the returned runId when inspecting affected pages.")
|
|
1135
919
|
});
|
|
1136
|
-
var siteHealthPageAuditInputSchema =
|
|
920
|
+
var siteHealthPageAuditInputSchema = z2.object({
|
|
1137
921
|
project: projectNameSchema,
|
|
1138
922
|
runId: crawlRunIdSchema,
|
|
1139
|
-
nodeKey:
|
|
1140
|
-
url:
|
|
923
|
+
nodeKey: z2.string().min(1).optional().describe("Exact crawl node key, as returned by Site Health page or subgraph reads."),
|
|
924
|
+
url: z2.string().url().optional().describe("Exact page URL. Use this only when a crawl node key is unavailable.")
|
|
1141
925
|
}).refine((value) => Boolean(value.nodeKey || value.url), {
|
|
1142
926
|
message: "Provide nodeKey or url.",
|
|
1143
927
|
path: ["nodeKey"]
|
|
@@ -1147,26 +931,26 @@ var siteHealthPageAuditInputSchema = z3.object({
|
|
|
1147
931
|
});
|
|
1148
932
|
var SITE_HEALTH_MCP_MAX_NODES = 25;
|
|
1149
933
|
var SITE_HEALTH_MCP_MAX_EDGES = 50;
|
|
1150
|
-
var siteHealthSubgraphInputSchema =
|
|
934
|
+
var siteHealthSubgraphInputSchema = z2.object({
|
|
1151
935
|
project: projectNameSchema,
|
|
1152
936
|
runId: crawlRunIdSchema,
|
|
1153
|
-
nodeKey:
|
|
1154
|
-
url:
|
|
1155
|
-
hops:
|
|
1156
|
-
maxNodes:
|
|
1157
|
-
maxEdges:
|
|
937
|
+
nodeKey: z2.string().min(1).optional().describe("Focus crawl node key. Omit with url to focus the crawl root."),
|
|
938
|
+
url: z2.string().url().optional().describe("Focus canonical URL. Omit with nodeKey to focus the crawl root."),
|
|
939
|
+
hops: z2.number().int().min(0).max(3).optional().describe("Neighborhood depth from the focus node. Keep this small."),
|
|
940
|
+
maxNodes: z2.number().int().positive().max(SITE_HEALTH_MCP_MAX_NODES).default(SITE_HEALTH_MCP_MAX_NODES).describe("Hard MCP cap: at most 25 nodes. Narrow or refocus instead of loading the site."),
|
|
941
|
+
maxEdges: z2.number().int().positive().max(SITE_HEALTH_MCP_MAX_EDGES).default(SITE_HEALTH_MCP_MAX_EDGES).describe("Hard MCP cap: at most 50 edges. Narrow or refocus instead of loading the site.")
|
|
1158
942
|
}).refine((value) => !(value.nodeKey && value.url), {
|
|
1159
943
|
message: "Provide nodeKey or url, not both.",
|
|
1160
944
|
path: ["nodeKey"]
|
|
1161
945
|
});
|
|
1162
|
-
var siteHealthPathInputSchema =
|
|
946
|
+
var siteHealthPathInputSchema = z2.object({
|
|
1163
947
|
project: projectNameSchema,
|
|
1164
948
|
runId: crawlRunIdSchema,
|
|
1165
|
-
fromNodeKey:
|
|
1166
|
-
fromUrl:
|
|
1167
|
-
toNodeKey:
|
|
1168
|
-
toUrl:
|
|
1169
|
-
maxDepth:
|
|
949
|
+
fromNodeKey: z2.string().min(1).optional().describe("Origin node key. Omit with fromUrl to start at the crawl root."),
|
|
950
|
+
fromUrl: z2.string().url().optional().describe("Origin URL. Omit with fromNodeKey to start at the crawl root."),
|
|
951
|
+
toNodeKey: z2.string().min(1).optional().describe("Required destination node key."),
|
|
952
|
+
toUrl: z2.string().url().optional().describe("Required destination URL."),
|
|
953
|
+
maxDepth: z2.number().int().positive().max(24).optional().describe("Maximum directed-link depth to search.")
|
|
1170
954
|
}).refine((value) => !(value.fromNodeKey && value.fromUrl), {
|
|
1171
955
|
message: "Provide fromNodeKey or fromUrl, not both.",
|
|
1172
956
|
path: ["fromNodeKey"]
|
|
@@ -1177,72 +961,72 @@ var siteHealthPathInputSchema = z3.object({
|
|
|
1177
961
|
message: "Provide toNodeKey or toUrl, not both.",
|
|
1178
962
|
path: ["toNodeKey"]
|
|
1179
963
|
});
|
|
1180
|
-
var siteHealthChangesInputSchema =
|
|
964
|
+
var siteHealthChangesInputSchema = z2.object({
|
|
1181
965
|
project: projectNameSchema,
|
|
1182
966
|
fromRunId: runIdSchema.optional().describe("Earlier complete crawl run ID. Omit to compare the previous complete crawl."),
|
|
1183
967
|
toRunId: runIdSchema.optional().describe("Later complete crawl run ID. Omit to compare the latest complete crawl."),
|
|
1184
|
-
scope:
|
|
1185
|
-
change:
|
|
1186
|
-
cursor:
|
|
1187
|
-
limit:
|
|
968
|
+
scope: z2.enum(["all", "pages", "links"]).optional().describe("Limit the diff to page or link changes. Omit or use all for both."),
|
|
969
|
+
change: z2.enum(["all", "added", "removed", "changed"]).optional().describe("Limit the diff to one change kind. Omit or use all for every kind."),
|
|
970
|
+
cursor: z2.string().min(1).optional().describe("Opaque cursor from the previous Site Health changes result."),
|
|
971
|
+
limit: z2.number().int().positive().max(25).default(25).describe("Hard MCP cap: 25 records, because each change carries before and after DTOs.")
|
|
1188
972
|
});
|
|
1189
|
-
var technicalAeoCrawlPagesInputSchema =
|
|
973
|
+
var technicalAeoCrawlPagesInputSchema = z2.object({
|
|
1190
974
|
project: projectNameSchema,
|
|
1191
975
|
runId: runIdSchema.optional(),
|
|
1192
976
|
date: calendarDateSchema.optional().describe("Exact UTC scan date YYYY-MM-DD, mutually exclusive with runId. A dated no-data result may include availableScanDates. When the user omitted the year, resolve it from matchingMonthDayDates and request that exact returned date before concluding the scan is missing. Missing data never falls back to another date."),
|
|
1193
|
-
inventoryEligible:
|
|
1194
|
-
fetchState:
|
|
1195
|
-
indexabilityState:
|
|
1196
|
-
auditState:
|
|
1197
|
-
sort:
|
|
1198
|
-
cursor:
|
|
1199
|
-
limit:
|
|
977
|
+
inventoryEligible: z2.boolean().optional().describe("Filter Canonry technical-inventory eligibility. This is not actual Google index coverage."),
|
|
978
|
+
fetchState: z2.string().min(1).optional().describe("Filter crawler fetch state, for example html, redirect, non-html, or fetch-error."),
|
|
979
|
+
indexabilityState: z2.string().min(1).optional().describe("Filter crawler-derived indexability state. This is not Google index coverage."),
|
|
980
|
+
auditState: z2.string().min(1).optional().describe("Filter audit state."),
|
|
981
|
+
sort: z2.enum(["url", "path", "score-asc", "score-desc"]).optional(),
|
|
982
|
+
cursor: z2.string().min(1).optional().describe("Opaque cursor from the previous crawl-pages result."),
|
|
983
|
+
limit: z2.number().int().positive().max(200).optional()
|
|
1200
984
|
});
|
|
1201
|
-
var technicalAeoStructureInputSchema =
|
|
985
|
+
var technicalAeoStructureInputSchema = z2.object({
|
|
1202
986
|
project: projectNameSchema,
|
|
1203
987
|
runId: runIdSchema.optional(),
|
|
1204
|
-
parentPath:
|
|
1205
|
-
cursor:
|
|
1206
|
-
limit:
|
|
988
|
+
parentPath: z2.string().min(1).optional().describe("Path whose immediate children to list. Defaults to /. This never returns a whole site tree."),
|
|
989
|
+
cursor: z2.string().min(1).optional().describe("Opaque cursor from the previous structure result."),
|
|
990
|
+
limit: z2.number().int().positive().max(100).optional()
|
|
1207
991
|
});
|
|
1208
|
-
var linkKindSchema =
|
|
992
|
+
var linkKindSchema = z2.enum(["all", "content", "template"]).optional().describe(
|
|
1209
993
|
"Restrict to content links (excludes nav, header, and footer links) or to template links only. Defaults to all. Check templateDetection before reading an empty content list as a real zero, and before comparing a count with an older scan: it says whether the split came from where each link sits in the page or from how many pages repeat it."
|
|
1210
994
|
);
|
|
1211
|
-
var technicalAeoInternalLinksInputSchema =
|
|
995
|
+
var technicalAeoInternalLinksInputSchema = z2.object({
|
|
1212
996
|
project: projectNameSchema,
|
|
1213
997
|
runId: runIdSchema.optional(),
|
|
1214
|
-
sourceUrl:
|
|
1215
|
-
targetUrl:
|
|
1216
|
-
followable:
|
|
998
|
+
sourceUrl: z2.string().url().optional(),
|
|
999
|
+
targetUrl: z2.string().url().optional(),
|
|
1000
|
+
followable: z2.boolean().optional(),
|
|
1217
1001
|
linkKind: linkKindSchema,
|
|
1218
|
-
cursor:
|
|
1219
|
-
limit:
|
|
1002
|
+
cursor: z2.string().min(1).optional().describe("Opaque cursor from the previous internal-links result."),
|
|
1003
|
+
limit: z2.number().int().positive().max(200).optional()
|
|
1220
1004
|
});
|
|
1221
|
-
var technicalAeoLinkNeighborsInputSchema =
|
|
1005
|
+
var technicalAeoLinkNeighborsInputSchema = z2.object({
|
|
1222
1006
|
project: projectNameSchema,
|
|
1223
1007
|
runId: runIdSchema.optional(),
|
|
1224
|
-
nodeKey:
|
|
1225
|
-
url:
|
|
1008
|
+
nodeKey: z2.string().min(1).optional(),
|
|
1009
|
+
url: z2.string().url().optional(),
|
|
1226
1010
|
linkKind: linkKindSchema,
|
|
1227
|
-
limit:
|
|
1011
|
+
limit: z2.number().int().positive().max(100).optional()
|
|
1228
1012
|
}).refine((value) => Boolean(value.nodeKey || value.url), {
|
|
1229
1013
|
message: "Provide nodeKey or url.",
|
|
1230
1014
|
path: ["nodeKey"]
|
|
1231
1015
|
});
|
|
1232
|
-
var technicalAeoDeadLinksInputSchema =
|
|
1016
|
+
var technicalAeoDeadLinksInputSchema = z2.object({
|
|
1233
1017
|
project: projectNameSchema,
|
|
1234
1018
|
runId: runIdSchema.optional(),
|
|
1235
|
-
cursor:
|
|
1236
|
-
limit:
|
|
1019
|
+
cursor: z2.string().min(1).optional().describe("Opaque cursor from the previous dead-links result."),
|
|
1020
|
+
limit: z2.number().int().positive().max(200).optional()
|
|
1237
1021
|
});
|
|
1238
|
-
var technicalAeoRunInputSchema =
|
|
1022
|
+
var technicalAeoRunInputSchema = z2.object({
|
|
1239
1023
|
project: projectNameSchema,
|
|
1240
|
-
sitemapUrl:
|
|
1241
|
-
limit:
|
|
1024
|
+
sitemapUrl: z2.string().url().optional().describe("Override the sitemap URL. Defaults to https://<canonicalDomain>/sitemap.xml."),
|
|
1025
|
+
limit: z2.number().int().positive().max(2e3).optional().describe("Deprecated compatibility alias for maxPages."),
|
|
1242
1026
|
maxPages: siteAuditPageBudgetSchema.optional().describe("Maximum pages crawled and audited (1 to 50,000). Omitted uses the project's saved budget (siteAuditMaxPages, set with canonry_project_upsert or canonry_apply_config), else the full site, up to 50,000; pass a smaller number for a quick look."),
|
|
1243
|
-
maxEdges:
|
|
1244
|
-
maxDepth:
|
|
1245
|
-
checkDeadLinks:
|
|
1027
|
+
maxEdges: z2.number().int().positive().max(1e6).optional().describe("Maximum link observations retained for this crawl. When omitted the crawl engine derives the budget from the page count; hard maximum 1,000,000."),
|
|
1028
|
+
maxDepth: z2.number().int().min(0).max(100).optional().describe("Maximum internal-link depth from the root page."),
|
|
1029
|
+
checkDeadLinks: z2.boolean().optional().describe("Opt in to internal dead-link checks. Omitted and false both disable checks."),
|
|
1246
1030
|
includeGeo: siteAuditRunRequestSchema.shape.includeGeo.removeDefault().optional().describe("Opt in to geographic signals for a location or service-area business."),
|
|
1247
1031
|
includeAgentSkills: siteAuditRunRequestSchema.shape.includeAgentSkills.removeDefault().optional().describe("Check discoverable actions, forms, and agent integrations by default. Set false to disable.")
|
|
1248
1032
|
});
|
|
@@ -1254,14 +1038,14 @@ var AGENT_WEBHOOK_EVENTS = [
|
|
|
1254
1038
|
];
|
|
1255
1039
|
var sentimentInputSchema = sentimentSelectionSchema.safeExtend({
|
|
1256
1040
|
project: projectNameSchema,
|
|
1257
|
-
include:
|
|
1258
|
-
queryLimit:
|
|
1259
|
-
queryCursor:
|
|
1041
|
+
include: z2.array(sentimentSummaryIncludeSchema).max(2).optional().describe("Opt-in per-query detail: per-engine assessments and per-location scores. Omitted, query rows are compact unless queryId names one query."),
|
|
1042
|
+
queryLimit: z2.number().int().min(1).max(SENTIMENT_QUERY_PAGE_MAX).optional().describe(`Query rows per page (default ${SENTIMENT_QUERY_PAGE_DEFAULT}).`),
|
|
1043
|
+
queryCursor: z2.string().min(1).max(16384).optional().describe("queryPage.nextCursor from the previous page; keep every selection field unchanged.")
|
|
1260
1044
|
});
|
|
1261
1045
|
var sentimentJobInputSchema = projectInputSchema.extend({
|
|
1262
|
-
jobId:
|
|
1263
|
-
attemptLimit:
|
|
1264
|
-
attemptCursor:
|
|
1046
|
+
jobId: z2.string().min(1).max(256),
|
|
1047
|
+
attemptLimit: z2.number().int().min(1).max(200).optional().describe(`Attempt receipts per page, newest first (default ${SENTIMENT_ATTEMPT_PAGE_DEFAULT}).`),
|
|
1048
|
+
attemptCursor: z2.string().min(1).max(4096).optional().describe("nextAttemptCursor from the previous page of this job.")
|
|
1265
1049
|
});
|
|
1266
1050
|
var sentimentEvidenceInputSchema = sentimentEvidenceRequestSchema.safeExtend({
|
|
1267
1051
|
project: projectNameSchema,
|
|
@@ -1455,7 +1239,7 @@ var rawCanonryMcpTools = [
|
|
|
1455
1239
|
description: "Preview manual, template or saved research additions and assignment removals against the exact workspace version. Returns a review token, deduplicated change and next-sweep workload. Does not publish or start provider work. This POST requires write access.",
|
|
1456
1240
|
access: "write",
|
|
1457
1241
|
tier: "setup",
|
|
1458
|
-
inputSchema:
|
|
1242
|
+
inputSchema: z2.object({ project: projectNameSchema, request: queryTrackingPreviewRequestSchema }).strict(),
|
|
1459
1243
|
annotations: readAnnotations(),
|
|
1460
1244
|
openApiOperations: ["POST /api/v1/projects/{name}/query-tracking/preview"],
|
|
1461
1245
|
handler: (client, input) => client.previewQueryTracking(input.project, input.request)
|
|
@@ -1466,7 +1250,7 @@ var rawCanonryMcpTools = [
|
|
|
1466
1250
|
description: "Commit the exact reviewed mutation using its workspace version and preview token. No-op changes do not publish a revision. A successful publication starts zero provider calls; new assignments await the next project-wide sweep. Use the returned revision rather than predicting one.",
|
|
1467
1251
|
access: "write",
|
|
1468
1252
|
tier: "setup",
|
|
1469
|
-
inputSchema:
|
|
1253
|
+
inputSchema: z2.object({ project: projectNameSchema, request: queryTrackingCommitRequestSchema }).strict(),
|
|
1470
1254
|
annotations: writeAnnotations({ idempotentHint: true, destructiveHint: true }),
|
|
1471
1255
|
openApiOperations: ["POST /api/v1/projects/{name}/query-tracking/commit"],
|
|
1472
1256
|
handler: (client, input) => client.commitQueryTracking(input.project, input.request)
|
|
@@ -1510,10 +1294,10 @@ var rawCanonryMcpTools = [
|
|
|
1510
1294
|
description: `Sentiment headline is sentiment.branded; nonBrand is a separate exception population. pooledOverall and deprecated overall are explicitly pooled compatibility figures and must never be reported as a class-specific headline. One-call summary for "how is project X doing?". Returns independent mention and citation coverage, separate query-level movement for each signal, query-basket comparability with added/removed counts, latest run and health, insights, provider/model breakdowns, competitors, attention items, and recent history. Movement excludes queries not shared by both sweeps. Filterable by location and time window. Prefer this over fanning out to separate read tools for the same question. queryClassScope says which figures pool branded and non-brand: the coverage, scores (except scores.mentionShare) and movement count queries across both classes, so never report them as one class or as answers. latestRun.admission describes the scheduled sweep; latestRun.manualAdmission describes a default full manual sweep. Each says whether its provider scope would be refused or skip providers that keep failing on their accounts. They can differ when the schedule names fewer providers; use manualAdmission before a default manual sweep. The latest run's status and health are not a completeness check: for expected, executed and missing answers read canonry_measurement_data_quality or, for a plan run, canonry_run_completeness. canonry_doctor checks configuration and integrations, not sweeps. SCOPE LIMIT: this returns nothing about Advanced Measurement: no plan, Targets, Properties, groups, or segments. Its silence is not evidence that a project lacks them. When the system prompt has no Project shape line, call canonry_measurement_plan_get before stating that a project has no Properties, no Advanced plan, or cannot break out per-Property performance; use canonry_measurement_portfolio_summary to rank Properties.`,
|
|
1511
1295
|
access: "read",
|
|
1512
1296
|
tier: "core",
|
|
1513
|
-
inputSchema:
|
|
1297
|
+
inputSchema: z2.object({
|
|
1514
1298
|
project: projectNameSchema,
|
|
1515
|
-
location:
|
|
1516
|
-
since:
|
|
1299
|
+
location: z2.string().optional().describe('Filter to runs from this location label (e.g. "Boston, MA, US"). Omit for all locations.'),
|
|
1300
|
+
since: z2.string().optional().describe("ISO 8601 datetime \u2014 only include runs at or after this time. Omit for full history.")
|
|
1517
1301
|
}),
|
|
1518
1302
|
annotations: readAnnotations(),
|
|
1519
1303
|
openApiOperations: ["GET /api/v1/projects/{name}/overview"],
|
|
@@ -1528,7 +1312,7 @@ var rawCanonryMcpTools = [
|
|
|
1528
1312
|
description: "One-call investigation of whether organic work is gaining visibility, traffic, or AI attention. Returns source-specific 30-day GSC and GA4 cohorts, URL-agnostic page evidence, available GA4 lead-event evidence (not lead attribution), server-observed AI crawling/user-fetch/referral evidence, the latest answer-visibility sweep, source coverage, findings, and limitations. It preserves native units. Prefer this over fanning out across GSC, GA, traffic, and visibility tools.",
|
|
1529
1313
|
access: "read",
|
|
1530
1314
|
tier: "monitoring",
|
|
1531
|
-
inputSchema:
|
|
1315
|
+
inputSchema: z2.object({
|
|
1532
1316
|
project: projectNameSchema,
|
|
1533
1317
|
period: organicEvidencePeriodSchema.optional().describe("Evidence window: 60 or 90 days (default 90).")
|
|
1534
1318
|
}),
|
|
@@ -1542,7 +1326,7 @@ var rawCanonryMcpTools = [
|
|
|
1542
1326
|
description: "Citation and mention rates over time for a project, bucketed adaptively (daily \u2192 monthly by span) and probe-excluded. Returns overall + per-provider window aggregates AND a per-bucket `byProvider` breakdown so you can read how each engine's cited/mentioned rate moved run-over-run \u2014 the same data the dashboard's \"Citations & mentions over time\" chart plots. Includes trend direction (improving/declining/stable) for both signals and query-set-change annotations. Filter the range with `window` (7d/30d/90d/all).",
|
|
1543
1327
|
access: "read",
|
|
1544
1328
|
tier: "monitoring",
|
|
1545
|
-
inputSchema:
|
|
1329
|
+
inputSchema: z2.object({
|
|
1546
1330
|
project: projectNameSchema,
|
|
1547
1331
|
window: analyticsWindowSchema.optional().describe("Time range: 7d, 30d, 90d, or all (default all).")
|
|
1548
1332
|
}),
|
|
@@ -1556,13 +1340,13 @@ var rawCanonryMcpTools = [
|
|
|
1556
1340
|
description: "Where AI engines cite from for a project: cited domains ranked by how many answers cite them, each tagged with a category and a surface class (own / direct-competitor / ota-aggregator / editorial-media / other), plus a surface-class roll-up and a per-provider breakdown. Every entry carries rank, its position by count in that list over the whole scope (equal counts share a rank); state where a domain places only from its rank, never by counting rows. Project-wide: without `queryClass` it pools branded and non-brand answers, where branded queries inflate your own domain. With `queryClass` set and neither `runId` nor `window`, this tool reads the latest sweep (`runId` latest); pass `window` to pool every sweep in it. `pooledAcrossRuns` true (`runCount` above 1) means the counts sum several runs and `runIds` is their scope; the legacy `runId` field is then only the newest run in the window. On a v2 measurement plan the class comes from the plan, the same answers as canonry_competitor_landscape with scope=all-markets. `countUnits` says what each count counts: `domainTotal` is distinct domains, never answers or citations. Compare engines by answer count or `answerShare`, never by rank position. Counts come from each answer's stored source list, so every engine is included, Gemini too. A domain counts at most once per answer; `answerShare` is the share of all answers in scope that cite it. `providersWithoutSources` names engines that answered but cited nothing. `limit` caps each ranked list (default 10 for this tool, which keeps each engine list whole); a long-tail rollup keeps the totals. The per-query breakdown is omitted unless `includeByQuery` is true. No LLM calls; probe runs excluded.",
|
|
1557
1341
|
access: "read",
|
|
1558
1342
|
tier: "monitoring",
|
|
1559
|
-
inputSchema:
|
|
1343
|
+
inputSchema: z2.object({
|
|
1560
1344
|
project: projectNameSchema,
|
|
1561
1345
|
window: analyticsWindowSchema.optional().describe("Time range: 7d, 30d, 90d, or all (default all)."),
|
|
1562
|
-
limit:
|
|
1563
|
-
runId:
|
|
1564
|
-
queryClass:
|
|
1565
|
-
includeByQuery:
|
|
1346
|
+
limit: z2.number().int().positive().max(50).optional().describe("Cap each ranked list to the top N domains. Default 10; larger lists can exceed the tool-result cap."),
|
|
1347
|
+
runId: z2.string().trim().min(1).optional().describe(latestSweepRunIdDescription),
|
|
1348
|
+
queryClass: z2.enum(["all", "branded", "non-brand"]).optional().describe("Branded or non-brand answers only. With an active v2 measurement plan the class comes from the plan assignments. Default all pools both classes."),
|
|
1349
|
+
includeByQuery: z2.boolean().optional().describe("Include the per-query breakdown. It is large; default false for this tool.")
|
|
1566
1350
|
}),
|
|
1567
1351
|
annotations: readAnnotations(),
|
|
1568
1352
|
openApiOperations: ["GET /api/v1/projects/{name}/analytics/sources"],
|
|
@@ -1624,10 +1408,10 @@ var rawCanonryMcpTools = [
|
|
|
1624
1408
|
description: "Search query snapshots and intelligence insights for the given text. Looks at snapshot answer text, cited domains, raw provider responses, and insight title/query/recommendation/cause. Returns ranked hits with snippets \u2014 use it instead of paginating snapshots when you need to find a competitor mention or term.",
|
|
1625
1409
|
access: "read",
|
|
1626
1410
|
tier: "core",
|
|
1627
|
-
inputSchema:
|
|
1411
|
+
inputSchema: z2.object({
|
|
1628
1412
|
project: projectNameSchema,
|
|
1629
|
-
q:
|
|
1630
|
-
limit:
|
|
1413
|
+
q: z2.string().min(2).describe("Search term, at least 2 characters."),
|
|
1414
|
+
limit: z2.number().int().positive().max(50).optional().describe("Max combined hits (1-50, default 25).")
|
|
1631
1415
|
}),
|
|
1632
1416
|
annotations: readAnnotations(),
|
|
1633
1417
|
openApiOperations: ["GET /api/v1/projects/{name}/search"],
|
|
@@ -1867,15 +1651,15 @@ var rawCanonryMcpTools = [
|
|
|
1867
1651
|
description: 'Per-query mention (answer-text) and citation (source-list) counts WITH a sample size, pooled across many answer-visibility runs (probe-excluded) \u2014 the data to compute a confidence-aware (Wilson) proportion or detect drift without fetching every run. Tri-state aware: `checked` (the n for the mention proportion) counts only snapshots where answerMentioned was recorded; `null` ("not checked") is excluded, never counted as not-mentioned. Returns per-query `total`/`checked`/`mentioned`/`cited` + derived `mentionRate` (mentioned/checked) and `citedRate` (cited/total), `firstObserved`/`lastObserved`, and pooled `totals`. Window with `since`/`until` (ISO), `lastRuns`, or `month=YYYY-MM` (mutually exclusive); with none set, EVERY completed/partial run is pooled (`window.runCount` says how many) \u2014 pass `lastRuns` for a recent sample. Set `groupBy=provider` for a per-provider breakdown whose counts sum to the pooled counts (`groupBy` is omitted from the response otherwise). Set `shareOfVoice=true` for brand-mention share with explicit basis, availability, and reason. Tracked competitors are exclusive when configured; otherwise 3 stored direct competitors must each have 3 answer mentions. Raw names and platforms are excluded. Advanced portfolios use frozen assignments across all markets; Simple sites use the same attributed snapshot set \u2014 scoped to NON-BRAND queries by default, because a branded query names the project (it is mentioned on nearly all of them and a competitor cannot be), so a pooled figure reports brand recall as category placement. Pass `queryClass="branded"` for the recall figure; the response echoes which class it served.',
|
|
1868
1652
|
access: "read",
|
|
1869
1653
|
tier: "monitoring",
|
|
1870
|
-
inputSchema:
|
|
1654
|
+
inputSchema: z2.object({
|
|
1871
1655
|
project: projectNameSchema,
|
|
1872
|
-
since:
|
|
1873
|
-
until:
|
|
1874
|
-
lastRuns:
|
|
1875
|
-
month:
|
|
1876
|
-
groupBy:
|
|
1877
|
-
shareOfVoice:
|
|
1878
|
-
queryClass:
|
|
1656
|
+
since: z2.string().optional().describe("Inclusive lower bound on run createdAt (ISO 8601). A date-only value (YYYY-MM-DD) is the start of that UTC day. Mutually exclusive with lastRuns/month."),
|
|
1657
|
+
until: z2.string().optional().describe("Inclusive upper bound on run createdAt (ISO 8601). A date-only value (YYYY-MM-DD) covers the whole UTC day (through 23:59:59.999). Mutually exclusive with lastRuns/month."),
|
|
1658
|
+
lastRuns: z2.number().int().positive().optional().describe("Aggregate only the most recent N answer-visibility runs. Mutually exclusive with since/until/month."),
|
|
1659
|
+
month: z2.string().optional().describe("Aggregate one calendar month (YYYY-MM), expanded to that month's inclusive UTC bounds. Mutually exclusive with since/until/lastRuns."),
|
|
1660
|
+
groupBy: z2.enum(["provider"]).optional().describe('Set to "provider" for a per-provider breakdown.'),
|
|
1661
|
+
shareOfVoice: z2.boolean().optional().describe("Include brand-mention share with tracked/observed basis and availability across the same window (non-brand queries unless queryClass says otherwise)."),
|
|
1662
|
+
queryClass: z2.enum(["branded", "non-brand"]).optional().describe('Query class for shareOfVoice. Defaults to non-brand. There is no "all": branded and non-brand never share a denominator.')
|
|
1879
1663
|
}),
|
|
1880
1664
|
annotations: readAnnotations(),
|
|
1881
1665
|
openApiOperations: ["GET /api/v1/projects/{name}/visibility-stats"],
|
|
@@ -1895,11 +1679,11 @@ var rawCanonryMcpTools = [
|
|
|
1895
1679
|
description: "Statistically honest month-over-month AEO comparison in ONE call \u2014 use this instead of hand-computing deltas from two visibility-stats calls. Share of voice (`mention-share-of-voice`, `driftRobust: true`) is less exposed to broad model-wide naming propensity than absolute rates, but it never overrides model continuity. Branded and non-brand mention/cited rates are separate additive metrics; classification-unavailable never falls back to pooling. provider and location narrow every frame; scope, scopeKey and marketKey answer from the frozen Advanced frame alone (refused when a month holds unreconstructable schema-v1 runs) and deduplicate shared executions. Without scope/marketKey, Advanced class metrics use classComparison for their basket and continuity while the four original metrics keep the project frame. On frozen frames, answers with incomplete source capture leave every citation figure (excludedUnknown). The response restricts to common query/provider pairs, then includes only providers with exactly one known, identical configured model id in both months. `continuity` surfaces every provider, its model evidence, and whether it was excluded for a changed, mixed mid-month, or unknown model. When no provider remains, metrics return `model-discontinuous` or `model-unknown`, never a directional call. A silent upstream version bump under an unchanged configured id remains undetectable. `from` must be a month strictly before `to`.",
|
|
1896
1680
|
access: "read",
|
|
1897
1681
|
tier: "monitoring",
|
|
1898
|
-
inputSchema:
|
|
1682
|
+
inputSchema: z2.object({
|
|
1899
1683
|
project: projectNameSchema,
|
|
1900
1684
|
...visibilityCompareSelectionSchema.shape,
|
|
1901
|
-
from:
|
|
1902
|
-
to:
|
|
1685
|
+
from: z2.string().describe('Earlier calendar month (YYYY-MM), the baseline. Must be strictly before "to".'),
|
|
1686
|
+
to: z2.string().describe('Later calendar month (YYYY-MM), compared against "from".')
|
|
1903
1687
|
}),
|
|
1904
1688
|
annotations: readAnnotations(),
|
|
1905
1689
|
openApiOperations: ["GET /api/v1/projects/{name}/visibility-compare"],
|
|
@@ -1953,7 +1737,7 @@ var rawCanonryMcpTools = [
|
|
|
1953
1737
|
description: "Remove a persisted dismissal by targetRef so the content target can appear again when still eligible. Read canonry_content_dismissals to find the ref. A missing dismissal returns NOT_FOUND. No provider calls.",
|
|
1954
1738
|
access: "write",
|
|
1955
1739
|
tier: "monitoring",
|
|
1956
|
-
inputSchema:
|
|
1740
|
+
inputSchema: z2.object({ project: projectNameSchema, targetRef: contentTargetDismissRequestSchema.shape.targetRef }),
|
|
1957
1741
|
annotations: writeAnnotations({ idempotentHint: false }),
|
|
1958
1742
|
openApiOperations: ["DELETE /api/v1/projects/{name}/content/dismissals/{targetRef}"],
|
|
1959
1743
|
handler: async (client, input) => {
|
|
@@ -2160,7 +1944,7 @@ var rawCanonryMcpTools = [
|
|
|
2160
1944
|
access: "write",
|
|
2161
1945
|
requiredScope: "settings.write",
|
|
2162
1946
|
tier: "setup",
|
|
2163
|
-
inputSchema:
|
|
1947
|
+
inputSchema: z2.object({ enabled: z2.boolean() }).strict(),
|
|
2164
1948
|
outputSchema: telemetryStatusDtoSchema,
|
|
2165
1949
|
annotations: writeAnnotations({ idempotentHint: true }),
|
|
2166
1950
|
openApiOperations: ["PUT /api/v1/telemetry"],
|
|
@@ -2173,7 +1957,7 @@ var rawCanonryMcpTools = [
|
|
|
2173
1957
|
access: "write",
|
|
2174
1958
|
requiredScope: "settings.write",
|
|
2175
1959
|
tier: "setup",
|
|
2176
|
-
inputSchema:
|
|
1960
|
+
inputSchema: z2.object({ provider: z2.string().min(1), model: z2.string().trim().min(1).optional(), quota: providerQuotaPolicySchema.partial().strict().optional() }).strict().refine((input) => input.model !== void 0 || input.quota !== void 0 && Object.keys(input.quota).length > 0, "Provide a model or at least one quota field"),
|
|
2177
1961
|
outputSchema: providerSummaryEntryDtoSchema,
|
|
2178
1962
|
annotations: writeAnnotations({ idempotentHint: true }),
|
|
2179
1963
|
openApiOperations: ["PUT /api/v1/settings/providers/{name}"],
|
|
@@ -2365,7 +2149,7 @@ var rawCanonryMcpTools = [
|
|
|
2365
2149
|
description: "Read stored GA4 sessions by day, channel, source/medium, host and normalized landing page. Sessions only; totalSessions is the full filtered total, independent of grouping and pagination. No Google calls. Project-only attribution; stored rows cannot distinguish an older connected GA4 property. Meaningful page query parameters remain distinct.",
|
|
2366
2150
|
access: "read",
|
|
2367
2151
|
tier: "ga",
|
|
2368
|
-
inputSchema: gaAcquisitionQuerySchema.extend({ project: projectNameSchema, limit:
|
|
2152
|
+
inputSchema: gaAcquisitionQuerySchema.extend({ project: projectNameSchema, limit: z2.number().int().min(1).max(500).optional() }),
|
|
2369
2153
|
annotations: readAnnotations(),
|
|
2370
2154
|
openApiOperations: ["GET /api/v1/projects/{name}/ga/acquisition"],
|
|
2371
2155
|
handler: (client, input) => {
|
|
@@ -2692,7 +2476,7 @@ var rawCanonryMcpTools = [
|
|
|
2692
2476
|
description: "Read complete stored server-traffic totals, daily history, crawler and AI-referral breakdowns, and prior-period changes for 7, 14, 30, or 90 days (default 30). Returns activity null when no traffic source is configured. Project-wide for Simple and Advanced portfolios; Property, Target, and market attribution are unavailable. Never starts provider work or a sync.",
|
|
2693
2477
|
access: "read",
|
|
2694
2478
|
tier: "traffic",
|
|
2695
|
-
inputSchema:
|
|
2479
|
+
inputSchema: z2.object({ project: projectNameSchema, period: trafficAnalyticsPeriodSchema.optional() }),
|
|
2696
2480
|
annotations: readAnnotations(),
|
|
2697
2481
|
openApiOperations: ["GET /api/v1/projects/{name}/traffic/analytics"],
|
|
2698
2482
|
handler: (client, input) => client.getTrafficAnalytics(input.project, input.period)
|
|
@@ -3569,7 +3353,7 @@ var rawCanonryMcpTools = [
|
|
|
3569
3353
|
description: "List Aero conversations. Instance administrators only. New and resume preserve the previous conversation; shared project notes are retained. Creation requires a UUID that must be reused on retries.",
|
|
3570
3354
|
access: "read",
|
|
3571
3355
|
tier: "agent",
|
|
3572
|
-
inputSchema: projectInputSchema.extend({ offset:
|
|
3356
|
+
inputSchema: projectInputSchema.extend({ offset: z2.number().int().min(0).optional(), limit: z2.number().int().min(1).max(100).optional() }),
|
|
3573
3357
|
annotations: readAnnotations(),
|
|
3574
3358
|
openApiOperations: ["GET /api/v1/projects/{name}/agent/conversations"],
|
|
3575
3359
|
handler: (client, input) => client.listAgentConversations(input.project, { offset: input.offset, limit: input.limit })
|
|
@@ -3580,7 +3364,7 @@ var rawCanonryMcpTools = [
|
|
|
3580
3364
|
description: "Read an Aero conversation. Instance administrators only. New and resume preserve the previous conversation; shared project notes are retained. Creation requires a UUID that must be reused on retries.",
|
|
3581
3365
|
access: "read",
|
|
3582
3366
|
tier: "agent",
|
|
3583
|
-
inputSchema: projectInputSchema.extend({ id:
|
|
3367
|
+
inputSchema: projectInputSchema.extend({ id: z2.string().min(1) }),
|
|
3584
3368
|
annotations: readAnnotations(),
|
|
3585
3369
|
openApiOperations: ["GET /api/v1/projects/{name}/agent/conversations/{id}"],
|
|
3586
3370
|
handler: (client, input) => client.getAgentConversation(input.project, input.id)
|
|
@@ -3602,7 +3386,7 @@ var rawCanonryMcpTools = [
|
|
|
3602
3386
|
description: "Resume an Aero conversation. Instance administrators only. New and resume preserve the previous conversation; shared project notes are retained. Creation requires a UUID that must be reused on retries.",
|
|
3603
3387
|
access: "write",
|
|
3604
3388
|
tier: "agent",
|
|
3605
|
-
inputSchema: projectInputSchema.extend({ id:
|
|
3389
|
+
inputSchema: projectInputSchema.extend({ id: z2.string().min(1) }),
|
|
3606
3390
|
annotations: writeAnnotations({ idempotentHint: true }),
|
|
3607
3391
|
openApiOperations: ["POST /api/v1/projects/{name}/agent/conversations/{id}/resume"],
|
|
3608
3392
|
handler: (client, input) => client.resumeAgentConversation(input.project, input.id)
|
|
@@ -3613,7 +3397,7 @@ var rawCanonryMcpTools = [
|
|
|
3613
3397
|
description: "Delete an Aero conversation. Instance administrators only. New and resume preserve the previous conversation; shared project notes are retained. Creation requires a UUID that must be reused on retries.",
|
|
3614
3398
|
access: "write",
|
|
3615
3399
|
tier: "agent",
|
|
3616
|
-
inputSchema: projectInputSchema.extend({ id:
|
|
3400
|
+
inputSchema: projectInputSchema.extend({ id: z2.string().min(1) }),
|
|
3617
3401
|
annotations: writeAnnotations({ idempotentHint: true, destructiveHint: true }),
|
|
3618
3402
|
openApiOperations: ["DELETE /api/v1/projects/{name}/agent/conversations/{id}"],
|
|
3619
3403
|
handler: (client, input) => client.deleteAgentConversation(input.project, input.id)
|
|
@@ -4571,13 +4355,6 @@ var CanonryMcpToolNames = Object.freeze(
|
|
|
4571
4355
|
);
|
|
4572
4356
|
|
|
4573
4357
|
export {
|
|
4574
|
-
PACKAGE_VERSION,
|
|
4575
|
-
dedupeGscSitemapUrls,
|
|
4576
|
-
resolveDiscoveredGscSitemapUrls,
|
|
4577
|
-
requireGscSitemapUrls,
|
|
4578
|
-
submitGscSitemapBatches,
|
|
4579
|
-
measurementDraftOperationSchema,
|
|
4580
|
-
runMeasurementDraftAction,
|
|
4581
4358
|
toolOperationAccess,
|
|
4582
4359
|
canonryMcpTools,
|
|
4583
4360
|
CanonryMcpToolNames
|