Skip to main content
Glama
chrischall

onehome-mcp

by chrischall

Switch which registered OneHome session is active

onehome_set_active_session
Idempotent

Forces a chosen registered session to become active, fixing MLS routing errors when multiple sessions match or no MLS suffix is present. Pass a session_id from authentication or session context.

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
Behavior4/5

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

Annotations already cover safety/idempotency (readOnly false, idempotent, non-destructive). The description adds the routing semantics that no structured field carries: which requests the active session answers and the error case when a ~MLS id matches multiple sessions. It stops short of saying whether the switch persists across calls or what it returns.

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?

Front-loaded with the action, then rationale, then sourcing, then routing rules. Dense but each sentence earns its place; the long final sentence is a bit packed but justifies its length by explaining routing precedence and the ambiguity error.

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 switching tool with no output schema, the description covers when to use, input sourcing, and routing consequences. It leaves minor gaps (persistence and return value) but is otherwise complete enough to call correctly.

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 coverage is 100%, so the session_id parameter is already documented. The description reinforces the two legitimate sources (set_auth response, get_session_context), but adds no format or syntax detail beyond the schema. Baseline 3 applies.

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?

States a specific verb (Force/set active) and resource (registered session), and precisely distinguishes from siblings: it is the tool that overrides MLS-suffix routing, while set_auth registers and get_session_context lists.

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

Usage Guidelines5/5

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

Explicitly gives the trigger condition (MLS-suffix routing picks the wrong session) with three concrete examples, and states where the session_id comes from. The agent knows exactly when to reach for this over other session tools.

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