Skip to main content
Glama

infracost_comment

Post cost estimate comments to pull requests on GitHub, GitLab, Azure Repos, or Bitbucket. Automatically updates existing comments to provide infrastructure cost visibility during code review.

Instructions

Post cost estimate comments to pull requests on GitHub, GitLab, Azure Repos, or Bitbucket. Automatically updates existing comments. Requires infracost CLI to be installed and appropriate platform credentials.

Input Schema

NameRequiredDescriptionDefault
pathYesPath to Infracost JSON file
platformYesGit platform
repoNoRepository in format owner/repo
pullRequestNoPull request number
commitNoCommit SHA to associate comment with
tagNoTag for comment identification
behaviorNoHow to handle existing comments (default: update)

Input Schema (JSON Schema)

{ "properties": { "behavior": { "description": "How to handle existing comments (default: update)", "enum": [ "update", "new", "delete-and-new" ], "type": "string" }, "commit": { "description": "Commit SHA to associate comment with", "type": "string" }, "path": { "description": "Path to Infracost JSON file", "type": "string" }, "platform": { "description": "Git platform", "enum": [ "github", "gitlab", "azure-repos", "bitbucket" ], "type": "string" }, "pullRequest": { "description": "Pull request number", "type": "string" }, "repo": { "description": "Repository in format owner/repo", "type": "string" }, "tag": { "description": "Tag for comment identification", "type": "string" } }, "required": [ "path", "platform" ], "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