salesforce_get_object_fields
Retrieve field definitions for any Salesforce object, including names, types, lengths, and picklist values, to understand data structure and constraints.
Instructions
Get field information for a Salesforce SObject.
This is a convenience method that returns just the fields array from the describe call, which is often what's needed.
Args: sobject: SObject type (e.g., 'Account', 'Contact')
Returns: List of field definitions, each containing: - name: API name of the field - label: Display name - type: Field type (string, picklist, reference, etc.) - length: Maximum length for text fields - nillable: Whether the field can be null - createable: Whether the field can be set on create - updateable: Whether the field can be updated - picklistValues: For picklist fields, available values - referenceTo: For reference fields, related object(s)
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>"
},
"name": "salesforce_get_object_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sobject | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |