Has anyone played around with the new Custom Tool ...
# suitescript
e
Has anyone played around with the new Custom Tool Script Type? https://system.app.netsuite.com/app/help/helpcenter.nl?fid=t_section_0724092648_1.html I'm following this guide, but it doesn't appear to work
m
Hi!! I’ve been trying but I can’t get it to work either. I deployed the object to the account successfully. It doesn’t show on in the script list, nor does it show as a tool in Claude. I’m also only seeing a single tool in Claude for run suiteql…
e
If I had to guess who would be the first to play around with it... I would have guessed you 🙂
🙂 1
💯 1
But same - successful deployment using SDF, but nothing shows in the list of Scripts in NetSuites UI
m
Are you able to get multiple tools to show in Claude?
e
No- but I think that's based on permissions. Let me grab this article
m
That’s what I’m thinking… I don’t know what permission it would be though
image.png
I think the Role that needs view permission for Customers in order to use getCustomerDetails
and view permissions on Item Record in order to use getItemDetails... etc.. (I think)
Oh wait - maybe this is needed too:
(sorry for the tiny screenshot)
m
I went through and added a ton of permissions and am getting getItemDetails and checkInventoryLevels now
e
Nice! If you feel comfortable sharing which permissions you added, it would help me (once I get to that step)
m
So that does look to be connected to roles but it’s not clear what ones. I have full customer/vendor/partner list permissions and the customer one still isn’t showing up. I went through and selected every option on the report and list section. not ideal…
e
Does your Script show up in this list?
m
Nope
e
@Matt Bernstein I wonder if you remove the
Copy code
<permissions>
    <permission>
            <permkey>LIST_EMAILTEMPLATE</permkey>
            <permlevel>FULL</permlevel>
    </permission>
    <permission>
            <permkey>ADMI_CRMLIST</permkey>
            <permlevel>VIEW</permlevel>
    </permission>
  </permissions>
from the XML file and redeploy it... If that would allow those new "functions" to show in Claude. Or alternatively, if you assigned the role the LIST_EMAILTEMPLATE permission to full and the CRM LIST permission to VIEW
Feels like the <premissions> attribute in the XML file dictates if the custom functions show in Claude
m
I was just starting to try that
👍🏻 1
e
lmk how it goes. I'm still working through a bunch of compliance paperwork to get cleared to actually connect Claude to our NS instance
m
I don’t think exposeto3rdpartyagents is working correctly. In my log I’m seeing
Copy code
WARNING -- One or more potential issues were found during custom object validation. (customtool_test1)
Details: The exposeto3rdpartyagent object field is invalid or not supported and will be ignored.
Then when I import it directly from netsuite, the value is
<exposeto3rdpartyagents>F</exposeto3rdpartyagents>
That’s it! The docs use
<exposeto3rdpartyagent>T</exposeto3rdpartyagent>
but the actual value is plural
<exposeto3rdpartyagents>T</exposeto3rdpartyagents>
e
Hmm, yeah the plural seems to take. I tried with that set to T and set to F (one article says to use F for ACP) But still no script showing in my environment
m
The script record isn’t showing but it appears in Claude
e
oh sick. That's really all that matters then
1
Can you use Claude to reverse a string / or add 2 numbers now?
m
yes!
e
Dang. This is going to be powerful. Did you use T or F for the
exposeto3rdpartyagents
?
m
T
It looks like custom records can’t be set as a minimum permission. My deployment fails every time
Copy code
<permission>
    <permkey>[scriptid=customrecord_record_id]</permkey>
    <permlevel>VIEW</permlevel>
</permission>
a
@ericbirdsall set F to ACP when you want ro undeploy, NS doesn’t not support this customagenttool from UI.
@ericbirdsall / @Matt Bernstein, I can see these here.
m
Those are the same I'm seeing. The docs say there should be more, so I'm confused on that. We may just have to wait until they have more docs
a
yeah, docs seems to be limited and have typos as well. I can see 9 tools in my connector, I added most of the permissions to the role, but list in docs says 13 predefined tools, maybe few more permissions 🙂
g
@ericbirdsall @Matt Bernstein @Abdul Qadeer I'm able to see 15 tools (all 13 from the MCP Tools SuiteApp and 2 from the sample code). Just for testing purposes, I customized the standard CFO role (41) and added three permissions: • Log in using OAuth 2.0 Access Tokens (Full) • MCP Server Connection (Full) • CRM Lists (View) This is what I see in Claude:
🙌 1
🙌🏻 1
a
you should have different set of permissions probably for that role.
g
for sure, but this was just for testing (in a demo account). Now that I can see all the tools, I can pare back the permissions and determine the minimum permission requirements
👍 1
👍🏻 1
e
All good info here. Looks like all the tools (with customs) are possible. But it's not clear which permissions are needed for each tool.
For anyone else looking into this- this suiteanswers article is a little more buried (not linked from any of the other Custom Tool articles) This has step by step instructions on how to create / deploy the Custom Tools. Keep in mind the Typo mentioned above by @Matt Bernstein on the SDF XML netsuite provides This line is wrong:
<exposeto3rdpartyagent>T</exposeto3rdpartyagent>
It should actually be
agents
(plural):
<exposeto3rdpartyagents>T</exposeto3rdpartyagents>