Skip to main content
Glama

Create account (step 2)

verify_registration

Confirms the emailed verification code and accepted terms to create an Aivy account, issue an API key, and save it locally so other tools can access solar and battery controls.

Instructions

Create an Aivy account from the chat, step 2 of 2: confirms the emailed code, accepts the terms (only pass accept_terms=true after the person said yes), creates the account and an API key, and stores that key on this computer (~/.aivy/credentials.json) so every other tool works from now on, in this and future sessions. Never repeat the key back; say it is saved and can be managed at https://bridge.ivyenergy.com.au/account.

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": {
      "registration_id": "<registration_id>",
      "registration_session": "<registration_session>",
      "code": "<code>",
      "accept_terms": "<accept_terms>"
    },
    "name": "verify_registration"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe code from the verification email, as the person gave it.
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
accept_termsYesTrue only after the person said they accept the terms get_registration_terms showed; false is refused.
registration_idYes`registration_id` from register_account's reply.
registration_sessionYes`registration_session` from register_account's reply.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.11.5
    • addedInput schema / properties / accept_terms / description
      Added value: +"True only after the person said they accept the terms get_registration_terms showed; false is refused."
    • addedInput schema / properties / code / description
      Added value: +"The code from the verification email, as the person gave it."
    • 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 / registration_id / description
      Added value: +"`registration_id` from register_account's reply."
    • addedInput schema / properties / registration_session / description
      Added value: +"`registration_session` from register_account's reply."
    • 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"
      +]
  2. First observedv0.9.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes far beyond the annotations: creates an API key, writes it to ~/.aivy/credentials.json, and makes that key persist across this and future sessions, which is a machine-level side effect an agent must know about before calling. Also carries a security constraint ("Never repeat the key back; say it is saved and can be managed at ...") that the annotations do not cover.

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-loads purpose and step position, then layers side effects and the security rule; every clause carries information. It is one long compound sentence, which makes the critical secret-handling instruction easier to skim past than a separate sentence would be.

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?

For a non-idempotent account-creation tool with an output schema and fully documented parameters, the description covers what remains: prerequisite step, credential persistence and its machine-level location, and the secret-handling rule. Nothing an agent needs in order to invoke it responsibly is missing.

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 all six parameters are already documented, including the accept_terms refusal rule and the read/control scope semantics. The description reinforces accept_terms gating and the emailed code but adds no syntax, format, or meaning 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?

Names a concrete verb and resource ("Create an Aivy account"), plus the exact sub-steps it performs: confirming the emailed code, accepting terms, creating the account and an API key, and persisting credentials. Distinguishes itself from the step-1 sibling by stating "step 2 of 2" and referencing register_account's reply fields.

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?

Gives explicit gating conditions: "only pass accept_terms=true after the person said yes" and, via the schema, "Pass control only when the person asked for it." The two-step sequence is clear from the description. It never names a hard alternative to use instead (get_registration_terms is only referenced in the schema), so it stops short of full when/when-not routing.

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