Skip to main content
Glama
nuxnik

Busy Bar MCP Server

by nuxnik

get_smart_home_switch_state

Check the current smart home switch state and startup behavior on the Busy Bar device to confirm relay activity and prevent unexpected activation after power events.

Instructions

Retrieve smart home switch (output) state from the Busy Bar device.

This tool queries GET /api/smart_home/switch via `SmartHomeApi.get_smart_home_switch_state()`
to read the current relay/driver output configuration.

Returns a SmartHomeSwitchState object containing:
    - state (str): Current switch/output state (e.g., "on", "off")
    - startup (str | null): Startup behavior — what the switch does on power-on
        (e.g., "restore", "on", "off", "unknown")

Use case:
    Check whether a smart home relay is currently active or inspect its configured
    startup behavior to avoid unexpected device activation after power events.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the burden. It discloses that the tool reads via a GET request, returns a SmartHomeSwitchState object with 'state' and 'startup' fields, and explains the meaning of each field. This is sufficient behavioral transparency for a simple read-only getter, though it does not mention potential errors or authorization requirements.

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?

The description is well-structured with sections for the action, API call, return values, and use case. It is slightly verbose, including the API method name and a multi-line return description, but every sentence adds useful context. It is not excessively long for the level of detail provided.

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

Completeness5/5

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

Given that there is no output schema, the description fully explains the return object's fields and their types/examples. The use case provides practical context. The tool is simple with no parameters, and this description covers all essential information for an agent to invoke it correctly.

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?

This tool has zero parameters, so there is nothing for the description to add beyond what the input schema already shows. The baseline of 4 for zero-parameter tools is appropriate because the description does not need to explain parameter semantics.

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

Purpose5/5

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

The description clearly states the tool retrieves the smart home switch (output) state from the Busy Bar device, using a specific verb and resource. It also distinguishes itself from sibling tools by focusing specifically on the switch state, not pairing status or other device attributes.

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?

The description includes a 'Use case' section explaining when to use this tool: to check if a smart home relay is active or inspect startup behavior. However, it does not explicitly mention when not to use it or name specific alternatives, which would be needed for a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nuxnik/busybar-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server