get_part
Retrieve detailed information about a specific enhancement in DevRev by providing its unique ID using the MCP server tool.
Instructions
Get information about a part (enhancement) in DevRev using its ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The DevRev ID of the part |
Implementation Reference
- src/devrev_mcp/server.py:836-865 (handler)Handler function that implements the get_part tool logic by making an API request to DevRev's parts.get endpoint with the provided part ID and returning the part information.elif name == "get_part": if not arguments: raise ValueError("Missing arguments") id = arguments.get("id") if not id: raise ValueError("Missing id parameter") response = make_devrev_request( "parts.get", { "id": id } ) if response.status_code != 200: error_text = response.text return [ types.TextContent( type="text", text=f"Get part failed with status {response.status_code}: {error_text}" ) ] return [ types.TextContent( type="text", text=f"Part information for '{id}':\n{response.json()}" ) ]
- src/devrev_mcp/server.py:230-238 (registration)Registration of the 'get_part' tool in the list_tools handler, including its name, description, and input schema requiring a part ID.types.Tool( name="get_part", description="Get information about a part (enhancement) in DevRev using its ID", inputSchema={ "type": "object", "properties": {"id": {"type": "string", "description": "The DevRev ID of the part"}}, "required": ["id"], }, ),
- src/devrev_mcp/server.py:234-237 (schema)JSON schema for the get_part tool input, defining the required 'id' parameter."type": "object", "properties": {"id": {"type": "string", "description": "The DevRev ID of the part"}}, "required": ["id"], },