Skip to main content
Glama

sign_in

Idempotent

Authenticate an Amazon account through a browser window on the user's computer so users enter credentials only on Amazon's own page and order tools can access the account.

Instructions

Sign the user in to Amazon, when they ask you to or after a tool says they aren't signed in. Opens a browser window on the user's computer, where they sign in on Amazon's own page, so their credentials are never seen. Wait for them to finish, which they have 120 seconds to do. If it says there's no browser to sign in with, ask the user which to use, then call this again with browser.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sign_in"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoThe Amazon site to sign in to, e.g. `amazon.de`, since each site has its own sign-in. By default, the user's default site.
accountNoThe Amazon account to sign in to, by a name for it, e.g. `spouse`, to add someone else's own account, like a partner's. By default, the user's default account.
browserNoOnly when there's no browser to sign in with: the one the user chose, either one offered to download for them or a browser they already have installed. It's saved, so they're only asked once.

Output Schema

NameRequiredDescriptionDefault
siteYesThe Amazon site, as `site` accepts it.
errorNoWhy the session couldn't be checked, if it couldn't. `signed_in` is null then.
sitesYesEvery site checked: the one asked about, or else the default site and every other site with a saved session.
accountYesThe Amazon account checked, as `account` accepts it.
defaultYesWhether it's the user's default site, which tools read when they aren't given `site`.
sign_inNoWhat to do to sign in, if the user isn't.
accountsYesEvery Amazon account with a saved session, the default one first.
signed_inYesWhether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.4.0
    • addedInput schema / properties / account
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The Amazon account to sign in to, by a name for it, e.g. `spouse`, to add someone else's own account, like a partner's. By default, the user's default account."
      +}
    • addedOutput schema / properties / account
      Added value: +{
      +  "description": "The Amazon account checked, as `account` accepts it.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / accounts
      Added value: +{
      +  "description": "Every Amazon account with a saved session, the default one first.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "signed_in",
      -  "site",
      -  "default",
      -  "sites"
      -]New value: +[
      +  "signed_in",
      +  "site",
      +  "default",
      +  "sites",
      +  "account",
      +  "accounts"
      +]
  2. Changed15 schema fields changedv2.1.2
    • removedInput schema / properties / browser / title
      Removed value: -"Browser"
    • removedInput schema / properties / site / title
      Removed value: -"Site"
    • removedOutput schema / $defs
      Removed value: -{
      -  "SiteSessionStatus": {
      -    "description": "The user's session status on an Amazon site.",
      -    "properties": {
      -      "default": {
      -        "description": "Whether it's the user's default site, which tools read when they aren't given `site`.",
      -        "title": "Default",
      -        "type": "boolean"
      -      },
      -      "error": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Why the session couldn't be checked, if it couldn't. `signed_in` is null then.",
      -        "title": "Error"
      -      },
      -      "sign_in": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "What to do to sign in, if the user isn't.",
      -        "title": "Sign In"
      -      },
      -      "signed_in": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all.",
      -        "title": "Signed In"
      -      },
      -      "site": {
      -        "description": "The Amazon site, as `site` accepts it.",
      -        "title": "Site",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "signed_in",
      -      "site",
      -      "default"
      -    ],
      -    "title": "SiteSessionStatus",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / properties / default / title
      Removed value: -"Default"
    • removedOutput schema / properties / error / title
      Removed value: -"Error"
    • removedOutput schema / properties / sign_in / title
      Removed value: -"Sign In"
    • removedOutput schema / properties / signed_in / title
      Removed value: -"Signed In"
    • removedOutput schema / properties / site / title
      Removed value: -"Site"
    • removedOutput schema / properties / sites / items / $ref
      Removed value: -"#/$defs/SiteSessionStatus"
    • addedOutput schema / properties / sites / items / description
      Added value: +"The user's session status on an Amazon site."
    • addedOutput schema / properties / sites / items / properties
      Added value: +{
      +  "default": {
      +    "description": "Whether it's the user's default site, which tools read when they aren't given `site`.",
      +    "type": "boolean"
      +  },
      +  "error": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Why the session couldn't be checked, if it couldn't. `signed_in` is null then."
      +  },
      +  "sign_in": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "What to do to sign in, if the user isn't."
      +  },
      +  "signed_in": {
      +    "anyOf": [
      +      {
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."
      +  },
      +  "site": {
      +    "description": "The Amazon site, as `site` accepts it.",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / sites / items / required
      Added value: +[
      +  "signed_in",
      +  "site",
      +  "default"
      +]
    • addedOutput schema / properties / sites / items / title
      Added value: +"SiteSessionStatus"
    • addedOutput schema / properties / sites / items / type
      Added value: +"object"
    • removedOutput schema / properties / sites / title
      Removed value: -"Sites"
  3. Changed11 schema fields changedv1.4.2
    • addedInput schema / properties / site
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The Amazon site to sign in to, e.g. `amazon.de`, since each site has its own sign-in. By default, the user's default site.",
      +  "title": "Site"
      +}
    • addedOutput schema / $defs
      Added value: +{
      +  "SiteSessionStatus": {
      +    "description": "The user's session status on an Amazon site.",
      +    "properties": {
      +      "default": {
      +        "description": "Whether it's the user's default site, which tools read when they aren't given `site`.",
      +        "title": "Default",
      +        "type": "boolean"
      +      },
      +      "error": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Why the session couldn't be checked, if it couldn't. `signed_in` is null then.",
      +        "title": "Error"
      +      },
      +      "sign_in": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "What to do to sign in, if the user isn't.",
      +        "title": "Sign In"
      +      },
      +      "signed_in": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all.",
      +        "title": "Signed In"
      +      },
      +      "site": {
      +        "description": "The Amazon site, as `site` accepts it.",
      +        "title": "Site",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "signed_in",
      +      "site",
      +      "default"
      +    ],
      +    "title": "SiteSessionStatus",
      +    "type": "object"
      +  }
      +}
    • changedOutput schema / description
      Previous value: -"The user's Amazon session status, returned by the ``check_session`` tool."New value: +"The user's Amazon session status, returned by the ``check_session`` and ``sign_in`` tools: for the site asked\nabout, or else the default site, and for every site checked."
    • addedOutput schema / properties / default
      Added value: +{
      +  "description": "Whether it's the user's default site, which tools read when they aren't given `site`.",
      +  "title": "Default",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / error
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Why the session couldn't be checked, if it couldn't. `signed_in` is null then.",
      +  "title": "Error"
      +}
    • addedOutput schema / properties / signed_in / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / signed_in / description
      Previous value: -"Whether Amazon still accepts the user's saved session. If Amazon couldn't be reached to check, a saved session is assumed to still work."New value: +"Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."
    • removedOutput schema / properties / signed_in / type
      Removed value: -"boolean"
    • changedOutput schema / properties / site / description
      Previous value: -"The Amazon site the server is set to read."New value: +"The Amazon site, as `site` accepts it."
    • addedOutput schema / properties / sites
      Added value: +{
      +  "description": "Every site checked: the one asked about, or else the default site and every other site with a saved session.",
      +  "items": {
      +    "$ref": "#/$defs/SiteSessionStatus"
      +  },
      +  "title": "Sites",
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "signed_in",
      -  "site"
      -]New value: +[
      +  "signed_in",
      +  "site",
      +  "default",
      +  "sites"
      +]
  4. First observedv1.2.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only flag it as a non-read-only, open-world, idempotent operation. The description adds the important context an agent actually needs: a browser window opens on the user's own machine, credentials are never exposed to the agent, and the call blocks for up to 120 seconds. That timeout and the no-browser failure mode are behavioral facts no annotation conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, each carrying distinct information: trigger, mechanism, security reassurance, timeout, and error recovery. The trigger is front-loaded and nothing is repeated for padding.

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 no explanation. Given the tool opens an interactive window, the description covers the two things an agent could otherwise mishandle: the 120-second wait and the missing-browser branch. Nothing material is missing for correct invocation.

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 all three parameters are already documented in the input schema, including the `browser` fallback and its persistence. The description's `browser` guidance largely restates the schema and it says nothing about `site` or `account`, so it neither compensates for a gap nor adds much beyond structured data. 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 and resource ('Sign the user in to Amazon') and immediately describes the mechanism ('Opens a browser window on the user's computer'). It also implicitly separates itself from the session-checking sibling by saying it should run 'after a tool says they aren't signed in', so an agent can place it in the workflow 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 Guidelines5/5

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

Gives explicit triggers ('when they ask you to or after a tool says they aren't signed in') and an explicit recovery branch ('if it says there's no browser... ask the user which to use, then call this again with `browser`'). Both the when-to-call and the retry condition are spelled out rather than left to inference.

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