get_record
Retrieve a single Gadget record by model and ID, with optional GraphQL field selection. Use it to fetch specific app data for queries.
Instructions
Get a single Gadget record by ID. Specify the model name, record ID, and fields to return.
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": {
"model": "<model>",
"id": "<id>"
},
"name": "get_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record ID | |
| model | Yes | Model name in camelCase, e.g. shopifyOrder, label | |
| fields | No | GraphQL field selection. Omit or use "*" for every scalar field; mix with relations like "* lineItems { edges { node { title } } }". |