Skip to main content
Glama
severity1

terraform-cloud-mcp

get_project_details

Retrieve comprehensive Terraform Cloud project information including configuration, tag bindings, workspace count, and status details.

Instructions

Get details for a specific project.

Retrieves comprehensive information about a project including its configuration, tag bindings, workspace count, and other attributes.

API endpoint: GET /projects/{project_id}

Args: project_id: The ID of the project (format: "prj-xxxxxxxx")

Returns: Project details including settings, configuration and status

See: docs/tools/project.md for reference documentation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes

Implementation Reference

  • The handler function for the 'get_project_details' tool. It takes a project_id and performs a GET request to the Terraform Cloud API at /projects/{project_id} to retrieve project details, returning an APIResponse.
    @handle_api_errors
    async def get_project_details(project_id: str) -> APIResponse:
        """Get details for a specific project.
    
        Retrieves comprehensive information about a project including its configuration,
        tag bindings, workspace count, and other attributes.
    
        API endpoint: GET /projects/{project_id}
    
        Args:
            project_id: The ID of the project (format: "prj-xxxxxxxx")
    
        Returns:
            Project details including settings, configuration and status
    
        See:
            docs/tools/project.md for reference documentation
        """
        # Make API request
        return await api_request(f"projects/{project_id}", method="GET")
  • Registers the get_project_details tool from the projects module using the FastMCP mcp.tool() decorator.
    mcp.tool()(projects.get_project_details)

Latest Blog Posts

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/severity1/terraform-cloud-mcp'

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