Skip to main content
Glama

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
NameRequiredDescriptionDefault
project_idYes

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")
  • 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)

Other Tools

Related Tools

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