Get Resource
get_resourceRetrieve a resource by ID from a JSON:API service, optionally including related resources inline to avoid additional API calls.
Instructions
Get a specific resource by its ID from a JSON:API service.
Use include when related resources should be returned inline.
If available, call the get_schema tool first to discover valid resource types, attributes, and relationships.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Comma-separated relationship names to include inline. Use this whenever the answer needs data from related resources: it replaces relationship references with full nested included resources and avoids a second API call. Example: to find devices for an installation, call resource_type="devices", filter={"installation:name": "Plant A"}, include="installation" so each device result includes the matched installation details. | |
| resource_id | Yes | Resource ID. | |
| resource_type | Yes | Resource type name from get_schema, e.g. "devices" or "plants". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | Yes |