On this page
get_device
Returns the allowed capabilities of a device with their input schemas, units and ranges, required approvals, control path, and each control capability's completion rule and verification rule. Call it before execute_device_action.
Arguments
From list_devices.
Returns: Device
manufacturer_cloud, plug_cloud or local_helper. See Smart plugs vs appliances.
Action or attribute id; read, set, execute or event. Only actions this agent may run are listed.
Validated strictly: undeclared fields are rejected.
per_command when the connector or the user requires approval for this action; else none.
What counts as success and which attribute is observed to prove it.
Conditions the device must satisfy, e.g. remote_start_allowed == true.
This device's most recent result for the action and when it last succeeded. A past failure does not remove the capability.
Request
await client.callTool({ name: "get_device", arguments: { device_id: "dev_8kq2" } });{
"device_id": "dev_8kq2",
"alias": "Counter AC",
"kind": "air_conditioner",
"model": "Samsung AR12",
"control_path": "manufacturer_cloud",
"connection_status": "online",
"capabilities": [
{ "id": "appliance.power.set", "version": 1, "kind": "set",
"input_schema": { "type": "object", "properties": { "power": { "type": "string", "enum": ["on", "off"] } }, "required": ["power"], "additionalProperties": false },
"approval": "none", "idempotent": true, "preconditions": [],
"completion_rule": "state_observed",
"verification": { "attribute": "power", "parameter": "power", "sources": ["manufacturer_state"], "freshness_ms": 120000 },
"last_execution": { "status": "succeeded", "at": "2026-10-31T23:46:10.000Z", "reason_code": null },
"last_verified_at": "2026-10-31T23:46:10.000Z" },
{ "id": "climate.set_temperature", "version": 1, "kind": "set",
"input_schema": { "type": "object", "properties": { "temperature": { "type": "number", "minimum": 16, "maximum": 30 }, "unit": { "type": "string", "enum": ["C"] } }, "required": ["temperature", "unit"], "additionalProperties": false },
"approval": "none", "idempotent": true, "preconditions": [], "completion_rule": "state_observed",
"verification": { "attribute": "target_temperature", "parameter": "temperature", "sources": ["manufacturer_state"], "freshness_ms": 120000 },
"last_execution": null, "last_verified_at": null },
{ "id": "current_temperature", "version": 1, "kind": "read", "input_schema": null, "approval": "none", "idempotent": true, "preconditions": [], "completion_rule": null, "verification": null, "last_execution": null, "last_verified_at": null }
]
}Errors
Errors before a command is created return isError: true with command_id: null. Problems after creation are a command status, not an error. Full list: Errors.
| Code | When | What to do |
|---|---|---|
| DEVICE_NOT_ACCESSIBLE | Unknown device, or not granted to this agent | Call list_devices; ask the user to grant access |
- DEVICE_NOT_ACCESSIBLE
- WhenUnknown device, or not granted to this agent
- What to doCall
list_devices; ask the user to grant access