ns_runReport
|
Tool Description |
Runs a report in your NetSuite account and displays the results. You can run ns_listAllReports to obtain the list of available standard and custom reports, and their corresponding IDs. Before running any report, this tool first calls ns_listAllReports to check if the report exists and find out which parameters are allowed or required to run the report. This tool can also call any of the following helper tools to check for valid IDs or available values: If the required report filters or options have not been specified in the request, the AI client may use the Report Filters MCP App to display the available values for those fields so you can review and choose a value before the report is run.
Note:
Required date inputs vary by report. If a date is missing, the AI client may return an error, make assumptions, or ask you for more information, and its response may not always be predictable. Including all relevant date information in your request can help the AI process your report more effectively. |
|
Annotation |
Run Report |
Properties
|
Property |
Type |
Required or Optional |
Description |
|---|---|---|---|
|
|
number |
Required |
The internal ID of the NetSuite report to run. |
|
|
string |
Conditionally required |
Start date for the report. This date is required for reports that use from-to dates, and optional for reports that use as-of dates. |
|
|
string |
Required |
End date for the report. |
|
|
number |
Conditionally required |
The internal ID of the subsidiary you want to filter the results by. This parameter is required if both of these conditions are true:
You can run the ns_getSubsidiaries tool to get a list of subsidiaries in your account. The list shows:
For reports that support consolidation, you can specify a negative internal ID in this parameter. |
|
|
number |
Optional |
The internal ID of the accounting context you want to filter the report results by. This parameter is valid only when the accounting context filter is available for the report and the NetSuite account has accounting contexts. You can run the ns_getAccountingContexts tool to get a list of accounting contexts in your account. |
|
|
number |
Optional |
The internal ID of the primary accounting book you want to filter the report results by. This parameter is valid only when the accounting book filter is available for the report and the NetSuite account has accounting books. You can run the ns_getAccountingBooks tool to get a list of accounting books in your account. |
|
|
number |
Conditionally required |
The internal ID of the second accounting book you want to filter the report results by. This parameter is required when the report has two accounting book filters (Multi-Book comparison reports) and the NetSuite account has accounting books. You can run the ns_getAccountingBooks tool to get a list of accounting books in your account. |
|
|
number |
Conditionally required |
The internal ID of the nexus (tax jurisdiction) you want to filter report results by. This parameter is required when all the following conditions are true:
You can run the ns_getNexusIds tool to get a list of nexuses in your account. |
|
|
boolean |
Optional |
Enables or disables the period end transaction report mode. This parameter is valid only if the period end mode switch is available for the report. |
|
|
string |
Optional |
The column grouping for the report. This parameter is valid only when column grouping is available for the report. |
|
|
string |
Optional |
Specifies whether the report uses cash basis, accrual basis, or nexus-based tax handling. This parameter is valid only when the report supports cash basis reporting. Valid values are:
|
Permissions
There are no specific permission requirements to see this tool in the AI client. However, your ability to run reports depends on the permissions assigned to your NetSuite role.