Skip to main content
Glama

Infracost MCP Server

infracost_cloud_update_guardrail

Modify cost guardrail thresholds and settings in Infracost Cloud to control infrastructure spending by setting budget limits, configuring notifications, and managing pull request actions.

Instructions

Update an existing guardrail in Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable.

Input Schema

NameRequiredDescriptionDefault
orgSlugNoOrganization slug from Infracost Cloud (defaults to INFRACOST_ORG env var)
guardrailIdYesGuardrail ID
nameNoName for the guardrail
filtersNoFilters to limit scope of the guardrail
increaseThresholdNoThreshold for cost increases (monthly dollar amount)
increasePercentThresholdNoThreshold for cost increases (percentage)
totalThresholdNoThreshold for total cost (monthly dollar amount)
messageNoCustom message to display when threshold is exceeded
webhookUrlNoWebhook URL to notify when threshold is exceeded
blockPullRequestNoWhether to block PR when threshold is exceeded
commentOnPullRequestNoWhether to comment on PR when threshold is exceeded

Input Schema (JSON Schema)

{ "properties": { "blockPullRequest": { "description": "Whether to block PR when threshold is exceeded", "type": "boolean" }, "commentOnPullRequest": { "description": "Whether to comment on PR when threshold is exceeded", "type": "boolean" }, "filters": { "description": "Filters to limit scope of the guardrail", "items": { "properties": { "type": { "description": "Filter type", "enum": [ "project", "repository" ], "type": "string" }, "value": { "description": "Filter value", "type": "string" } }, "required": [ "type", "value" ], "type": "object" }, "type": "array" }, "guardrailId": { "description": "Guardrail ID", "type": "string" }, "increasePercentThreshold": { "description": "Threshold for cost increases (percentage)", "type": "number" }, "increaseThreshold": { "description": "Threshold for cost increases (monthly dollar amount)", "type": "number" }, "message": { "description": "Custom message to display when threshold is exceeded", "type": "string" }, "name": { "description": "Name for the guardrail", "type": "string" }, "orgSlug": { "description": "Organization slug from Infracost Cloud (defaults to INFRACOST_ORG env var)", "type": "string" }, "totalThreshold": { "description": "Threshold for total cost (monthly dollar amount)", "type": "number" }, "webhookUrl": { "description": "Webhook URL to notify when threshold is exceeded", "type": "string" } }, "required": [ "guardrailId" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/phildougherty/infracost_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server