get_project_details
Retrieve detailed project information, including configuration, tag bindings, workspace count, and status, using the specified project ID in Terraform Cloud.
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 that executes the core logic of the 'get_project_details' tool by making a GET request to the Terraform Cloud API endpoint /projects/{project_id}.@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)The registration of the 'get_project_details' tool using FastMCP's mcp.tool() decorator in the main server file.mcp.tool()(projects.get_project_details)