@contentful/mcp-tools 0.12.11 → 0.12.12
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/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8911,7 +8911,7 @@ declare class ContentfulMcpTools {
|
|
|
8911
8911
|
description: string;
|
|
8912
8912
|
inputParams: {
|
|
8913
8913
|
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
8914
|
-
metricKey: zod.ZodEnum<["api_call_cma", "api_call_cpa", "api_call_cda", "api_call_graphql", "asset_bandwidth", "functions_invocations", "ai_action_invocation", "ai_action_word_count", "ai_consumption_unit"]>;
|
|
8914
|
+
metricKey: zod.ZodEnum<["api_call_cma", "api_call_cpa", "api_call_cda", "api_call_graphql", "asset_bandwidth", "functions_invocations", "ai_action_invocation", "ai_action_word_count", "ai_consumption_unit", "monthly_active_profiles"]>;
|
|
8915
8915
|
dateGte: zod.ZodString;
|
|
8916
8916
|
dateLte: zod.ZodString;
|
|
8917
8917
|
granularity: zod.ZodOptional<zod.ZodEnum<["P1D", "P1M"]>>;
|
|
@@ -8927,7 +8927,7 @@ declare class ContentfulMcpTools {
|
|
|
8927
8927
|
openWorldHint: boolean;
|
|
8928
8928
|
};
|
|
8929
8929
|
tool: (params: {
|
|
8930
|
-
metricKey: "api_call_cma" | "api_call_cpa" | "api_call_cda" | "api_call_graphql" | "asset_bandwidth" | "functions_invocations" | "ai_action_invocation" | "ai_action_word_count" | "ai_consumption_unit";
|
|
8930
|
+
metricKey: "api_call_cma" | "api_call_cpa" | "api_call_cda" | "api_call_graphql" | "asset_bandwidth" | "functions_invocations" | "ai_action_invocation" | "ai_action_word_count" | "ai_consumption_unit" | "monthly_active_profiles";
|
|
8931
8931
|
dateGte: string;
|
|
8932
8932
|
dateLte: string;
|
|
8933
8933
|
filter?: Record<string, string | string[]> | undefined;
|
package/dist/index.js
CHANGED
|
@@ -5626,7 +5626,8 @@ var AGGREGATED_USAGE_METRIC_KEYS = [
|
|
|
5626
5626
|
"functions_invocations",
|
|
5627
5627
|
"ai_action_invocation",
|
|
5628
5628
|
"ai_action_word_count",
|
|
5629
|
-
"ai_consumption_unit"
|
|
5629
|
+
"ai_consumption_unit",
|
|
5630
|
+
"monthly_active_profiles"
|
|
5630
5631
|
];
|
|
5631
5632
|
var FilterValueSchema = z80.union([
|
|
5632
5633
|
z80.string().min(1),
|
|
@@ -5637,7 +5638,7 @@ var GetUsagesToolParams = z80.object({
|
|
|
5637
5638
|
"Organization ID. If omitted, falls back to the ORGANIZATION_ID configured on the server."
|
|
5638
5639
|
),
|
|
5639
5640
|
metricKey: z80.enum(AGGREGATED_USAGE_METRIC_KEYS).describe(
|
|
5640
|
-
'Metric to aggregate. Availability depends on the products enabled for the organization. Allowed dimensions per metric (used by "group", "filter", and "order", all in the form sys.dimensions.<name>.sys.<suffix>): api_call_cma / api_call_cpa / api_call_cda / api_call_graphql \u2192 sys.dimensions.space.sys.id. asset_bandwidth \u2192 sys.dimensions.space.sys.id, sys.dimensions.asset.sys.id. functions_invocations \u2192 sys.dimensions.space.sys.id, sys.dimensions.app.sys.id, sys.dimensions.function.sys.id. ai_action_invocation / ai_action_word_count / ai_consumption_unit \u2192 sys.dimensions.space.sys.id, sys.dimensions.ai_action.sys.id, sys.dimensions.model.sys.provider, sys.dimensions.model.sys.id.'
|
|
5641
|
+
'Metric to aggregate. Availability depends on the products enabled for the organization. Allowed dimensions per metric (used by "group", "filter", and "order", all in the form sys.dimensions.<name>.sys.<suffix>): api_call_cma / api_call_cpa / api_call_cda / api_call_graphql \u2192 sys.dimensions.space.sys.id. asset_bandwidth \u2192 sys.dimensions.space.sys.id, sys.dimensions.asset.sys.id. functions_invocations \u2192 sys.dimensions.space.sys.id, sys.dimensions.app.sys.id, sys.dimensions.function.sys.id. ai_action_invocation / ai_action_word_count / ai_consumption_unit \u2192 sys.dimensions.space.sys.id, sys.dimensions.ai_action.sys.id, sys.dimensions.model.sys.provider, sys.dimensions.model.sys.id. monthly_active_profiles (MAPs) has no dimensions \u2014 do not pass "group", "filter", or "order" with it. MAPs is calendar-month only: use granularity="P1M" ("P1D" is not meaningful for it).'
|
|
5641
5642
|
),
|
|
5642
5643
|
dateGte: z80.string().describe(
|
|
5643
5644
|
"Start date (inclusive) in ISO-8601 format (YYYY-MM-DD or full date-time). Sent as query param date[gte]. Max lookback: 12 months from now."
|
|
@@ -5704,7 +5705,8 @@ function getUsagesTool(config) {
|
|
|
5704
5705
|
limit: collection.limit,
|
|
5705
5706
|
skip: collection.skip,
|
|
5706
5707
|
metricKey,
|
|
5707
|
-
organizationId
|
|
5708
|
+
organizationId,
|
|
5709
|
+
dataLastUpdatedAt: collection.dataLastUpdatedAt
|
|
5708
5710
|
});
|
|
5709
5711
|
}
|
|
5710
5712
|
return withErrorHandling(tool2, "Error retrieving usage");
|