list_records
Retrieve and filter records from a specified resource URI, set a maximum number of results, and sort data using customizable criteria for structured querying.
Instructions
List records from a resource
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filter | No | Filter criteria | |
maxRecords | No | Maximum number of records to return. Defaults to 100. | |
resourceUri | Yes | URI of the resource to query | |
sort | No | Specifies how to sort the records |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"filter": {
"additionalProperties": {},
"description": "Filter criteria",
"type": "object"
},
"maxRecords": {
"description": "Maximum number of records to return. Defaults to 100.",
"type": "number"
},
"resourceUri": {
"description": "URI of the resource to query",
"type": "string"
},
"sort": {
"description": "Specifies how to sort the records",
"items": {
"additionalProperties": false,
"properties": {
"direction": {
"description": "Sort direction. Defaults to asc (ascending)",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"field": {
"description": "Field name to sort by",
"type": "string"
}
},
"required": [
"field"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"resourceUri"
],
"type": "object"
}