Reference
Errors
Three kinds of failure, in three places: HTTP errors before a tool runs, tool errors before a command exists, and command statuses after it does.
On this page
Tool errors
Returned as isError: true with structuredContent.command_id: null and an error.code. Checks run in this order: device access → action permission → capability support → operator policy → parameter validation. Nothing has been sent to a manufacturer when you get one of these.
| Code | When | What to do | Message |
|---|---|---|---|
DEVICE_NOT_ACCESSIBLE | Unknown device, or not granted to this agent | Call list_devices; ask the user to grant access | The requested device was not found or is not accessible from this connection. |
PERMISSION_DENIED | Device is granted, this action is not (or the grant was revoked) | Ask the user to allow the action in the dashboard | This connection is not allowed to run the requested capability on this device. |
ACTION_NOT_SUPPORTED | The device can't do this | Check get_device for the allowed capabilities | This device does not support the requested capability. |
POLICY_BLOCKED | Brand, region or action is halted by the operator, or the connection is disconnected | Tell the user; nothing to retry until the policy or connection changes | This action is currently blocked by policy or the connection is disconnected. It cannot be run right now. |
INVALID_PARAMETERS | Fails the action's schema or range, or has fields the schema does not declare | Fix and resend with a new key | The request parameters have an invalid format or are out of range. |
REQUEST_KEY_CONFLICT | Same key, different device, action or parameters | Use a new request_key | A different command already exists with the same request_key. Use a new request_key. |
COMMAND_NOT_ACCESSIBLE | Unknown command or not yours | Check the command_id | The requested command was not found or is not accessible from this connection. |
QUOTA_EXCEEDED | All device runs included in the current subscription period are used | Reads still work; the owner sees usage and the period end under Settings & billing. See Quotas & limits | This account has used all device runs included in its current subscription period. Check usage and the period end on the Settings & billing page. State reads still work. |
SUBSCRIPTION_REQUIRED | The owner's trial or subscription has ended (or never started) | Tell the owner; runs resume once a plan is active. Cached state and run history still work | This account has no active trial or subscription, so new device runs are declined. The owner can review the subscription on the Settings & billing page. Past runs, cached state and run history still work. |
DEVICE_INACTIVE | The owner hasn't activated this device for use | Ask the owner to activate it under My devices (plans limit how many devices are active) | This device is not activated for use. The owner can activate it under My devices in the console (plans limit how many devices are active at once). |
SCHEDULE_INVALID | Time in the past, bad weekday, end date before the first run, or no runs left | Fix the schedule definition | The schedule time or recurrence is invalid. |
TIMEZONE_REQUIRED | No IANA timezone, or an abbreviation like KST | Ask the user for their timezone (e.g. Asia/Seoul) and retry | The timezone could not be determined. Ask the user for their IANA timezone (e.g. Asia/Seoul) and retry with timezone set. The server timezone is never used as a fallback. |
SCHEDULE_NOT_ACCESSIBLE | Unknown schedule or not created by this agent | Check the schedule_id with list_schedules | The requested schedule was not found or is not accessible from this connection. |
CONSENT_REQUIRED | The owner hasn't agreed to share device information with this service, or withdrew that consent | Show the owner the consent_url from the response; they review it in the console (sign-in required). Do not retry in a loop, and never pass consent as a tool argument — it is not accepted | The owner has not yet agreed to share device information with this service, or has withdrawn that consent. No device information is available until the owner reviews it in the Reachthings console (consent_url). You cannot agree on the owner's behalf. |
DEVICE_NOT_ACCESSIBLE- WhenUnknown device, or not granted to this agent
- What to doCall
list_devices; ask the user to grant access - MessageThe requested device was not found or is not accessible from this connection.
PERMISSION_DENIED- WhenDevice is granted, this action is not (or the grant was revoked)
- What to doAsk the user to allow the action in the dashboard
- MessageThis connection is not allowed to run the requested capability on this device.
ACTION_NOT_SUPPORTED- WhenThe device can't do this
- What to doCheck
get_devicefor the allowed capabilities - MessageThis device does not support the requested capability.
POLICY_BLOCKED- WhenBrand, region or action is halted by the operator, or the connection is disconnected
- What to doTell the user; nothing to retry until the policy or connection changes
- MessageThis action is currently blocked by policy or the connection is disconnected. It cannot be run right now.
INVALID_PARAMETERS- WhenFails the action's schema or range, or has fields the schema does not declare
- What to doFix and resend with a new key
- MessageThe request parameters have an invalid format or are out of range.
REQUEST_KEY_CONFLICT- WhenSame key, different device, action or parameters
- What to doUse a new
request_key - MessageA different command already exists with the same request_key. Use a new request_key.
COMMAND_NOT_ACCESSIBLE- WhenUnknown command or not yours
- What to doCheck the
command_id - MessageThe requested command was not found or is not accessible from this connection.
QUOTA_EXCEEDED- WhenAll device runs included in the current subscription period are used
- What to doReads still work; the owner sees usage and the period end under Settings & billing. See Quotas & limits
- MessageThis account has used all device runs included in its current subscription period. Check usage and the period end on the Settings & billing page. State reads still work.
SUBSCRIPTION_REQUIRED- WhenThe owner's trial or subscription has ended (or never started)
- What to doTell the owner; runs resume once a plan is active. Cached state and run history still work
- MessageThis account has no active trial or subscription, so new device runs are declined. The owner can review the subscription on the Settings & billing page. Past runs, cached state and run history still work.
DEVICE_INACTIVE- WhenThe owner hasn't activated this device for use
- What to doAsk the owner to activate it under My devices (plans limit how many devices are active)
- MessageThis device is not activated for use. The owner can activate it under My devices in the console (plans limit how many devices are active at once).
SCHEDULE_INVALID- WhenTime in the past, bad weekday, end date before the first run, or no runs left
- What to doFix the schedule definition
- MessageThe schedule time or recurrence is invalid.
TIMEZONE_REQUIRED- WhenNo IANA timezone, or an abbreviation like KST
- What to doAsk the user for their timezone (e.g.
Asia/Seoul) and retry - MessageThe timezone could not be determined. Ask the user for their IANA timezone (e.g. Asia/Seoul) and retry with timezone set. The server timezone is never used as a fallback.
SCHEDULE_NOT_ACCESSIBLE- WhenUnknown schedule or not created by this agent
- What to doCheck the
schedule_idwithlist_schedules - MessageThe requested schedule was not found or is not accessible from this connection.
CONSENT_REQUIRED- WhenThe owner hasn't agreed to share device information with this service, or withdrew that consent
- What to doShow the owner the
consent_urlfrom the response; they review it in the console (sign-in required). Do not retry in a loop, and never pass consent as a tool argument — it is not accepted - MessageThe owner has not yet agreed to share device information with this service, or has withdrawn that consent. No device information is available until the owner reviews it in the Reachthings console (consent_url). You cannot agree on the owner's behalf.
Reason codes
Problems after a command exists are not errors: the command ends in rejected, failed, cancelled, expired or outcome_unknown with one of these reason_code values. See Command lifecycle.
| reason_code | Meaning |
|---|---|
approval_denied | Approval denied |
permission_revoked | Access was revoked |
policy_blocked | Blocked by policy |
precondition_not_met | Precondition not met |
provider_failed | Manufacturer reported a failure |
connector_failed_before_send | Connector error before sending |
user_cancelled | Cancelled by you |
approval_expired | Approval expired |
dispatch_expired | Not sent in time |
send_outcome_unknown | Sent, but the result is unknown |
verification_timeout | Verification timed out |
evidence_conflict | Evidence conflict |
approval_denied- MeaningApproval denied
permission_revoked- MeaningAccess was revoked
policy_blocked- MeaningBlocked by policy
precondition_not_met- MeaningPrecondition not met
provider_failed- MeaningManufacturer reported a failure
connector_failed_before_send- MeaningConnector error before sending
user_cancelled- MeaningCancelled by you
approval_expired- MeaningApproval expired
dispatch_expired- MeaningNot sent in time
send_outcome_unknown- MeaningSent, but the result is unknown
verification_timeout- MeaningVerification timed out
evidence_conflict- MeaningEvidence conflict
HTTP errors
| Status | When | What to do |
|---|---|---|
| 401 | No token, expired token, wrong audience or issuer. The response carries WWW-Authenticate: Bearer resource_metadata=… | Run the OAuth flow again; MCP SDKs do this for you |
| 403 | Token is valid but the grant was revoked, or the scope does not cover the tool | Ask the user to re-add the agent, or request the missing scope |
| 404 | Unknown path | Use POST ${esc(deps.public_url)}/mcp |
| 429 / 5xx | Manufacturer rate limits surface as connector_error inside tool results, not as HTTP errors; HTTP 5xx means Reachthings itself failed | Retry reads; never resend a control command without its original request_key |
- 401
- WhenNo token, expired token, wrong audience or issuer. The response carries
WWW-Authenticate: Bearer resource_metadata=… - What to doRun the OAuth flow again; MCP SDKs do this for you
- 403
- WhenToken is valid but the grant was revoked, or the scope does not cover the tool
- What to doAsk the user to re-add the agent, or request the missing scope
- 404
- WhenUnknown path
- What to doUse
POST ${esc(deps.public_url)}/mcp
- 429 / 5xx
- WhenManufacturer rate limits surface as
connector_errorinside tool results, not as HTTP errors; HTTP 5xx means Reachthings itself failed - What to doRetry reads; never resend a control command without its original
request_key