Best practices
Safety
- Keep tool-call confirmations on for state-changing tools. Your MCP client asks before each call by default; that human-in-the-loop matters most for
thinr_resource_call(commands, rollouts),thinr_resource_delete, andthinr_resource_createor_updateon typedevice_fs. - Read the plan before confirming.
execon several devices, playbook runs on several devices and rollouts answer the devices they would reach first, and only run when the call is repeated withconfirm: true. Check that list before the assistant confirms. - Use a dedicated profile for agent sessions, backed by a token with narrower permissions, and select it with
THINR_PROFILEin the client config or theprofileargument per call. Revoking that one token cuts the agent off without touching your own access. - Serve read-only when you only need answers.
thinr mcp --read-onlyregisters a server that only describes, lists, reads and runs read-only actions: an assistant on it can diagnose but never change anything. - Prefer playbooks for changes at scale. The
rolloutaction of typeproduct_playbookgives you check mode, batches and a failure kill-switch; a bareexecacross the fleet has none of that.
Effectiveness
- Let the assistant describe first.
thinr_resource_describewith a type answers its ids, bodies, actions and ready-to-send examples; a call after that rarely fails. - Name the device or product in your prompt. "Check the disk on store-14" beats "check disks" followed by a fleet-wide scan; the assistant passes
ids {"device": "store-14"}and saves a discovery round-trip. - Search instead of listing everything.
thinr_resource_listtypedevicetakessearch(id or name) andfilter(product, asset group, labels), so "list the EU gateways" maps to one call instead of listing everything and filtering in context. - Fan out in one call, not loops.
execwithproduct,group,devicesorallruns a command across the fleet with per-device results and a summary. - Validate playbooks before running them. The
validateaction catches schema errors cheaply; thenrunwith check mode against one device before any rollout. - History beats polling. For "what happened overnight",
thinr_resource_listtypebucket_dataover the monitoring bucket and typealarm_instanceanswer directly, without sampling devices one by one.
Operating patterns that work well
- Alarm triage: "Anything firing? For each alarm, look at the device and tell me the likely cause." (
alarm_instance→ the device'smonitoringresource → read-only diagnostics withexec.) - Incident drill-down: "Why does store-14 keep restarting the app?" (logs via
exec, config viadevice_fs, history viabucket_data.) - Capability building: "Expose the battery level as a resource on every gateway" (a
product_script, then a dashboard metric and alarm on top). - Staged change: "Update nginx config on the canary, verify, then roll out" (a
product_playbookrun with check mode on one device, then itsrolloutaction).