Skip to main content
Glama
Zhuoli

macOS Tools MCP Server

by Zhuoli

battery_status

Check macOS battery charge level and status using system utilities. Retrieve current battery information for monitoring power usage.

Instructions

Show current battery information reported by pmset -g batt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Core handler function implementing the battery_status tool by executing `pmset -g batt` command.
    def battery_status() -> str:
        """Return the battery summary from ``pmset -g batt``."""
        return _run_command(["pmset", "-g", "batt"])
  • Registers the battery_status tool with FastMCP server, providing a thin wrapper that delegates to tools.battery_status().
    @app.tool(
        name="battery_status",
        description="Show current battery information reported by `pmset -g batt`.",
    )
    def battery_status(_: Context | None = None) -> str:
        return tools.battery_status()

Tool Definition Quality

Score is being calculated. Check back soon.

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/Zhuoli/mcp101'

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