Skip to main content
Glama
chrischall

onehome-mcp

by chrischall

Switch which registered OneHome session is active

onehome_set_active_session
DestructiveIdempotent

Set a registered session as active to override MLS-suffix routing errors. Provide session_id so requests without ~MLS or with matching MLS resolve to the correct session.

Instructions

Force a specific registered session to be the active one. Useful when MLS-suffix routing picks the wrong session (e.g. two shares in the same MLS, a free-text search across multiple MLSes, or a listing without a ~MLS suffix). Pass a session_id previously returned by onehome_set_auth or surfaced in onehome_get_session_context. The active session answers any request without a ~MLS-suffixed listing id AND any ~MLS request whose MLS matches its own; a ~MLS id matching several other sessions errors until you pick one here.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesSession id from a previous `onehome_set_auth` response, or one of the ids listed by `onehome_get_session_context`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.13.1

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses the operational semantics of 'active' — the active session answers all non-`~MLS` requests and any `~MLS` request matching its own MLS, while ambiguous `~MLS` ids error until selection. This routing behavior is exactly the kind of context annotations cannot convey. No contradiction with annotations.

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?

Three sentences, each earning its place: purpose, when-to-use with examples, and behavioral consequences. The main verb is front-loaded. It is slightly longer than strictly necessary, but the density of routing semantics justifies the length.

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

Completeness4/5

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

For a single-parameter state-switching tool, the description covers the prerequisite (session must already be registered), the failure modes it addresses, where to obtain the session_id, and the post-condition routing rules. It omits the success response format, but with no output schema and low complexity, this is a minor gap.

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%, so the schema already documents that session_id comes from `onehome_set_auth` responses or `onehome_get_session_context` listings. The description restates nearly the same provenance information, adding no new syntax, format, or lifecycle detail. Baseline 3 is appropriate since the schema carries the load.

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 uses a specific verb-resource pair ('Force a specific registered session to be the active one') and then differentiates itself from siblings by explaining the routing mechanism that makes it distinct from onehome_set_auth (which registers) and onehome_get_session_context (which inspects). An agent can tell exactly what state change this tool performs.

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 gives explicit trigger conditions ('Useful when MLS-suffix routing picks the wrong session') with three concrete examples: two shares in the same MLS, free-text search across MLSes, and a listing without a `~MLS` suffix. It also describes the error case this tool resolves. It does not explicitly state when not to use it or name a direct alternative, so it stops just short of a 5.

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