:clipboard: Anthropic Messages API Call with Ext T...
# general
m
📋 Anthropic Messages API Call with Ext Tool Calling Summary Request:
POST <https://api.anthropic.com/v1/messages>
Headers:
content-type: application/json
x-api-key: <YOUR_ANTHROPIC_API_KEY>
anthropic-version: 2023-06-01
anthropic-beta: mcp-client-2025-04-04
Body (raw):
{
"model": "claude-sonnet-4-20250514",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "I want customer email, name, and phone details against id <ID>"
}
],
"mcp_servers": [
{
"type": "url",
"name": "ns-mcp-tools",
"url": "https://<ACCOUNT_ID>.<http://suitetalk.api.netsuite.com/services/mcp/v1/all|suitetalk.api.netsuite.com/services/mcp/v1/all>",
"authorization_token": "Bearer <YOUR_OAUTH_ACCESS_TOKEN>"
}
]
}
Response (trimmed):
{
{
"type": "text",
"text": "Here are the customer details for ID <ID>:\n\n**Customer ID:** <ID>\n**Name:** <NAME>\n**Email:** <EMAIL>\n**Phone:** Not provided (null)\n**Company Name:** Not provided (individual customer)\n\nThe customer appears to be an individual customer (not a company) with the customer name \"<NAME>\". The email address on file is <EMAIL>, but no phone number has been recorded for this customer."
}
}
}
Note: You must manually complete the OAuth 2.0 flow in NetSuite using the Claude AI Integration record (auto-created upon connector setup) to obtain your Bearer token. Then include that token in the
authorization_token
field when invoking the API from any client. Tags: ns-mcp-tools, part-3
❤️ 2