Skip to main content
Glama
roborock-mcp

roborock-mcp

roborock_complete_login

Completes email-code login and stores the session locally, enabling authenticated Roborock vacuum control through the MCP server.

Instructions

Finish email-code login and store the session locally.

The session file is mode 0600 under ~/.roborock-mcp/session.json, or ROBOROCK_SESSION_PATH. Tokens are not included in the result.

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": {
      "email": "<email>",
      "code": "<code>"
    },
    "name": "roborock_complete_login"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
emailYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does real work: it discloses that a session file is written, its exact location (~/.roborock-mcp/session.json or ROBOROCK_SESSION_PATH), its 0600 permissions, and that tokens are excluded from the result. It does not say what happens on an invalid or expired code, or whether an existing session is overwritten.

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 the side-effect details, with no filler sentences. The hard-wrapped formatting is slightly choppy but nothing is redundant.

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?

An output schema exists, so return-value detail is unnecessary, and the description covers the main hidden behavior (credential persistence and its path). The remaining gap is auth-flow sequencing and failure behavior for an expired code.

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 0%, so the description must compensate, and it does only partially: "email-code login" clarifies that `code` is the emailed verification code rather than some other token, and `email` is the account identity. It adds no format, length, or expiry expectations for either parameter.

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 and resource: finishing an email-code login and persisting the session. The phrase "Finish email-code login" implies the second half of a two-step flow that contrasts with roborock_request_login_code, though it never names that sibling explicitly.

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?

Usage is only implied by the word "Finish" — an agent can infer this must follow a code-request call, but the description never states the prerequisite or what to do if no code was requested. No exclusions or alternatives are given, so sequencing must be inferred from naming patterns.

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