Now use NS MCP Tools directly in ChatGPT (Plus lic...
# ai-netsuite
m
Now use NS MCP Tools directly in ChatGPT (Plus license) 🙂 Tags: ns-mcp-tools, part-9
👍 1
👍🏻 1
e
Is setup generally the same as Claude? or did you have to do anything "hacky" to make it work?
m
Just enable
Developer mode
in ChatGPT under
Profile (Your Name) -> Settings -> Connectors -> Advanced settings
.
m
Worked for me. It created a ChatGPT specific integration record
m
Now you can also create Integration record with NS AI scope but it will only work with Authorization Code and not Client Credentials grant.
b
Can you share how you were able to get your custom tool to be available in chatGPT?
m
If you are using ChatGPT, defining which schema properties are nullable is required. The following sample is the JSON schema definition for the custom tools when using ChatGPT.
Copy code
{
  "tools": [
    {
      "name": "add",
      "description": "Add two numbers together",
      "inputSchema": {
        "type": "object",
        "properties": {
          "a": {
            "type": "number",
            "description": "First addend"
          },
          "b": {
            "type": "number",
            "description": "Second addend"
          }
        },
        "required": [
          "a",
          "b"
        ],
        "nullable": []
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "result": {
            "type": "number",
            "description": "Value of adding the two input numbers"
          },
          "error": {
            "type": "string",
            "description": "Error message if execution fails"
          }
        },
        "required": [
          "result"
        ],
        "nullable": [
          "error"
        ]
      },
      "annotations": {
        "title": "Add Numbers",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    }
  ]
}