# Function handleGetMEPDetails

- handleGetMEPDetails(args: unknown): Promise<ToolResult>

  Handles the get_mep_details MCP tool request.

  Retrieves comprehensive information about a single MEP identified by their unique ID, including biography, contact details, committee memberships, voting statistics, and parliamentary activities. Access to personal data is audit-logged for GDPR compliance.

  #### Parameters

  - args: unknown

    Raw tool arguments, validated against GetMEPDetailsSchema

  #### Returns Promise<ToolResult>

  MCP tool result containing detailed MEP profile data including biography, contact information, committee roles, voting record, and activity statistics

  #### Throws

  - If `args` fails schema validation (e.g., missing or empty `id` field)
  - If the European Parliament API is unreachable or returns an error response

  #### Example

      const result = await handleGetMEPDetails({ id: 'MEP-124810' });
      // Returns full profile for MEP 124810, including committees and voting stats

  #### Security

  Input is validated with Zod before any API call. Personal data (biography, contact info) access is audit-logged per GDPR Art. 5(2) and ISMS Policy AU-002. Data minimisation applied per GDPR Article 5(1)(c).

  #### Since

  0.8.0

  #### See

  - getMEPDetailsToolMetadata for MCP schema registration
  - handleGetMEPs for listing MEPs and obtaining valid IDs
  - Defined in tools/getMEPDetails.ts:52