Skip to main content
Glama
INo-xious

stockbit-mcp

by INo-xious

login

Idempotent

Open a browser window so you can sign in to Stockbit, then verify with status before using market data tools.

Instructions

Open a browser window so the user can sign in to Stockbit. Nothing else here works until they have. ASK THE USER FIRST, then call with confirm: true. This opens a real, visible window on their machine; where the client supports elicitation they are also asked directly. It returns in about a second, BEFORE the login finishes — a person takes minutes and every client has a tool-call timeout. Tell them to sign in in the window that opened, then call status to see whether it worked. Do not call this again while status says a login is in progress. The captured token goes straight to the keychain (or the encrypted file store off macOS). It is never returned here and never shown to you. If the browser is ALREADY signed in to Stockbit, it no longer waits fifteen minutes for a form that will never appear: it reads the credential out of the browser's own session and finishes in seconds, and if there is nothing usable there it signs that profile out and re-opens the login page. switch_account: true is for signing in as a DIFFERENT account — it clears the browser's Stockbit session first and never reuses what was there. Ask the user before using it; it signs them out of Stockbit in that browser profile. Refuses when STOCKBIT_NO_BROWSER is set (to anything but 0/false/no/off), and names the terminal command instead. It also refuses if a session is already stored, unless force: true (which switch_account implies). This does NOT log in to the trading account: that needs a 6-digit PIN typed at the user's own terminal via stockbit-auth trading-login, and no tool here accepts a PIN.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoLog in again even though a session is already stored.
confirmYesMust be true, and only after asking the user in words.
fresh_profileNoUse a throwaway browser profile instead of the saved one — nothing carried over, so the user re-enters password and OTP. For a profile that is corrupt or held open by another process. To sign in as a different account, use switch_account instead.
switch_accountNoSign the current Stockbit account OUT of the browser profile first, then show a real login form. For logging in as someone else. Implies force.
Behavior5/5

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

The description discloses a wealth of behavior beyond the annotations: the tool returns before login completes, it opens a real visible window, it may reuse an existing browser session, it may sign out that profile if no usable credential exists, and it refuses when STOCKBIT_NO_BROWSER is set or when a session is already stored unless force is true. It also explains token storage (keychain/encrypted file) and that the token is never shown. This is rich, honest behavioral disclosure.

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?

The description is long but every sentence earns its place. It is front-loaded with the most important instruction (ask first, confirm:true), and each paragraph covers a distinct topic: behavior/timing, token storage, existing-session handling, switch_account, refusal conditions, and trading-login distinction. The structure is clear and scannable for an agent.

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?

Given the tool's complexity — interactive login, side effects, timing, refusals, and a distinction from trading login — the description covers all the operational context an agent needs. There is no output schema, so explaining the immediate return value and the need to poll status is essential, and it does exactly that. No important call-time behavior is left undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema already provides descriptions for all 4 parameters (100% coverage), the description adds critical semantic context: confirm must be true and only after asking; switch_account implies force and signs the current account out; fresh_profile is for corrupted profiles and not for switching accounts. The description clarifies the relationship between parameters and their real-world consequences, which goes well beyond the 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?

The description clearly states that this tool opens a browser window for the user to sign in to Stockbit, and distinguishes it from trading-account login (which requires a PIN). It also differentiates from related tools like status (checking login state) and logout (signing out), so an agent can tell what this tool does and what it doesn't.

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?

The description gives explicit when-to-use instructions: ask the user first, call with confirm:true, and use switch_account:true for a different account. It also names alternatives and exclusions: use status to verify, do not call again while status says login is in progress, and this does not log in to the trading account — that requires stockbit-auth trading-login. This is exemplary usage guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/INo-xious/stockbit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server