Skip to main content
Glama
ober37

AC Infinity MCP

set_port_mode

Switch a port to any AC Infinity automation mode, from OFF to VPD to timer-based schedules. Provide the device ID and port number to configure.

Instructions

Switch a port to a specific automation mode.

All 8 AC Infinity automation modes are supported. Mode-specific parameters are required for CYCLE, SCHEDULE, TIMER_TO_ON, and TIMER_TO_OFF modes. Uses read-before-write. Defaults to dry_run=True.

For setting automation targets alongside the mode, prefer the dedicated tools: set_vpd_automation (VPD mode), set_temperature_automation and set_humidity_automation (AUTO mode).

Args: device_id: Device code from discover_devices (e.g. "C58ZA"). port: 1-based port number. mode: One of OFF, ON, AUTO, VPD, CYCLE, SCHEDULE, TIMER_TO_ON, TIMER_TO_OFF. dry_run: If True (default), returns the payload without writing. cycle_on_seconds: CYCLE mode — seconds the port runs per cycle. Required for CYCLE. cycle_off_seconds: CYCLE mode — seconds the port is off per cycle. Required for CYCLE. schedule_start: SCHEDULE mode — start time as "HH:MM" in device local time. Required for SCHEDULE. schedule_end: SCHEDULE mode — end time as "HH:MM" in device local time. Required for SCHEDULE. timer_duration_seconds: TIMER_TO_ON / TIMER_TO_OFF — countdown duration in seconds. Required for TIMER_TO_ON and TIMER_TO_OFF.

Returns: JSON with action, device_id, port, mode, dry_run, controller_type, sent, and payload (when dry_run=True). On failure returns {"error": "..."}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_idYes
portYes
modeYes
dry_runNo
cycle_on_secondsNo
cycle_off_secondsNo
schedule_startNo
schedule_endNo
timer_duration_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full weight. It discloses the use of read-before-write and the default dry_run=True, and explains the return format. While it does not cover permissions or rate limits, these are not expected for this tool. The behavioral details are sufficient for safe invocation.

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

Conciseness5/5

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

The description is well-structured: a one-line summary, followed by important notes (supported modes, read-before-write, dry run default, alternative tools), then a clear args listing with each parameter's description and conditions. No extraneous text; every sentence adds value.

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?

Despite 9 parameters and conditional requirements, the description covers all aspects: purpose, usage notes, parameter semantics (including which modes require which parameters), and return structure. The presence of an output schema is noted, but the description already explains the return format. This is a complete and self-contained documentation.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It provides thorough explanations for each parameter, including conditional requirements for specific modes (e.g., cycle_on_seconds required for CYCLE, schedule_start/end required for SCHEDULE). This fully clarifies the meaning and constraints beyond the raw schema.

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 opens with a clear verb and resource: 'Switch a port to a specific automation mode.' It lists all 8 modes and explicitly distinguishes from dedicated tools like set_vpd_automation, set_temperature_automation, and set_humidity_automation, making its purpose unambiguous.

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 states when to use this tool and recommends alternative specialized tools for VPD, AUTO modes. However, it does not explicitly mention when not to use it (e.g., for simple on/off actions, where set_port_on/set_port_off may be more appropriate). This is a minor gap in comprehensive guidance.

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/ober37/ac-infinity-mcp'

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