get_project
Retrieve detailed information about a specific project by providing its ID, with options to include and expand additional fields for comprehensive insights.
Instructions
Get detailed information about a specific project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | Fields to expand (comma-separated) | |
| include | No | Additional fields to include (comma-separated) | |
| project_id | Yes | The ID of the project to retrieve |
Implementation Reference
- The core handler function for the 'get_project' MCP tool. It is decorated with @mcp.tool(), which registers it with the MCP server. The function fetches project details via api_client.get_project and returns JSON.@mcp.tool() async def get_project(ctx: Context, project_id: int, page_size: Optional[int] = None, include: Optional[str] = None, expand: Optional[str] = None) -> str: """Get details of a specific project. Use list_countermeasures to see countermeasures for a project, not this tool.""" global api_client if api_client is None: api_client = init_api_client() params = build_params({"page_size": page_size, "include": include, "expand": expand}) result = api_client.get_project(project_id, params) return json.dumps(result, indent=2)