[ { "node_id": "09789a62", "tool": { "type": "function", "function": { "name": "create_analyst_insight_assignment", "description": "Creates a new AnalystInsightAssignment record, formally assigning the verified ServiceReview to the authorized Analyst for insight generation.", "parameters": { "type": "object", "properties": { "review_id": { "type": "string", "description": "The ID of the ServiceReview to assign for analysis." }, "provider_id": { "type": "string", "description": "The ID of the ServiceProvider who received the review." } }, "required": [ "review_id", "provider_id" ] } } } }, { "node_id": "148dd7d1", "tool": { "type": "function", "function": { "name": "get_latest_performance_snapshot_with_details", "description": "Retrieves the most recent Performance Snapshot generated for the authorized ServiceProvider, with an option to include Analyst contact details for follow-up.", "parameters": { "type": "object", "properties": { "include_analyst_details": { "type": "boolean", "description": "When true, includes the name and contact information of the Analyst who generated the performance snapshot.", "default": false } }, "required": [] } } } }, { "node_id": "1cf2a85c", "tool": { "type": "function", "function": { "name": "retrieve_enhanced_performance_snapshot", "description": "Retrieves the most recent Performance Snapshot generated for the authorized ServiceProvider with Analyst contact details included.", "parameters": { "type": "object", "properties": {}, "required": [] } } } }, { "node_id": "23236bd6", "tool": { "type": "function", "function": { "name": "get_review_analyst_insights", "description": "", "parameters": { "type": "object", "properties": { "review_id": { "type": "string", "description": "The ID of the ServiceReview to get insights for." } }, "required": [ "review_id" ] } } } }, { "node_id": "45e79723", "tool": { "type": "function", "function": { "name": "analyst_assign_review_for_analysis", "description": "Allows an Analyst to assign themselves or be assigned a specific ServiceReview for insight generation.", "parameters": { "type": "object", "properties": { "review_id": { "type": "string", "description": "The ID of the ServiceReview to assign." }, "provider_id": { "type": "string", "description": "The ID of the ServiceProvider who received the review." } }, "required": [ "review_id", "provider_id" ] } } } }, { "node_id": "57cc5465", "tool": { "type": "function", "function": { "name": "analyst_find_providers_by_rating_threshold", "description": "Allows an Analyst to search for ServiceProviders meeting a minimum rating average threshold, optionally filtered by service category.", "parameters": { "type": "object", "properties": { "min_rating_average": { "type": "number", "description": "Minimum rating_average to filter providers (0.0 to 5.0)." }, "service_category": { "type": "string", "description": "Optional service category to further filter providers." } }, "required": [ "min_rating_average" ] } } } }, { "node_id": "70957e82", "tool": { "type": "function", "function": { "name": "retrieve_basic_performance_snapshot", "description": "Retrieves the most recent Performance Snapshot generated for the authorized ServiceProvider without analyst contact details.", "parameters": { "type": "object", "properties": {}, "required": [] } } } }, { "node_id": "77d8cc71", "tool": { "type": "function", "function": { "name": "analyst_generate_performance_snapshot", "description": "Allows an Analyst to generate a new Performance Snapshot for a ServiceProvider based on recent reviews.", "parameters": { "type": "object", "properties": { "provider_id": { "type": "string", "description": "The ID of the ServiceProvider for the snapshot." }, "snapshot_period_end": { "type": "string", "description": "The end date of the period covered by the snapshot." }, "review_id_list": { "type": "array", "description": "List of Review IDs to include in the snapshot calculation." } }, "required": [ "provider_id", "snapshot_period_end", "review_id_list" ] } } } }, { "node_id": "7cb60247", "tool": { "type": "function", "function": { "name": "list_scheduled_consultations", "description": "Lists all upcoming and past consultation sessions for the authorized ServiceProvider.", "parameters": { "type": "object", "properties": { "include_past": { "type": "boolean", "description": "Whether to include past consultations in the results." } }, "required": [ "include_past" ] } } } }, { "node_id": "90e59908", "tool": { "type": "function", "function": { "name": "list_provider_reviews", "description": "Retrieves all ServiceReview records assigned to the authorized ServiceProvider.", "parameters": { "type": "object", "properties": { "timeframe_start": { "type": "string", "description": "Optional start date to filter reviews (ISO 8601)." }, "timeframe_end": { "type": "string", "description": "Optional end date to filter reviews (ISO 8601)." } }, "required": [ "timeframe_start", "timeframe_end" ] } } } }, { "node_id": "933cf998", "tool": { "type": "function", "function": { "name": "authorize_service_provider_with_context", "description": "Authorizes a ServiceProvider to access the insight generation system using their unique ID, with optional context about the authorization request.", "parameters": { "type": "object", "properties": { "provider_id": { "type": "string", "description": "The unique identifier of the ServiceProvider." }, "request_context": { "type": "string", "description": "Optional context about the authorization request (e.g., 'dashboard_login', 'api_integration', 'scheduled_refresh').", "default": "dashboard_login" } }, "required": [ "provider_id" ] } } } }, { "node_id": "9bdefdf8", "tool": { "type": "function", "function": { "name": "retrieve_audit_compliance_details", "description": "Retrieves the detailed compliance issue codes found during a quality audit for a specific ServiceReview. Requires that an audit exists for the review.", "parameters": { "type": "object", "properties": { "review_id": { "type": "string", "description": "The ID of the ServiceReview to get compliance details for." } }, "required": [ "review_id" ] } } } }, { "node_id": "a61fd92e", "tool": { "type": "function", "function": { "name": "schedule_analyst_consultation_with_datetime", "description": "Schedules a new consultation session between the authorized ServiceProvider and an available Analyst for a specific topic. Updated to accept ISO 8601 datetime format for more precise scheduling.", "parameters": { "type": "object", "properties": { "preferred_analyst_domain": { "type": "string", "description": "Preferred Analyst specialization domain for the consultation." }, "consultation_topic": { "type": "string", "description": "The primary topic for the consultation." }, "preferred_date_window": { "type": "string", "description": "Preferred start date and time for the consultation (ISO 8601 datetime format)." } }, "required": [ "preferred_analyst_domain", "consultation_topic", "preferred_date_window" ] } } } }, { "node_id": "acc4c2cf", "tool": { "type": "function", "function": { "name": "analyst_get_assigned_reviews", "description": "Retrieves all ServiceReview records currently assigned to the authorized Analyst for analysis.", "parameters": { "type": "object", "properties": { "status_filter": { "type": "string", "description": "Optional filter to get assignments with a specific status." } }, "required": [ "status_filter" ] } } } }, { "node_id": "b2c436c0", "tool": { "type": "function", "function": { "name": "analyst_find_providers_by_trend_and_recency", "description": "Allows an Analyst to search for ServiceProviders with specific performance trend indicators, optionally filtered by service category and maximum age of performance snapshot data.", "parameters": { "type": "object", "properties": { "trend_indicator": { "type": "string", "description": "Trend indicator to filter providers (improving|stable|declining|volatile)." }, "service_category": { "type": "string", "description": "Optional service category to further filter providers." }, "max_snapshot_age_days": { "type": "integer", "description": "Optional maximum age in days for the most recent performance snapshot data (default: 90).", "default": 90 } }, "required": [ "trend_indicator" ] } } } }, { "node_id": "bd38c39a", "tool": { "type": "function", "function": { "name": "analyst_perform_review_audit", "description": "Allows an Analyst to perform a quality/compliance audit on a ServiceReview and record the verdict.", "parameters": { "type": "object", "properties": { "review_id": { "type": "string", "description": "The ID of the ServiceReview to audit." }, "provider_id": { "type": "string", "description": "The ID of the ServiceProvider who received the review." }, "audit_verdict": { "type": "string", "description": "The analyst's verdict on the review's authenticity and quality." }, "compliance_issues": { "type": "array", "description": "Optional list of compliance issue codes found." } }, "required": [ "review_id", "provider_id", "audit_verdict", "compliance_issues" ] } } } }, { "node_id": "ccc54795", "tool": { "type": "function", "function": { "name": "get_detailed_audit_status_for_review", "description": "", "parameters": { "type": "object", "properties": { "review_id": { "type": "string", "description": "The ID of the ServiceReview to check audit status for." }, "include_compliance_details": { "type": "boolean", "description": "Whether to include the list of compliance issue codes found in the audit response.", "default": false } }, "required": [ "review_id" ] } } } }, { "node_id": "d7a66f1e", "tool": { "type": "function", "function": { "name": "verify_review_for_analyst_assignment", "description": "Verifies that a ServiceReview exists and is associated with the specified ServiceProvider, making it eligible for analyst assignment.", "parameters": { "type": "object", "properties": { "review_id": { "type": "string", "description": "The ID of the ServiceReview to verify for assignment eligibility." }, "provider_id": { "type": "string", "description": "The ID of the ServiceProvider who should have received the review." } }, "required": [ "review_id", "provider_id" ] } } } }, { "node_id": "dfe35570", "tool": { "type": "function", "function": { "name": "calculate_provider_rating_trend_with_granularity", "description": "Calculates the rating trend (improving/stable/declining) for the authorized ServiceProvider over a specified period, with optional control over the time granularity of the analysis.", "parameters": { "type": "object", "properties": { "period_months": { "type": "integer", "description": "Number of months to look back for the trend analysis." }, "analysis_granularity": { "type": "string", "description": "Optional time granularity for calculating the trend (e.g., monthly, quarterly). Defaults to 'monthly'.", "enum": [ "monthly", "quarterly" ], "default": "monthly" } }, "required": [ "period_months" ] } } } }, { "node_id": "e1f1c224", "tool": { "type": "function", "function": { "name": "retrieve_basic_audit_verdict", "description": "Retrieves the basic audit status and verdict for a specific ServiceReview belonging to the authorized ServiceProvider. Returns core audit metadata including verdict and audit date.", "parameters": { "type": "object", "properties": { "review_id": { "type": "string", "description": "The ID of the ServiceReview to check audit status for." } }, "required": [ "review_id" ] } } } }, { "node_id": "ff1009dc", "tool": { "type": "function", "function": { "name": "analyst_update_insight_assignment", "description": "Adjust the state of an assigned task or analysis.", "parameters": { "type": "object", "properties": { "insight_assignment_id": { "type": "string", "description": "The ID of the insight assignment to update." }, "new_status": { "type": "string", "description": "The new analysis completion status." }, "insight_summary": { "type": "string", "description": "Optional text summary of the insights generated (required if status is 'completed')." } }, "required": [ "insight_assignment_id", "new_status", "insight_summary" ] } } } } ]