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
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
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")
- terraform_cloud_mcp/server.py:97-97 (registration)Registers the get_project_details tool from the projects module using the FastMCP mcp.tool() decorator.mcp.tool()(projects.get_project_details)