netsuite-saved-search-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NSMCP_ROOT | No | Root directory for NetSuite exports. Defaults to current working directory if not set. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_exportsA | List every NetSuite saved-search export (.xls) in a directory under NSMCP_ROOT. Returns one ExportSummary per file with row count, header count, 0-indexed header_row, warning count, and detected date range. Files that can't be parsed even with lxml recovery come back with parse_error populated and the other fields None. Call this first when you don't already know which exports are available. |
| get_headersA | Return the column headers of a NetSuite saved-search export plus their spreadsheet column letters (A, B, ..., AA, AB) and the 0-indexed header_row. Call this before query_export or aggregate_export when you don't already know the column names — every other tool takes column names verbatim and errors on typos with a difflib suggestion. |
| query_exportA | Filter rows from a NetSuite export by a list of predicates (AND-combined; empty list returns everything). Predicate ops: eq/ne, gt/gte/lt/lte, contains/not_contains (case-insensitive by default), regex, date_range (ISO 8601 start/end, inclusive by default). Optionally project to a subset of columns via the |
| aggregate_exportA | Group rows from a NetSuite export by one or more columns and compute aggregations per group. Each Measure carries column, op (sum/count/avg/min/max), and optional alias for the output key (defaults to {op}_{column}). Groups are returned in first-seen order. Use this instead of query_export when you want summary statistics rather than raw rows. |
| categorize_by_memoA | Tag every row with a derived |
| detect_anomaliesA | Run three anomaly checks against a NetSuite GL-style export and return Findings: (1) zero_activity_period — month gaps inside the observed period range (HIGH); (2) ratio_anomaly — (account, period) total greater than 2x the account's median total across periods (MEDIUM); (3) document_count_variance — period row count more than 2 stdev from the mean across periods (MEDIUM). Each Finding includes severity, description, up to 10 supporting_rows, and total_supporting_count for the true un-truncated count. The period column should contain labels like 'Jan 2024', 'January 2024', or '2024-01'. |
| get_parse_warningsA | Return the parse warnings for the export at |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: informational (get_headers, list_exports, get_parse_warnings), data retrieval (query_export, aggregate_export), and analysis (categorize_by_memo, detect_anomalies). No overlap in functionality.
All tool names follow a consistent verb_noun pattern (e.g., get_headers, list_exports, query_export). No mixing of conventions or obscure abbreviations.
Seven tools is well-scoped for a saved-search MCP, covering listing, header inspection, querying, aggregation, categorization, anomaly detection, and parse warnings. No tools feel extraneous or missing.
The tool set provides a complete workflow for analyzing NetSuite saved-search exports: discover exports (list_exports), inspect headers (get_headers), fetch raw rows (query_export), compute summaries (aggregate_export), enrich with categories (categorize_by_memo), detect anomalies (detect_anomalies), and diagnose parsing issues (get_parse_warnings). No obvious gaps.