We’re building an MCP server for LocoAware. It lets an AI agent such as Claude work with your devices and assets in plain language: set up a geofence, check where an asset is, or create an automation. Along with the tools, it ships with model context, which is the knowledge an agent needs to use those tools well. This article explains what that means and why we think it matters more for LocoAware than for most systems.
What an MCP server does
MCP stands for Model Context Protocol. It’s an open standard for connecting AI agents to other systems. An MCP server publishes a list of tools, and each tool comes with a description: what it does, what it needs from you and what it sends back. The agent reads those descriptions and decides which tools to call to get your job done.
That works well when each tool stands on its own. It works less well when the tools only make sense together.
Parts, and how to put them together
An API is a box of parts. A good MCP server labels every part clearly. The label on a screwdriver tells you it’s a screwdriver, what head it has, and that you turn it clockwise to tighten. What the label can’t tell you is which screw goes where. If you’re fixing into wood, you want a wood screw, and the wrong screw will go in and hold for a while before it fails. An LLM is pretty clever these days, BUT: a) why waste tokens on trial and error, and b) device management (especially our advanced rule management) has plenty of pitfalls, with real-world consequences if you get it wrong.
Model Context….. It’s the instructions for how the parts go together, which the descriptions of the individual parts don’t carry.
Why LocoAware needs more model context than most
Our API goes deep. You can program almost all of LocoAware through it, including abstract business rules about how devices behave at the edge: what a tracker reports, how often, and what counts as an event worth sending. Examples are, making a device report much less often if it reaches an end destination, making the device scan more often for BLE tags when it’s moving. The possibilities! They’re endless!!!
With an API like that, an agent can make a series of calls that each succeed and still end up with something that doesn’t work. The deeper the API, the more the agent needs to know about how it fits together before it acts., I’d tried to distill this message and I think this explains it best.
An example: temperature alerts on P4Ps (our basic presence tag)
Say someone asks their agent: “Send me an alert when these assets go over 8 °C.” The tools to do that exist. The agent can find the assets, create an automation and set the threshold, and every one of those calls will succeed.
The problem is that these assets have P4Ps attached, and P4Ps don’t have a temperature sensor. The automation would sit there and never fire, and everyone would assume the assets were being watched.
With model context, the agent knows which device is on each asset and what each device can measure. So instead of creating the alert, it tells you it can’t be done with these devices and what would be needed. FYI, Use an E1BL for temperature logging.
Other things model context covers
Device capabilities are one part of it. A few others we’re building in:
- Order of operations. Some things have to exist before others can use them. A zone has to exist before a rule can refer to it, and a device has to be attached to an asset before that asset’s events make sense.
- What a setting costs. A report interval that’s fine on a mains-powered gateway can flatten a battery-powered tracker in a short time. The agent should know the difference and warn you.
- Which data to build on. A rule that reacts to every raw Bluetooth sighting will fire on ghost reads. Building it on debounced events avoids that. Our article on why we have four data feeds explains the difference.
Lea: putting the context into the language
Lea, short for language of edge applications, is a domain-specific language we’ve been developing for writing rules in LocoAware. It compiles to JSON, which is what LocoAware actually runs. The LEA Language is about to become licensable very soon (to be open, it’s linked to our eco-system). Ssssh don’t tell anyone, but so is our whole firmware model that runs the edge intelligence so if you are a device manager, and you want world class firmware with real edge AI rules and a bad ass device management platform, speak to us.
With Claude able to write JSON directly, it’s fair to ask whether a language in between is still worth having. We’ve asked ourselves the same question.
What we like about Lea is that the model context lives in the compiler. Lea knows what each device can do, so if you ask it for a temperature rule on a device that doesn’t log temperature, it won’t compile, and the error says why. An agent can overlook a line in a tool description. It can’t get past a compile error, so the mistake is fixed before anything reaches a device.

The same stance as our data feeds
With our data feeds, we took an opinionated view of the data so you don’t spend your time on noise and false positives. Model context is the same idea applied to agents. We know how LocoAware fits together, so we put that knowledge where your agent can use it, and you can concentrate on what you want to happen.
The LocoAware MCP server is coming soon. If you’d like to try it early, get in touch.