Classification Workflows
The NAICS MCP Server supports several classification workflows depending on your needs.
Simple Classification
Use case: Quick classification of a single business
User: "What NAICS code for a pizza restaurant?"
AI: Uses classify_business → Returns 722511 (Full-Service Restaurants)Steps:
- Call
classify_businesswith the description - Return the recommended code with confidence
- Note any cross-reference warnings
Exploratory Classification
Use case: Understanding options when unsure
User: "I need to classify a company that sells software online"
AI: Uses search_naics_codes → Returns multiple options
Uses get_code_hierarchy → Explains each option
Asks clarifying questionsSteps:
- Call
search_naics_codeswith limit=5 - For top results, call
get_code_hierarchy - Present options with context
- Ask clarifying questions if needed
- Let user select or provide more info
Validation Workflow
Use case: Verifying an existing classification
User: "Is 541511 correct for my web development agency?"
AI: Uses validate_classification → Checks fit
Uses get_cross_references → Checks exclusionsSteps:
- Call
validate_classificationwith description and code - If valid, confirm with any caveats
- If not valid, suggest alternatives
- Check cross-references for edge cases
Batch Classification
Use case: Processing multiple businesses
User: "Classify these 50 businesses from my spreadsheet"
AI: Uses classify_batch → Returns all classifications
Flags low-confidence items for reviewSteps:
- Call
classify_batchwith all descriptions - Group results by confidence level
- Present high-confidence results
- Flag low-confidence items for user review
Audit Trail Workflow
Use case: Compliance documentation
User: "Classify this business and save it for our records"
AI: Uses classify_business → Gets classification
Uses write_to_workbook → Saves decisionSteps:
- Call
classify_businesswith full analysis - Present recommendation to user
- Upon confirmation, call
write_to_workbook - Include reasoning and alternatives considered
Hierarchy Exploration
Use case: Understanding NAICS structure
User: "Show me all subcategories under Retail Trade"
AI: Uses get_children repeatedly → Builds treeSteps:
- Start with sector code (e.g., “44-45”)
- Call
get_childrento get subsectors - Optionally drill down further
- Present as structured hierarchy
Comparison Workflow
Use case: Deciding between similar codes
User: "What's the difference between 722511 and 722513?"
AI: Uses compare_codes → Shows side-by-side
Uses get_cross_references → Shows boundariesSteps:
- Call
compare_codeswith both codes - Highlight key differences
- Call
get_cross_referencesfor each - Explain when to use each code
Cross-Sector Analysis
Use case: Discovering when a business might belong in a different sector
User: "Classify this furniture wholesaler"
AI: Uses classify_business → Gets initial code
Uses get_relationship_stats → Checks for cross-sector alternatives
Uses get_cross_sector_alternatives → Shows options in other sectors
Compares retail vs wholesale codesSteps:
- Call
classify_businesswith description - Call
get_relationship_statson the top result - If
has_cross_sector: true:- Call
get_cross_sector_alternativesto see options - Call
compare_codesfor top alternatives - Call
get_cross_referencesto check exclusions
- Call
- Present alternatives with sector context
- Let user decide based on PRIMARY activity
Why this matters:
- A “bakery” might be Manufacturing (311), Retail (445), or Food Service (722)
- A “software company” might be Information (51) or Professional Services (54)
- Cross-sector alternatives surface these boundary cases for human evaluation
Interpreting similarity scores:
| Score | Meaning |
|---|---|
| > 0.85 | Strong alternative - evaluate carefully |
| 0.75 - 0.85 | Consider if business spans both areas |
| 0.70 - 0.75 | Tangentially related |