Skip to main content
Glama

Sign in

sign_in

Authenticate an existing Aivy account from chat by creating an API key from a username and password, then store it locally so future requests can access solar and battery systems.

Instructions

Use an existing Aivy account from the chat: creates an API key with the account's username (or email) and password, stores it on this computer (~/.aivy/credentials.json) and uses it from now on. Needs no existing key. The password is used once and not stored; never repeat the key back.

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": {
      "username": "<username>",
      "password": "<password>"
    },
    "name": "sign_in"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoWhat the new key may do: read = observe only; control = may also change settings. Pass control only when the person asked for it.read
key_nameNoLabel for the new API key, so the person can tell it apart later.chat
passwordYesThe account password, as the person gave it.
usernameYesThe account's username or email address.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.11.5
    • addedInput schema / properties / key_name / description
      Added value: +"Label for the new API key, so the person can tell it apart later."
    • addedInput schema / properties / password / description
      Added value: +"The account password, as the person gave it."
    • addedInput schema / properties / scope / description
      Added value: +"What the new key may do: read = observe only; control = may also change settings. Pass control only when the person asked for it."
    • addedInput schema / properties / scope / enum
      Added value: +[
      +  "read",
      +  "control"
      +]
    • addedInput schema / properties / username / description
      Added value: +"The account's username or email address."
  2. First observedv0.9.0

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations by naming the on-disk credential path, stating the password is used once and not stored, and imposing a secrecy rule ('never repeat the key back'). The notable gap is that it never says whether an existing credentials file is overwritten or what happens on a failed sign-in, which matters for a credential-writing operation.

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 and its consequences, and every clause (credential path, single-use password, secrecy) carries real information. The first sentence is a long chained clause that could be split for faster scanning, but there is no filler.

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

Completeness5/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 values need not be described; the description instead covers the parts the schema cannot: where credentials land, that the password is ephemeral, and how to handle the resulting key. Combined with the persisted-credentials note, an agent has what it needs to call this safely.

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 scope, key_name, username, and password are already documented with defaults and enum meanings. The description only adds that the username may be an email and that the password is single-use, which is useful but marginal against a fully annotated schema.

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 action chain: authenticate with an existing Aivy account, mint an API key, persist it to ~/.aivy/credentials.json, and use it going forward. The phrase 'existing Aivy account' and 'Needs no existing key' implicitly separate it from register_account, so an agent can tell which auth path applies without opening a schema.

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?

'Use an existing Aivy account from the chat' plus 'Needs no existing key' gives a clear condition for selecting this tool over registering a new account or using a pre-provisioned key. It stops short of naming the sibling alternative explicitly, so the routing is implied rather than spelled out.

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