Discussions
NetSuite AI Claude Custom Tool
Context
• Goal: Expose a Custom Tool to an external AI client (Claude) via NetSuite MCP.
• Project type: ACP (not SuiteApp).
• Account: tstdrvXXXXXX (SB).
• Client URLs tried:
– https://tstdrvXXXXXX.suitetalk.api.netsuite.com/services/mcp/v1/all
– https://tstdrvXXXXXX.app.netsuite.com/services/mcp/v1/all
What I built
• Script: vendormanagement_acp.js — SuiteScript 2.1 with u/NScriptType CustomTool.
• Schema: vendormanagement_schema_acp.json — method names match the JS exports.
• Tool XML: customtool_vendormanagement_acp.xml — correct scriptfile/rpcschema paths to /SuiteScripts, exposeto3rdpartyagents=T.
What I already tried
- Added u/NScriptType CustomTool; redeployed.
- Verified schema vs JS names; validated JSON (also tried adding "nullable": []).