@aaa-sentinel/mcp-server 0.18.2 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/cli.js +47 -39
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -134,6 +134,7 @@ status as plain JSON.
|
|
|
134
134
|
| `get_client` | `clientId` | `clients:read` | Business |
|
|
135
135
|
| `get_client_billing` | `clientId` | `clients:read` | Business |
|
|
136
136
|
| `get_agent_dashboard` | `clientId?` | `agent:read` | Business |
|
|
137
|
+
| `get_agent_auto_approval` | — | `agent:read` | Business |
|
|
137
138
|
| `list_agent_actions` | `status?`, `accountId?`, `type?`, `limit?`, `cursor?` | `agent:read` | Business |
|
|
138
139
|
| `get_agent_action` | `actionId` | `agent:read` | Business |
|
|
139
140
|
| `list_agent_history` | `status?`, `limit?`, `cursor?` | `agent:read` | Business |
|
|
@@ -165,7 +166,9 @@ status as plain JSON.
|
|
|
165
166
|
| `get_team_costs` | — | `owners:read` | Business |
|
|
166
167
|
|
|
167
168
|
In `list_savings`, `type` is one of `compute`, `storage`, `network`, `database`, `serverless`,
|
|
168
|
-
`governance
|
|
169
|
+
`governance`; it returns the 50 largest, not paginated (`count` and `hasMore` say whether there are
|
|
170
|
+
more). Amounts: a field ending in `Converted` is always in the organization currency
|
|
171
|
+
(`currency.code`, approximate) and a field ending in `Usd` is always USD. `source` is one of `own`, `corroborated`, `securityhub`, `guardduty`, `defender`,
|
|
169
172
|
`scc`. `billingPeriod` is a month as `YYYY-MM`. The agent `status` filter is one of `proposed`,
|
|
170
173
|
`pending_approval`, `pending_second_approval`, `approved`, `executing`, `completed`, `failed`,
|
|
171
174
|
`cancelled`, `expired`; `pending_approval` also returns the second-approval queue, since both
|
package/dist/cli.js
CHANGED
|
@@ -6089,6 +6089,7 @@ function defineTool(def) {
|
|
|
6089
6089
|
return def;
|
|
6090
6090
|
}
|
|
6091
6091
|
var SAVINGS_TYPES = ["compute", "storage", "network", "database", "serverless", "governance"];
|
|
6092
|
+
var AMOUNTS_NOTE = "Amounts: a field ending in Converted is always in the organization currency (currency.code, approximate) and a field ending in Usd is always USD; quote those, because a bare name such as totalMonthlyCost or savings is USD in some responses and converted in others.";
|
|
6092
6093
|
var SECURITY_SOURCES = ["own", "corroborated", "securityhub", "guardduty", "defender", "scc"];
|
|
6093
6094
|
var SECURITY_CATEGORIES = ["security_network", "security_exposure", "security_encryption", "security_iam", "security_logging", "security_secrets", "security_patching", "security_backup", "security_resilience"];
|
|
6094
6095
|
var AGENT_STATUSES = ["proposed", "pending_approval", "pending_second_approval", "approved", "executing", "completed", "failed", "cancelled", "expired"];
|
|
@@ -6121,7 +6122,7 @@ var TOOLS = [
|
|
|
6121
6122
|
}),
|
|
6122
6123
|
defineTool({
|
|
6123
6124
|
name: "list_scans",
|
|
6124
|
-
description:
|
|
6125
|
+
description: `List the most recent cost scans (up to 20) of a cloud account, each with its monthly cost and potential savings. Here totalMonthlyCost, totalPotentialSavings and costBreakdownByService are USD; totalMonthlyCostConverted, totalPotentialSavingsConverted and costBreakdownByServiceConverted are the same amounts in the organization currency, converted at today's rate even for old scans. ${AMOUNTS_NOTE} Requires the scans:read scope.`,
|
|
6125
6126
|
inputSchema: {
|
|
6126
6127
|
type: "object",
|
|
6127
6128
|
properties: { accountId: { type: "string", description: "Account identifier, as returned by list_accounts." } },
|
|
@@ -6132,7 +6133,7 @@ var TOOLS = [
|
|
|
6132
6133
|
}),
|
|
6133
6134
|
defineTool({
|
|
6134
6135
|
name: "get_scan",
|
|
6135
|
-
description:
|
|
6136
|
+
description: `Get the full detail of a single scan by its id. Bare amounts of the scan (totalMonthlyCost, previousCost, the pricingAnalysis figures such as totalSavingsMonthly or savings1yr) are USD with a Converted sibling in the organization currency (totalMonthlyCostConverted, totalSavingsMonthlyConverted...); listPricesApplied[].usd is USD only. ${AMOUNTS_NOTE} Requires the scans:read scope.`,
|
|
6136
6137
|
inputSchema: {
|
|
6137
6138
|
type: "object",
|
|
6138
6139
|
properties: { scanId: { type: "string", description: "Scan identifier, as returned by list_scans." } },
|
|
@@ -6143,7 +6144,7 @@ var TOOLS = [
|
|
|
6143
6144
|
}),
|
|
6144
6145
|
defineTool({
|
|
6145
6146
|
name: "list_findings",
|
|
6146
|
-
description:
|
|
6147
|
+
description: `List the waste and risk findings of a scan, each with its severity and estimated monthly saving. This is the tool that answers "where is the money going". estimatedMonthlySavingsUsd is USD; estimatedMonthlySavings and estimatedMonthlySavingsConverted are the same amount in the organization currency. ${AMOUNTS_NOTE} Requires the findings:read scope.`,
|
|
6147
6148
|
inputSchema: {
|
|
6148
6149
|
type: "object",
|
|
6149
6150
|
properties: {
|
|
@@ -6160,7 +6161,7 @@ var TOOLS = [
|
|
|
6160
6161
|
}),
|
|
6161
6162
|
defineTool({
|
|
6162
6163
|
name: "get_reports_summary",
|
|
6163
|
-
description:
|
|
6164
|
+
description: `Get an aggregated summary of monthly cost, potential savings, accounts scanned and critical findings, optionally for a single account. totalSavingsUsd is open findings (findingsSavingsUsd) plus what reservations and rightsizing add without counting an instance twice (pricingSavingsUsd), the figure the app shows. ${AMOUNTS_NOTE} Requires the reports:read scope and the Pro plan or above.`,
|
|
6164
6165
|
inputSchema: {
|
|
6165
6166
|
type: "object",
|
|
6166
6167
|
properties: { accountId: { type: "string", description: "Restrict the summary to one account (optional)." } }
|
|
@@ -6170,7 +6171,7 @@ var TOOLS = [
|
|
|
6170
6171
|
}),
|
|
6171
6172
|
defineTool({
|
|
6172
6173
|
name: "list_savings",
|
|
6173
|
-
description:
|
|
6174
|
+
description: `List the detected savings opportunities: the 50 largest, not paginated; count and hasMore say whether there are more, and totalSavingsUsd covers all of them. Without a category, pricingSavingsUsd is what reservations and rightsizing add without counting an instance twice and potentialSavingsUsd is the total potential saving, the figure the app shows. Narrow by account or category to see the rest. ${AMOUNTS_NOTE} Requires the savings:read scope and the Pro plan or above.`,
|
|
6174
6175
|
inputSchema: {
|
|
6175
6176
|
type: "object",
|
|
6176
6177
|
properties: {
|
|
@@ -6186,7 +6187,7 @@ var TOOLS = [
|
|
|
6186
6187
|
}),
|
|
6187
6188
|
defineTool({
|
|
6188
6189
|
name: "get_chargeback",
|
|
6189
|
-
description: 'Break down cost and savings by tag, account and service \u2014 the report an MSP uses to justify its invoice. With view "team" it splits the billed cost of a closed month (FOCUS, AWS and Azure) by owning team instead: each team with its cost by origin (real team tag, manual rule, repository source), the unassigned part and the total they add up to, in the organization currency ("approximate" is true), why an account is left out (no_focus, gcp, team_not_allocated, no_conversion) and "partial" when its FOCUS report for that month is incomplete; the team "__overflow__" groups the smallest teams. Requires the reports:read scope and the Business plan.',
|
|
6190
|
+
description: 'Break down cost and savings by tag, account and service \u2014 the report an MSP uses to justify its invoice. With view "team" it splits the billed cost of a closed month (FOCUS, AWS and Azure) by owning team instead: each team with its cost by origin (real team tag, manual rule, repository source), the unassigned part and the total they add up to, in the organization currency ("approximate" is true), why an account is left out (no_focus, gcp, team_not_allocated, no_conversion) and "partial" when its FOCUS report for that month is incomplete; the team "__overflow__" groups the smallest teams. Amounts: in the default view totalCost, totalSavings, untaggedCost, byService and the cost and savings of byAccount and byTag are USD, each with a ...Converted sibling in the organization currency (currency.code). In view "team", total, unallocated, byOrigin and teams[].cost are already in the currency named by the response "currency" string (the organization currency at the month-close ECB rate, or USD when there was no rate); displayCurrency describes the organization currency. Requires the reports:read scope and the Business plan.',
|
|
6190
6191
|
inputSchema: {
|
|
6191
6192
|
type: "object",
|
|
6192
6193
|
properties: {
|
|
@@ -6204,7 +6205,7 @@ var TOOLS = [
|
|
|
6204
6205
|
}),
|
|
6205
6206
|
defineTool({
|
|
6206
6207
|
name: "get_dashboard",
|
|
6207
|
-
description:
|
|
6208
|
+
description: `Get the aggregated dashboard: connected accounts, monthly cost, detected savings and top findings, optionally for one account. totalMonthlyCost and totalPotentialSavings are USD, with totalMonthlyCostConverted and totalPotentialSavingsConverted in the organization currency; topFindings[].estimatedMonthlySavingsUsd is USD and estimatedMonthlySavingsConverted its converted amount. ${AMOUNTS_NOTE} Requires the dashboard:read scope and the Pro plan or above.`,
|
|
6208
6209
|
inputSchema: {
|
|
6209
6210
|
type: "object",
|
|
6210
6211
|
properties: { accountId: { type: "string", description: "Restrict the dashboard to one account (optional)." } }
|
|
@@ -6214,7 +6215,7 @@ var TOOLS = [
|
|
|
6214
6215
|
}),
|
|
6215
6216
|
defineTool({
|
|
6216
6217
|
name: "get_cost_forecast",
|
|
6217
|
-
description:
|
|
6218
|
+
description: `Forecast the spend of a cloud account for the next 3 months from the trend of its closed months. The current month is a month-to-date figure ("partial"): it only enters the trend projected once half of it has passed; months read before closing are flagged "incomplete", and "criteriaChangedIn" says when a cost criterion change left older months out. Historical months with "previousCriteria" true were read with the previous cost criterion: they are listed but do not enter the projection. cost, savings, predictedCost, lowerBound and upperBound are USD; costConverted, savingsConverted, predictedCostConverted, lowerBoundConverted and upperBoundConverted are in the organization currency at the rate of their month. ${AMOUNTS_NOTE} Requires the reports:read scope and the Pro plan or above.`,
|
|
6218
6219
|
inputSchema: {
|
|
6219
6220
|
type: "object",
|
|
6220
6221
|
properties: { accountId: { type: "string", description: "Account identifier, as returned by list_accounts." } },
|
|
@@ -6225,7 +6226,7 @@ var TOOLS = [
|
|
|
6225
6226
|
}),
|
|
6226
6227
|
defineTool({
|
|
6227
6228
|
name: "list_cost_anomalies",
|
|
6228
|
-
description:
|
|
6229
|
+
description: 'List cost anomalies (spikes, sudden drops, new services) with their severity and impact, optionally for one account. Amounts are per day: each anomaly compares the last measured day of spend with the usual spend for that kind of day: the median of the same weekday over the previous 4 weeks or, when those days disagree, of the previous weekdays or weekend days (period is "day"); accounts with fewer than 7 days of history are not judged. A drop is only reported when it lasts two days, and the id stays the same while the episode lasts. previousCost, currentCost, absoluteChange and summary.totalImpact are USD; previousCostConverted, currentCostConverted, absoluteChangeConverted and totalImpactConverted are in the organization currency (currency.code), at the current rate. Requires the reports:read scope and the Business plan.',
|
|
6229
6230
|
inputSchema: {
|
|
6230
6231
|
type: "object",
|
|
6231
6232
|
properties: { accountId: { type: "string", description: "Restrict the list to one account (optional)." } }
|
|
@@ -6255,7 +6256,7 @@ var TOOLS = [
|
|
|
6255
6256
|
}),
|
|
6256
6257
|
defineTool({
|
|
6257
6258
|
name: "list_security_findings",
|
|
6258
|
-
description: 'List the security findings of the latest security scan of one account (up to 500, most severe first), with attack chains and a diff against the previous scan. Use category "security_iam" for the permissions view: effective administrators, unused identities, keys and service accounts, granted permissions that are not used, and assignments to deleted identities. Each finding may carry resourceCost, and the response exposedCost (what the account pays per month in resources with critical or high findings): both are estimates from the latest cost scan of at most 14 days (list price or what the resource was billed), in USD and approximate,
|
|
6259
|
+
description: 'List the security findings of the latest security scan of one account (up to 500, most severe first), with attack chains and a diff against the previous scan. Use category "security_iam" for the permissions view: effective administrators, unused identities, keys and service accounts, granted permissions that are not used, and assignments to deleted identities. Each finding may carry resourceCost, and the response exposedCost (what the account pays per month in resources with critical or high findings): both are estimates from the latest cost scan of at most 14 days (list price or what the resource was billed), absent when there is no cost data; in each, monthlyUsd is USD and monthly the same amount in the organization currency (currency.code, approximate) at the rate of its costScannedAt, and attributionSummary has exposedMonthlyUsd (USD) and exposedMonthly (organization currency). Each finding may also carry attribution (the Owner, Team and CostCenter tags of its resource; unowned when its tags were read and it has neither Owner nor Team; absent when its tags were not read), and the response attributionSummary (findings and exposed cost by team and by cost center); critical findings without an owner come first among the critical ones. Requires the security:read scope, the Pro plan and the risk and compliance add-on on that account.',
|
|
6259
6260
|
inputSchema: {
|
|
6260
6261
|
type: "object",
|
|
6261
6262
|
properties: {
|
|
@@ -6304,7 +6305,7 @@ var TOOLS = [
|
|
|
6304
6305
|
}),
|
|
6305
6306
|
defineTool({
|
|
6306
6307
|
name: "get_security_tool_spend",
|
|
6307
|
-
description: "Get what one account pays for the cloud's own security tools (AWS Security Hub, GuardDuty, Inspector, Config, WAF and CloudTrail; Microsoft Defender for Cloud and Azure WAF; GCP Security Command Center and Cloud Armor) this month so far and last month, and what AAA Sentinel does with each one: imports and deduplicates its findings, uses it as a data source, checks it, or does not use it for its diagnosis. Answers whether you pay twice for the same thing: overlap counts own findings the tool also reports (corroborated) and findings only the tool brings (importedOnly; capped means at least). Each tool has current and previous ({ spendUsd, costScannedAt }, null when that month has no real bill) and billing.current/previous carry totalSpendUsd (totalPartial when some tool has no amount). Amounts
|
|
6308
|
+
description: "Get what one account pays for the cloud's own security tools (AWS Security Hub, GuardDuty, Inspector, Config, WAF and CloudTrail; Microsoft Defender for Cloud and Azure WAF; GCP Security Command Center and Cloud Armor) this month so far and last month, and what AAA Sentinel does with each one: imports and deduplicates its findings, uses it as a data source, checks it, or does not use it for its diagnosis. Answers whether you pay twice for the same thing: overlap counts own findings the tool also reports (corroborated) and findings only the tool brings (importedOnly; capped means at least). Each tool has current and previous ({ spendUsd, costScannedAt }, null when that month has no real bill) and billing.current/previous carry totalSpendUsd (totalPartial when some tool has no amount). Amounts come from the real bill of the latest cost scan of each month: spendUsd and totalSpendUsd are USD, and their siblings spend and totalSpend are the same amounts in the organization currency (currency.code, approximate) at the rate of costScannedAt; spendUsd 0 means the bill read has no charge for that service, and null means it is not billed separately or its bill name is not confirmed and does not appear. state null means no state is available (no scan, an older scan, or a tool whose state is not read). CloudTrail is the whole service (management and data events together); Azure WAF (azurewaf) and Cloud Armor have no line of their own in the bill. On AWS the payer account sees the whole organization and on GCP the whole billing account (billing.scope). That AAA Sentinel does not use a tool does not mean it can be turned off. Requires the security:read scope, the Pro plan or above and the risk and compliance add-on on the account.",
|
|
6308
6309
|
inputSchema: {
|
|
6309
6310
|
type: "object",
|
|
6310
6311
|
properties: { accountId: { type: "string", description: "Account identifier, as returned by list_accounts." } },
|
|
@@ -6330,7 +6331,7 @@ var TOOLS = [
|
|
|
6330
6331
|
}),
|
|
6331
6332
|
defineTool({
|
|
6332
6333
|
name: "get_security_posture_history",
|
|
6333
|
-
description: "Get how the security posture changed over 30, 90 or 365 days (default 90) for one account, or for every account with the risk and compliance add-on of a managed client (clientId, Business plan, up to 20 accounts; omitted counts the rest). Returns points, one per UTC day (the last scan of that day: score, scored/total rules, open findings by severity, events), and summary: from/to (Score of the first and last point), resolved (distinct findings gone in a scan that fully evaluated their rule), opened (new, from rules already fully evaluated before), surfaced (new but not comparable: rule not fully evaluated before, or an external tool), unverified (gone without confirmation), meanFixDays by severity, comparable and notComparableReasons. When comparable is false, do not describe the Score change as the account getting better or worse. Points keep the Score computed each day, without discounting risks accepted later (acceptedRisks). Each point also has exposedCost (monthly spend on resources with critical or high findings, or null without cost data), and the summary has exposedCost (from/to) and comboSavings (monthly spend no longer paid after exposed unused resources were deleted, counted only when the resource stopped existing in a scan that fully evaluated its rules, at the last known amount of each resource). Each point uses the cost scan that was current when that security scan ran; amounts are estimates (list price or what the resource was billed)
|
|
6334
|
+
description: "Get how the security posture changed over 30, 90 or 365 days (default 90) for one account, or for every account with the risk and compliance add-on of a managed client (clientId, Business plan, up to 20 accounts; omitted counts the rest). Returns points, one per UTC day (the last scan of that day: score, scored/total rules, open findings by severity, events), and summary: from/to (Score of the first and last point), resolved (distinct findings gone in a scan that fully evaluated their rule), opened (new, from rules already fully evaluated before), surfaced (new but not comparable: rule not fully evaluated before, or an external tool), unverified (gone without confirmation), meanFixDays by severity, comparable and notComparableReasons. When comparable is false, do not describe the Score change as the account getting better or worse. Points keep the Score computed each day, without discounting risks accepted later (acceptedRisks). Each point also has exposedCost (monthly spend on resources with critical or high findings, or null without cost data), and the summary has exposedCost (from/to) and comboSavings (monthly spend no longer paid after exposed unused resources were deleted, counted only when the resource stopped existing in a scan that fully evaluated its rules, at the last known amount of each resource). Each point uses the cost scan that was current when that security scan ran; amounts are estimates (list price or what the resource was billed): monthlyUsd is USD and its sibling monthly the same amount in the organization currency (currency.code, approximate) at the rate of its cost scan. Pass exactly one of accountId or clientId. Requires the security:read scope, plus reports:read when using clientId.",
|
|
6334
6335
|
inputSchema: {
|
|
6335
6336
|
type: "object",
|
|
6336
6337
|
properties: {
|
|
@@ -6397,7 +6398,7 @@ var TOOLS = [
|
|
|
6397
6398
|
}),
|
|
6398
6399
|
defineTool({
|
|
6399
6400
|
name: "get_account_monthly_costs",
|
|
6400
|
-
description:
|
|
6401
|
+
description: 'Get the monthly cost of one cloud account for the last 6 months (from the latest completed scan of each month). The current month is a month-to-date figure ("partial", with "coverage" and, once half of it has passed, "projectedCost"). cost, breakdown and projectedCost are USD; costConverted, breakdownConverted and projectedCostConverted are in the organization currency (currency.code, approximate), each month at its own month-end rate (null when there is none). Requires the accounts:read scope.',
|
|
6401
6402
|
inputSchema: objectWith({ accountId: ACCOUNT_ID }, ["accountId"]),
|
|
6402
6403
|
argsSchema: object({ accountId: string2().min(1) }),
|
|
6403
6404
|
handler: async ({ accountId }, config2) => apiGet(`/v1/accounts/${encodeURIComponent(accountId)}/monthly-costs`, void 0, config2)
|
|
@@ -6439,7 +6440,7 @@ var TOOLS = [
|
|
|
6439
6440
|
}),
|
|
6440
6441
|
defineTool({
|
|
6441
6442
|
name: "get_architecture_graph",
|
|
6442
|
-
description: 'Get how things connect in the architecture map. Without app: one card per application and the links between applications (counts of configured, allowed, resilience and granted connections), plus the internet and outside accounts they talk to. With app: its components (nodes), the edges that touch them, the endpoints outside the application and the network containers (region, VPC or VNet, subnet). Every edge says where it comes from: kind "configured" (configuration links A to B), "allowed" (a network rule permits it) or "granted" (an IAM policy of the role of A on AWS, a role assignment of its managed identity on Azure, or a Storage role of its service account on a Google Cloud bucket, lets it read or write the data store B; access says read, write or read_write; a permission, not proof that A uses B), its relation (invokes, routes_to, subscribes, network_allows...) and proof (the provider API call and identifier that show it); never observed traffic, so do not describe edges as traffic. Bounded to 1,500 components and 4,000 edges per application (truncated says so); a large application can return several megabytes, so call it with app only when you need the connections, and use get_architecture_app (paginated) to list components. Amounts: fields ending in Usd are monthly estimates in USD; the sibling without the suffix (monthly, savings) is the same amount in the organization currency (currency.code, approximate). Requires the accounts:read scope and the Pro or Business plan.',
|
|
6443
|
+
description: 'Get how things connect in the architecture map. Without app: one card per application and the links between applications (counts of configured, allowed, resilience and granted connections), plus the internet and outside accounts they talk to. With app: its components (nodes), the edges that touch them, the endpoints outside the application and the network containers (region, VPC or VNet, subnet). Every edge says where it comes from: kind "configured" (configuration links A to B), "allowed" (a network rule permits it) or "granted" (an IAM policy of the role of A on AWS, a role assignment of its managed identity on Azure, or a Storage role of its service account on a Google Cloud bucket, lets it read or write the data store B; access says read, write or read_write; a permission, not proof that A uses B), its relation (invokes, routes_to, subscribes, network_allows...) and proof (the provider API call and identifier that show it); never observed traffic, so do not describe edges as traffic. Bounded to 1,500 components and 4,000 edges per application (truncated says so); a large application can return several megabytes, so call it with app only when you need the connections, and use get_architecture_app (paginated) to list components. Amounts: fields ending in Usd (monthlyUsd, savingsUsd) are monthly estimates in USD; the sibling without the suffix (monthly, savings) is the same amount in the organization currency (currency.code, approximate). Requires the accounts:read scope and the Pro or Business plan.',
|
|
6443
6444
|
inputSchema: objectWith(
|
|
6444
6445
|
{
|
|
6445
6446
|
accountId: ACCOUNT_ID,
|
|
@@ -6457,21 +6458,21 @@ var TOOLS = [
|
|
|
6457
6458
|
}),
|
|
6458
6459
|
defineTool({
|
|
6459
6460
|
name: "get_cost_history",
|
|
6460
|
-
description:
|
|
6461
|
+
description: `Get the spend history of one cloud account for the last 12 months. The current month is a month-to-date figure ("partial") and is left out of the monthly average, minimum and maximum. cost, savings, the amounts of stats and totalSpent12m are USD; costConverted, savingsConverted, totalSpent12mConverted and the other Converted fields are in the organization currency, each month at its own rate. ${AMOUNTS_NOTE} Requires the reports:read scope and the Pro plan or above.`,
|
|
6461
6462
|
inputSchema: objectWith({ accountId: ACCOUNT_ID }, ["accountId"]),
|
|
6462
6463
|
argsSchema: object({ accountId: string2().min(1) }),
|
|
6463
6464
|
handler: async ({ accountId }, config2) => apiGet(`/v1/reports/history/${encodeURIComponent(accountId)}`, void 0, config2)
|
|
6464
6465
|
}),
|
|
6465
6466
|
defineTool({
|
|
6466
6467
|
name: "get_cost_by_tags",
|
|
6467
|
-
description:
|
|
6468
|
+
description: `Break down the cost of one cloud account by project/team tag and region. scan.totalMonthlyCost, scan.totalPotentialSavings, breakdown and the savings of byRegion and byResourceType are USD, each with a Converted sibling in the organization currency (totalMonthlyCostConverted, breakdownConverted, savingsConverted). ${AMOUNTS_NOTE} Requires the reports:read scope and the Pro plan or above.`,
|
|
6468
6469
|
inputSchema: objectWith({ accountId: ACCOUNT_ID }, ["accountId"]),
|
|
6469
6470
|
argsSchema: object({ accountId: string2().min(1) }),
|
|
6470
6471
|
handler: async ({ accountId }, config2) => apiGet(`/v1/reports/by-tags/${encodeURIComponent(accountId)}`, void 0, config2)
|
|
6471
6472
|
}),
|
|
6472
6473
|
defineTool({
|
|
6473
6474
|
name: "get_multicloud_report",
|
|
6474
|
-
description:
|
|
6475
|
+
description: `Compare spend across AWS, Azure and GCP in one unified view, with migration recommendations. Every amount is USD. totalMonthlyCost, totalMigrationSavings, providerSummaries (totalMonthlyCost, byService, byCategory[].cost) and migrationRecommendations[].currentCostMonthly and savingsMonthly also have a Converted sibling in the organization currency (totalMonthlyCostConverted, totalMigrationSavingsConverted, savingsMonthlyConverted...); providerCosts[].monthlyCost, resources[].monthlyCost, estimates, workloadComparisons and migrationRecommendations[].estimatedCostMonthly have none and are USD only. ${AMOUNTS_NOTE} Requires the reports:read scope and the Pro plan or above.`,
|
|
6475
6476
|
inputSchema: { type: "object", properties: {} },
|
|
6476
6477
|
argsSchema: object({}),
|
|
6477
6478
|
handler: async (_args, config2) => apiGet("/v1/reports/multicloud", void 0, config2)
|
|
@@ -6514,7 +6515,7 @@ var TOOLS = [
|
|
|
6514
6515
|
}),
|
|
6515
6516
|
defineTool({
|
|
6516
6517
|
name: "get_unit_cost",
|
|
6517
|
-
description:
|
|
6518
|
+
description: `Get the unit cost of one business metric in a month (cloud cost divided by the metric, e.g. cost per order). Results come grouped in currencies[], one entry per billing currency of the FOCUS bill: its cost and unitCost (in total and byDimension) are in that entry's "currency", not converted; only a USD entry has costConverted in the organization currency (currency.code, approximate), and unitCost is never converted. Requires the metrics:read scope and the Business plan.`,
|
|
6518
6519
|
inputSchema: objectWith({ metricId: METRIC_ID, billingPeriod: BILLING_PERIOD }, ["metricId", "billingPeriod"]),
|
|
6519
6520
|
argsSchema: object({ metricId: string2().min(1), billingPeriod: BillingPeriod }),
|
|
6520
6521
|
handler: async ({ metricId, billingPeriod }, config2) => apiGet(`/v1/metrics/${encodeURIComponent(metricId)}/unit-cost`, { billingPeriod }, config2)
|
|
@@ -6522,14 +6523,14 @@ var TOOLS = [
|
|
|
6522
6523
|
// ── Gasto en IA ────────────────────────────────────────────
|
|
6523
6524
|
defineTool({
|
|
6524
6525
|
name: "list_ai_connections",
|
|
6525
|
-
description: "List the connections to AI providers (OpenAI, Anthropic, Bedrock, Vertex...) with their status and managed client. Start here to obtain a connectionId. Requires the ai:read scope and the Pro plan or above.",
|
|
6526
|
+
description: "List the connections to AI providers (OpenAI, Anthropic, Bedrock, Vertex...) with their status and managed client. Start here to obtain a connectionId. A declared list price comes as listPriceUsd (USD), listPrice (organization currency, approximate) and listPriceNative (amount and currency as the user declared it). Requires the ai:read scope and the Pro plan or above.",
|
|
6526
6527
|
inputSchema: { type: "object", properties: {} },
|
|
6527
6528
|
argsSchema: object({}),
|
|
6528
6529
|
handler: async (_args, config2) => apiGet("/v1/ai-providers", void 0, config2)
|
|
6529
6530
|
}),
|
|
6530
6531
|
defineTool({
|
|
6531
6532
|
name: "get_ai_usage",
|
|
6532
|
-
description: "Get aggregated AI spend and usage across every AI connection, with billed and estimated amounts kept apart. Requires the ai:read scope and the Pro plan or above.",
|
|
6533
|
+
description: "Get aggregated AI spend and usage across every AI connection, with billed and estimated amounts kept apart. Fields ending in Usd (totalBilledUsd, totalEstimatedUsd, billedUsd, estimatedUsd) are USD; the sibling without the suffix (totalBilled, billed...) is the same amount in the organization currency (currency.code, approximate), byDay rows at the rate of their periodStart. Requires the ai:read scope and the Pro plan or above.",
|
|
6533
6534
|
inputSchema: objectWith({
|
|
6534
6535
|
days: { type: "integer", minimum: 1, description: "Days back (default 30); capped to the history your plan keeps." },
|
|
6535
6536
|
groupBy: { type: "string", enum: ["holder"], description: 'Use "holder" to group individual connections by the person who holds them.' }
|
|
@@ -6539,7 +6540,7 @@ var TOOLS = [
|
|
|
6539
6540
|
}),
|
|
6540
6541
|
defineTool({
|
|
6541
6542
|
name: "get_ai_connection_usage",
|
|
6542
|
-
description: "Get the AI spend and usage of one connection, by day and by allocation dimension (model, project, key...). Requires the ai:read scope and the Pro plan or above.",
|
|
6543
|
+
description: "Get the AI spend and usage of one connection, by day and by allocation dimension (model, project, key...). Fields ending in Usd (totalBilledUsd, billedUsd, estimatedUsd, allocatedUsd...) are USD; the sibling without the suffix is the same amount in the organization currency (currency.code, approximate), byDay rows at the rate of their periodStart. byModel[].byClass (input, output, cache...) is USD only. Requires the ai:read scope and the Pro plan or above.",
|
|
6543
6544
|
inputSchema: objectWith({ connectionId: { type: "string", description: "Connection identifier, as returned by list_ai_connections." } }, ["connectionId"]),
|
|
6544
6545
|
argsSchema: object({ connectionId: string2().min(1) }),
|
|
6545
6546
|
handler: async ({ connectionId }, config2) => apiGet(`/v1/ai-providers/${encodeURIComponent(connectionId)}/usage`, void 0, config2)
|
|
@@ -6547,21 +6548,21 @@ var TOOLS = [
|
|
|
6547
6548
|
// ── Clientes gestionados (MSP) ─────────────────────────────
|
|
6548
6549
|
defineTool({
|
|
6549
6550
|
name: "list_clients",
|
|
6550
|
-
description: "List the managed clients of an MSP or consultancy. Start here to obtain a clientId. Requires the clients:read scope and the Business plan.",
|
|
6551
|
+
description: "List the managed clients of an MSP or consultancy. Start here to obtain a clientId. marginPct (the MSP markup on the client) is only returned with the billing:read scope. Requires the clients:read scope and the Business plan.",
|
|
6551
6552
|
inputSchema: { type: "object", properties: {} },
|
|
6552
6553
|
argsSchema: object({}),
|
|
6553
6554
|
handler: async (_args, config2) => apiGet("/v1/clients", void 0, config2)
|
|
6554
6555
|
}),
|
|
6555
6556
|
defineTool({
|
|
6556
6557
|
name: "get_client",
|
|
6557
|
-
description: "Get one managed client with the cloud accounts and AI connections assigned to it. Requires the clients:read scope and the Business plan.",
|
|
6558
|
+
description: "Get one managed client with the cloud accounts and AI connections assigned to it. marginPct (the MSP markup on the client) is only returned with the billing:read scope. Requires the clients:read scope and the Business plan.",
|
|
6558
6559
|
inputSchema: objectWith({ clientId: CLIENT_ID }, ["clientId"]),
|
|
6559
6560
|
argsSchema: object({ clientId: string2().min(1) }),
|
|
6560
6561
|
handler: async ({ clientId: clientId2 }, config2) => apiGet(`/v1/clients/${encodeURIComponent(clientId2)}`, void 0, config2)
|
|
6561
6562
|
}),
|
|
6562
6563
|
defineTool({
|
|
6563
6564
|
name: "get_client_billing",
|
|
6564
|
-
description:
|
|
6565
|
+
description: `Get the billing base of one managed client: its cost by account plus the configured margin, ready to invoice. lines[].cost, margin and total, subtotal, marginAmount and total are in the billing currency named by the response "currency" string: the client's currency, else the organization currency, or USD when there is no exchange rate, so it can differ from the organization currency in displayCurrency. Only with a USD billing currency do lines carry costConverted in the organization currency. The markup and margin are confidential: marginPct, marginAmount, total and each line margin and total only come with the billing:read scope; without it the response has only the cost per line and the subtotal. Requires the clients:read scope and the Business plan.`,
|
|
6565
6566
|
inputSchema: objectWith({ clientId: CLIENT_ID }, ["clientId"]),
|
|
6566
6567
|
argsSchema: object({ clientId: string2().min(1) }),
|
|
6567
6568
|
handler: async ({ clientId: clientId2 }, config2) => apiGet(`/v1/clients/${encodeURIComponent(clientId2)}/billing`, void 0, config2)
|
|
@@ -6569,14 +6570,21 @@ var TOOLS = [
|
|
|
6569
6570
|
// ── Agente autónomo (solo lectura: aprobar o lanzar se queda en la app) ──
|
|
6570
6571
|
defineTool({
|
|
6571
6572
|
name: "get_agent_dashboard",
|
|
6572
|
-
description: "Get the autonomous agent KPIs: actions executed and pending approval, savings achieved, active schedules and playbooks \u2014 for the whole organisation, or for one managed client. Requires the agent:read scope (plus clients:read with clientId) and the Business plan.",
|
|
6573
|
+
description: "Get the autonomous agent KPIs: actions executed and pending approval, savings achieved, active schedules and playbooks \u2014 for the whole organisation, or for one managed client. Every saving ends in Usd (estimatedSavingsUsd, verifiedSavingsUsd, scheduleSavingsUsd...) and is USD; the sibling without the suffix is the same amount in the organization currency (currency.code, approximate) at the current rate. Requires the agent:read scope (plus clients:read with clientId) and the Business plan.",
|
|
6573
6574
|
inputSchema: objectWith({ clientId: { ...CLIENT_ID, description: "Restrict the KPIs to the accounts of one managed client (optional)." } }),
|
|
6574
6575
|
argsSchema: object({ clientId: string2().min(1).optional() }),
|
|
6575
6576
|
handler: async ({ clientId: clientId2 }, config2) => apiGet(clientId2 ? `/v1/clients/${encodeURIComponent(clientId2)}/agent/dashboard` : "/v1/agent/dashboard", void 0, config2)
|
|
6576
6577
|
}),
|
|
6578
|
+
defineTool({
|
|
6579
|
+
name: "get_agent_auto_approval",
|
|
6580
|
+
description: 'Get the agent auto-approval rule: whether it is on, the maximum estimated savings per action it approves on its own (maxMonthlySavingsUsd, in USD per month; there is no organization-currency sibling), since when it counts, and how many actions it approved today against the daily cap. Only low-risk reversible cloud savings actions from a finding qualify: stopping or resizing a virtual machine, changing a bucket or storage account storage class, and on Azure moving Cosmos DB or Azure SQL to pay-per-use. The agent reads the resource tags live with its own credentials before approving and again right before running; only the tags on the resource itself count (not Azure resource group or subscription tags). A protected or production resource, one whose tags cannot be read, or a machine that would lose a local or temporary disk, a non-static public IP, or its place in a scaling group when stopped or resized is never auto-approved. Actions already sent to a person for approval are not auto-approved afterwards. Deletions, high-risk actions, second approvals, playbooks that ask for approval and actions without a grace period never qualify. They still wait for the grace period and maintenance windows and can be cancelled. Auto-approved actions carry autoApproved: true and approvedBy "rule:auto_approval". Requires the agent:read scope and the Business plan.',
|
|
6581
|
+
inputSchema: objectWith({}),
|
|
6582
|
+
argsSchema: object({}),
|
|
6583
|
+
handler: async (_args, config2) => apiGet("/v1/agent/auto-approval", void 0, config2)
|
|
6584
|
+
}),
|
|
6577
6585
|
defineTool({
|
|
6578
6586
|
name: "list_agent_actions",
|
|
6579
|
-
description: 'List the remediation actions proposed or executed by the autonomous agent, newest first, with optional filters. Use status "pending_approval" to see what is waiting for a human. Paginated: pass the returned cursor to get the next page. Requires the agent:read scope and the Business plan.',
|
|
6587
|
+
description: 'List the remediation actions proposed or executed by the autonomous agent, newest first, with optional filters. Use status "pending_approval" to see what is waiting for a human. estimatedSavingsUsd and verifiedSavingsUsd are USD; estimatedSavings and verifiedSavings are the same amounts in the organization currency (currency.code, approximate). Paginated: pass the returned cursor to get the next page. Requires the agent:read scope and the Business plan.',
|
|
6580
6588
|
inputSchema: objectWith({
|
|
6581
6589
|
status: AGENT_STATUS,
|
|
6582
6590
|
accountId: { ...ACCOUNT_ID, description: "Restrict to one account (optional)." },
|
|
@@ -6595,14 +6603,14 @@ var TOOLS = [
|
|
|
6595
6603
|
}),
|
|
6596
6604
|
defineTool({
|
|
6597
6605
|
name: "get_agent_action",
|
|
6598
|
-
description: "Get the full detail of one agent action: what it does, why, its estimated saving, approvals and execution result. Requires the agent:read scope and the Business plan.",
|
|
6606
|
+
description: "Get the full detail of one agent action: what it does, why, its estimated saving, approvals and execution result. estimatedSavingsUsd and verifiedSavingsUsd are USD; estimatedSavings and verifiedSavings are the same amounts in the organization currency (currency.code, approximate). Requires the agent:read scope and the Business plan.",
|
|
6599
6607
|
inputSchema: objectWith({ actionId: { type: "string", description: "Action identifier, as returned by list_agent_actions." } }, ["actionId"]),
|
|
6600
6608
|
argsSchema: object({ actionId: string2().min(1) }),
|
|
6601
6609
|
handler: async ({ actionId }, config2) => apiGet(`/v1/agent/actions/${encodeURIComponent(actionId)}`, void 0, config2)
|
|
6602
6610
|
}),
|
|
6603
6611
|
defineTool({
|
|
6604
6612
|
name: "list_agent_history",
|
|
6605
|
-
description: "List the paginated history of agent actions, optionally by status. Pass the returned cursor to get the next page. Requires the agent:read scope and the Business plan.",
|
|
6613
|
+
description: "List the paginated history of agent actions, optionally by status. estimatedSavingsUsd and verifiedSavingsUsd are USD; estimatedSavings and verifiedSavings are the same amounts in the organization currency (currency.code, approximate). Pass the returned cursor to get the next page. Requires the agent:read scope and the Business plan.",
|
|
6606
6614
|
inputSchema: objectWith({
|
|
6607
6615
|
status: AGENT_STATUS,
|
|
6608
6616
|
limit: { type: "integer", minimum: 1, maximum: 100, description: "Page size (default 50)." },
|
|
@@ -6725,7 +6733,7 @@ var TOOLS = [
|
|
|
6725
6733
|
}),
|
|
6726
6734
|
defineTool({
|
|
6727
6735
|
name: "list_monitoring_incidents",
|
|
6728
|
-
description: 'List monitoring incidents (each alerted outage, from when it started until it recovered), newest first, with duration, who acknowledged it and what it cost: the business impact per minute set on the monitor and, for cloud resources, an approximate cloud cost, in the organization currency. This answers "what is on fire and who is on it". Filter by state (open or resolved) or monitor. Paginated: pass the returned "nextCursor" as "before"; a page can come back short or empty with a cursor. Requires the monitoring:read scope and the Pro plan or above.',
|
|
6736
|
+
description: 'List monitoring incidents (each alerted outage, from when it started until it recovered), newest first, with duration, who acknowledged it and what it cost: the business impact per minute set on the monitor and, for cloud resources, an approximate cloud cost. impact.amount, impact.perMinute.amount and cloudCost.amount are in the organization currency when they could be converted and otherwise stay in the currency set on the monitor or billed (impact.original keeps the configured amount): read the "currency" next to each amount; nothing here ends in Usd. This answers "what is on fire and who is on it". Filter by state (open or resolved) or monitor. Paginated: pass the returned "nextCursor" as "before"; a page can come back short or empty with a cursor. Requires the monitoring:read scope and the Pro plan or above.',
|
|
6729
6737
|
inputSchema: objectWith({
|
|
6730
6738
|
state: { type: "string", enum: ["open", "resolved"], description: "Only open or only resolved incidents (optional)." },
|
|
6731
6739
|
monitorId: { ...MONITOR_ID, description: "Only the incidents of this monitor (optional)." },
|
|
@@ -6742,7 +6750,7 @@ var TOOLS = [
|
|
|
6742
6750
|
}),
|
|
6743
6751
|
defineTool({
|
|
6744
6752
|
name: "get_monitoring_incident",
|
|
6745
|
-
description:
|
|
6753
|
+
description: 'Get one monitoring incident with its timeline (opened, re-alerted, acknowledged, notes, closed), its cause (reason code, status code, failed flow step) and what it cost: in the organization currency when it could be converted, otherwise in the currency set on the monitor or billed, so read the "currency" next to each amount. Requires the monitoring:read scope and the Pro plan or above.',
|
|
6746
6754
|
inputSchema: objectWith({ incidentId: { type: "string", description: "Incident identifier, as returned by list_monitoring_incidents." } }, ["incidentId"]),
|
|
6747
6755
|
argsSchema: object({ incidentId: string2().min(1) }),
|
|
6748
6756
|
handler: async ({ incidentId }, config2) => apiGet(`/v1/monitoring/incidents/${encodeURIComponent(incidentId)}`, void 0, config2)
|
|
@@ -6793,14 +6801,14 @@ var TOOLS = [
|
|
|
6793
6801
|
// ── Presupuestos ───────────────────────────────────────────
|
|
6794
6802
|
defineTool({
|
|
6795
6803
|
name: "list_budgets",
|
|
6796
|
-
description: `List the organization's cloud budgets with their status this month: monthly amount and currency, scope (whole organization, one account, one billing service, or one MSP client with all its accounts), spend so far, the month at the current pace ("forecast"), percent used and state (ok, warning, over, no_data, estimated). Spend comes from the daily cost scan;
|
|
6804
|
+
description: `List the organization's cloud budgets with their status this month: monthly amount and currency, scope (whole organization, one account, one billing service, or one MSP client with all its accounts), spend so far, the month at the current pace ("forecast"), percent used and state (ok, warning, over, no_data, estimated). Spend comes from the daily cost scan; amount, spentToDate and forecast are in each budget's own "currency", fixed when it was created and possibly different from the organization currency in the top-level currency object, and "approximate" is true when they were converted from USD; spentToDateUsd and forecastUsd are USD. Use it to answer "are we within budget this month". Requires the budgets:read scope.`,
|
|
6797
6805
|
inputSchema: { type: "object", properties: {} },
|
|
6798
6806
|
argsSchema: object({}),
|
|
6799
6807
|
handler: async (_args, config2) => apiGet("/v1/budgets", void 0, config2)
|
|
6800
6808
|
}),
|
|
6801
6809
|
defineTool({
|
|
6802
6810
|
name: "get_budget",
|
|
6803
|
-
description:
|
|
6811
|
+
description: `Get one budget by id with its status this month and the last six months of spend against its amount. amount, spentToDate, forecast and history[].spentToDate/amount are in the budget's own "currency", fixed when it was created, which can differ from the organization currency in the top-level currency object; spentToDateUsd and forecastUsd are USD. Requires the budgets:read scope.`,
|
|
6804
6812
|
inputSchema: {
|
|
6805
6813
|
type: "object",
|
|
6806
6814
|
properties: { budgetId: { type: "string", description: "Budget identifier (bud_\u2026), as returned by list_budgets." } },
|
|
@@ -6812,7 +6820,7 @@ var TOOLS = [
|
|
|
6812
6820
|
// ── Entornos efímeros (leases) ─────────────────────────────
|
|
6813
6821
|
defineTool({
|
|
6814
6822
|
name: "list_leases",
|
|
6815
|
-
description: `List the organization's leases: ephemeral environments with an expiry date, declared through the API or found by the aaa-sentinel:expires-at tag (aaa-sentinel_expires-at on GCP) in the daily scan, which can see a new tag up to a day late. Each lease has its selector (a tag or resource ids), account, environment ("env"), expiry ("expiresAt", UTC), what happens on expiry ("onExpiry": stop or delete), state (active, expiring_notified when the 24-hour warning was sent, expired, closed), how many times it was extended, an "issue" when the agent cannot act on the whole lease (too_broad, tag_unreadable, discovered_expired) and a "summary": resources matched, estimated cost in USD (usdMonthly, estimatedUsd) and in
|
|
6823
|
+
description: `List the organization's leases: ephemeral environments with an expiry date, declared through the API or found by the aaa-sentinel:expires-at tag (aaa-sentinel_expires-at on GCP) in the daily scan, which can see a new tag up to a day late. Each lease has its selector (a tag or resource ids), account, environment ("env"), expiry ("expiresAt", UTC), what happens on expiry ("onExpiry": stop or delete), state (active, expiring_notified when the 24-hour warning was sent, expired, closed), how many times it was extended, an "issue" when the agent cannot act on the whole lease (too_broad, tag_unreadable, discovered_expired) and a "summary": resources matched, estimated cost in USD (usdMonthly, estimatedUsd) and in summary.currency (monthlyCost, estimatedCost; the organization currency, approximate, or USD when there is no exchange rate), and how many agent actions were proposed or approved by a playbook. Use it to answer "what expires today" or "which preview environments are still alive". Requires the leases:read scope.`,
|
|
6816
6824
|
inputSchema: objectWith({
|
|
6817
6825
|
env: { type: "string", pattern: LEASE_ENV_PATTERN, description: 'Only the leases of this environment, e.g. "pr-412" (optional).' }
|
|
6818
6826
|
}),
|
|
@@ -6821,7 +6829,7 @@ var TOOLS = [
|
|
|
6821
6829
|
}),
|
|
6822
6830
|
defineTool({
|
|
6823
6831
|
name: "get_lease",
|
|
6824
|
-
description: 'Get one lease by id with the resources its selector matched in the last inventory: provider, type, region, estimated monthly list cost in USD, whether the resource carries the consent tag (required to stop or terminate instances, stop databases and delete AWS disks), and, after expiry on Business, the agent action proposed for it or why none was ("issue": consent_missing, no_executor, not_found). Requires the leases:read scope.',
|
|
6832
|
+
description: 'Get one lease by id with the resources its selector matched in the last inventory: provider, type, region, estimated monthly list cost (usdMonthly, USD only, never converted; the lease summary has the same totals as list_leases, with monthlyCost and estimatedCost in summary "currency" and summary.estimatedUsd in USD), whether the resource carries the consent tag (required to stop or terminate instances, stop databases and delete AWS disks), and, after expiry on Business, the agent action proposed for it or why none was ("issue": consent_missing, no_executor, not_found). Requires the leases:read scope.',
|
|
6825
6833
|
inputSchema: {
|
|
6826
6834
|
type: "object",
|
|
6827
6835
|
properties: { leaseId: { type: "string", description: "Lease identifier (lse_\u2026), as returned by list_leases." } },
|
|
@@ -6832,14 +6840,14 @@ var TOOLS = [
|
|
|
6832
6840
|
}),
|
|
6833
6841
|
defineTool({
|
|
6834
6842
|
name: "list_environments",
|
|
6835
|
-
description: 'List the environments, grouped by the "env" of their leases or the aaa-sentinel:env tag, with their resources, open leases, nearest expiry and estimated cost in the organization currency: the monthly list price of each resource and what it has cost so far over the days it has been alive. The cost is an estimate from list prices, not the bill, and "approximate" is always true. Use it to answer "how much are our preview environments costing". Requires the leases:read scope.',
|
|
6843
|
+
description: 'List the environments, grouped by the "env" of their leases or the aaa-sentinel:env tag, with their resources, open leases, nearest expiry and estimated cost in the organization currency: the monthly list price of each resource and what it has cost so far over the days it has been alive. The cost is an estimate from list prices, not the bill, and "approximate" is always true. monthlyCost, estimatedCost and projectedCost are in the response "currency" (the organization currency, or USD when there is no exchange rate); monthlyCostUsd, estimatedCostUsd and projectedCostUsd are USD. Use it to answer "how much are our preview environments costing". Requires the leases:read scope.',
|
|
6836
6844
|
inputSchema: { type: "object", properties: {} },
|
|
6837
6845
|
argsSchema: object({}),
|
|
6838
6846
|
handler: async (_args, config2) => apiGet("/v1/environments", void 0, config2)
|
|
6839
6847
|
}),
|
|
6840
6848
|
defineTool({
|
|
6841
6849
|
name: "get_environment_cost",
|
|
6842
|
-
description: 'Get the estimated cost of one environment resource by resource: monthly list cost and cost so far over its days alive, in the organization currency
|
|
6850
|
+
description: 'Get the estimated cost of one environment resource by resource: monthly list cost and cost so far over its days alive: monthlyCost, estimatedCost and projectedCost in the response "currency" (the organization currency, "approximate" is true, or USD when there is no exchange rate) and monthlyCostUsd, estimatedCostUsd and projectedCostUsd in USD, plus the lease and expiry that covers each resource. A resource without a known price has a null cost and does not add to the total. Requires the leases:read scope.',
|
|
6843
6851
|
inputSchema: {
|
|
6844
6852
|
type: "object",
|
|
6845
6853
|
properties: { env: { type: "string", pattern: LEASE_ENV_PATTERN, description: "Environment name, as returned by list_environments." } },
|
|
@@ -6851,14 +6859,14 @@ var TOOLS = [
|
|
|
6851
6859
|
// ── Propietarios desde el código ───────────────────────────
|
|
6852
6860
|
defineTool({
|
|
6853
6861
|
name: "list_owner_sources",
|
|
6854
|
-
description: 'List where team ownership comes from: the repository sources synced by `iac-cost owners sync` (kind backstage or codeowners_tf, repository, path, branch, commit, last sync, number of tag rules and resources), the conflicts between sources (the same resource id or tag value claimed by two teams; the oldest source wins), how many manual team rules the console has, and the coverage of the last closed month from the FOCUS bill: cost assigned by the real team tag, by a manual rule, by a repository source, and unassigned, in the organization currency ("approximate" is true). Use it to answer "who owns this cost" or "how much of our bill has no team". Requires the owners:read scope and the Business plan.',
|
|
6862
|
+
description: 'List where team ownership comes from: the repository sources synced by `iac-cost owners sync` (kind backstage or codeowners_tf, repository, path, branch, commit, last sync, number of tag rules and resources), the conflicts between sources (the same resource id or tag value claimed by two teams; the oldest source wins), how many manual team rules the console has, and the coverage of the last closed month from the FOCUS bill: cost assigned by the real team tag, by a manual rule, by a repository source, and unassigned, in the "currency" of coverage: the organization currency at the month-close ECB rate ("approximate" is true), or USD when there was no rate; no field here ends in Usd. Use it to answer "who owns this cost" or "how much of our bill has no team". Requires the owners:read scope and the Business plan.',
|
|
6855
6863
|
inputSchema: { type: "object", properties: {} },
|
|
6856
6864
|
argsSchema: object({}),
|
|
6857
6865
|
handler: async (_args, config2) => apiGet("/v1/owners", void 0, config2)
|
|
6858
6866
|
}),
|
|
6859
6867
|
defineTool({
|
|
6860
6868
|
name: "get_team_costs",
|
|
6861
|
-
description: 'Get the estimated cost of the current month per owning team: the monthly list price of each resource in the last daily inventory, assigned to its effective team (real team tag, manual rule or repository source), with resources and accounts per team, the unassigned part and the accounts without an inventory yet. It is an estimate from list prices in the organization currency
|
|
6869
|
+
description: 'Get the estimated cost of the current month per owning team: the monthly list price of each resource in the last daily inventory, assigned to its effective team (real team tag, manual rule or repository source), with resources and accounts per team, the unassigned part and the accounts without an inventory yet. It is an estimate from list prices, not the bill: total, unassigned.cost, teams[].cost and teams[].byOrigin are in the response "currency" (the organization currency, "approximate" is true, or USD when there is no exchange rate). Only in that USD case do unassigned.cost and teams[].cost carry a costConverted sibling in the organization currency (displayCurrency); total and byOrigin never do. For the billed split of a closed month use get_chargeback. Requires the owners:read scope and the Business plan.',
|
|
6862
6870
|
inputSchema: { type: "object", properties: {} },
|
|
6863
6871
|
argsSchema: object({}),
|
|
6864
6872
|
handler: async (_args, config2) => apiGet("/v1/owners/teams", void 0, config2)
|
|
@@ -6875,7 +6883,7 @@ function findTool(name) {
|
|
|
6875
6883
|
|
|
6876
6884
|
// src/protocol.ts
|
|
6877
6885
|
var SERVER_NAME = "aaa-sentinel-mcp";
|
|
6878
|
-
var SERVER_VERSION = "0.
|
|
6886
|
+
var SERVER_VERSION = "0.19.0";
|
|
6879
6887
|
var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
|
|
6880
6888
|
var PARSE_ERROR = -32700;
|
|
6881
6889
|
var INVALID_REQUEST = -32600;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aaa-sentinel/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Read-only MCP server for AAA Sentinel: query cloud costs, savings, security posture, AI spend, uptime monitoring, the remediation agent and managed clients from an AI assistant",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|