Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_homeassistant_light_control

Control one explicitly specified light entity on customer-owned Home Assistant via authorized bearer token, for routine on/off only. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cloud_host": "<cloud_host>",
      "entity_id": "<entity_id>",
      "action": "<action>"
    },
    "name": "api_homeassistant_light_control"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesExactly on or off
entity_idYesLight entity id matching light.[a-z0-9_]+
cloud_hostYesCustomer remote hostname ending .ui.nabu.casa

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true and idempotentHint=false, so the description is not carrying the safety burden alone. It still adds genuinely useful context the annotations do not: bearer-token authorization, a 0.01 USDC charge per call on Base x402, and the X-Provider-Key header for customer-owned credentials. It does not explain what a call returns or how failures/charges on failure are handled.

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?

Two sentences, both front-loaded with the operation first and the payment/auth caveats second. Nothing is redundant, though the second sentence packs billing, network, and header details into one dense clause that could be split for scannability.

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 three required params and no output schema, the definition covers the essentials of scope, auth, and cost. It leaves unclear what a successful call returns (state confirmation?) and whether repeated calls are charged again, which matters given the non-idempotent hint and per-call fee.

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

Parameters3/5

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

Schema description coverage is 100% and all three parameters are individually documented (action, entity_id pattern, cloud_host domain), so the baseline is 3. The description's phrase 'one explicitly specified light entity' reinforces the single-entity constraint but adds no format, syntax, or validation detail beyond what the schema already states.

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?

States a specific verb ('Control') and a tightly bounded resource ('one explicitly specified light entity'), plus the scope limit 'routine on/off only', which implicitly separates it from the broader sibling api_homeassistant_entity. It stops short of naming that sibling or stating that non-light domains belong elsewhere, so an agent must infer the split.

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

Usage Guidelines3/5

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

'for routine on/off only' implies the intended use case, and the cost/billing note signals this is a paid, transactional call. However, there is no explicit when-not-to-use statement, no pointer to api_homeassistant_entity for sensors or other domains, and no mention of prerequisites such as a valid bearer token being pre-configured.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources