Skip to main content
Glama

ai_status

Check relay and editor connection health, verify the server against a live App Inventor editor, inject the page-relay snippet, or read the current view, selection, and components.

Instructions

Connection and health. action=status shows relay/editor state; selftest verifies the whole server against the live editor; inject returns the snippet that attaches the page relay; state reads the live editor view/selection/components.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ai_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoRelay port for inject (default 8766)
actionNoWhat to do

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It does disclose return-oriented behavior for inject (returns a snippet) and the scope of selftest (whole server against the live editor), which implies it touches the live editor. However, it does not say whether selftest mutates anything, whether actions fail without a live editor or relay, what 'relay' means operationally, or what each action returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the domain front-loaded and one clause per action; nothing is redundant. It is slightly run-on and the leading fragment 'Connection and health' is a noun phrase rather than a statement of the tool's function, which costs a little clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only two optional parameters and no output schema, the description still leaves gaps an agent needs: what happens when action is omitted (no required params), what each action returns in shape, and what environment is required for selftest/inject/state to succeed. It is adequate for choosing an action but not for predicting results or failure modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema's generic 'What to do' enum label by defining the meaning and effect of each of the four action values. The 'port' parameter's meaning is left entirely to the schema, but the enum semantics are genuinely enriched.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the domain ('Connection and health') and then spells out all four action values with a distinct verb+object for each (status shows state, selftest verifies server against live editor, inject returns an attachment snippet, state reads editor view/selection). An agent can tell which action maps to which capability. It does not explicitly differentiate from siblings such as ai_test or ai_validate, though the resource is clearly different.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

By defining each action, the description gives implicit selection guidance: use selftest to verify end-to-end, status for relay/editor state, inject to obtain the page-relay snippet, state to read the live editor. It stops short of explicit when-not guidance and prerequisites (e.g. whether the editor must be running, whether inject must precede state).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.