Create a Salesforce record
sf_create_recordCreate a Salesforce sObject record and get its new record Id. Check createable fields with describe first for required field mapping.
Instructions
Create a single sObject record (POST /sobjects/{SObject}). Returns the new record Id. Use sf_describe_object first to check which fields are createable and required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sobject": "<sobject>",
"fields": "<fields>"
},
"name": "sf_create_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Field name -> value map, e.g. { "Name": "Acme", "Industry": "Technology" }. Use sf_describe_object to discover field names and types. | |
| sobject | Yes | API name of the sObject, e.g. "Account", "Contact", or "My_Object__c". | |
| tooling | No | Create via the Tooling API instead (for metadata records). Default false. |