preview_fetchxml_query
Preview the first FetchXML query result with the same state and filter logic as a full query, returning the effective query and paging details without implying a complete result set.
Instructions
Preview the first result using the same FetchXML state/filter logic as query_by_fetchxml. Returns effective query and paging information without claiming the sample is a full result set.
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": {
"fetch_xml": "<fetch_xml>"
},
"name": "preview_fetchxml_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fetch_xml | Yes | The FetchXML string to preview | |
| state_mode | No | legacy preserves valid implicit statecode=0 filtering; all adds no state filter; values uses state_values validated against this table. | |
| state_values | No | Explicit numeric state values; requires state_mode=values. | |
| formatted_values | No | Include formatted labels and display values returned by CRM. | |
| environment_profile | No | Optional named environment profile for this call; omit to use the configured default. |