Tool Types
This page documents the interfaces and types used for App tools integration with Mira AI. For a complete guide on implementing App tools, see AI Tools.ToolSchema
Interface defining the structure of a tool that a App can expose to Mira AI.ToolParameterSchema
Interface defining the structure of parameters that a tool accepts.ToolCall
Interface representing a call to a App tool from Mira AI.GIVE_APP_CONTROL_OF_TOOL_RESPONSE
The stringGIVE_APP_CONTROL_OF_TOOL_RESPONSE
is a special string that can be returned by your app to indicate that Mira should not respond to the user, and your app will respond directly.
Tool Configuration
Tools are defined in the devloper console. Go to console.mentra.glass/apps and edit your App, then look for the “AI Tools” section.
id
: Unique identifier for the tooldescription
: Human/AI-readable description of what the tool doesactivationPhrases
: Optional comma-separated list of phrases that might trigger this tool (although Mira may also trigger tools based on the context of the conversation)parameters
: Optional list of parameters the tool accepts
Parameter Properties
Each parameter definition has:type
: Data type of the parameter -"string"
,"number"
, or"boolean"
description
: Human/AI-readable description of the parameterrequired
: Whether the parameter is requiredenum
: Optional comma-separated list of allowed values for string parameters (if specified, Mira will choose one of these values)