Skip to main content
Glama
INo-xious

stockbit-mcp

by INo-xious

broker_distribution

Read-only

Visualize broker-to-broker trade flows for an IDX stock as an SVG diagram showing which brokers bought from which sellers and the amounts transferred.

Instructions

Broker-to-broker flow for an IDX stock, ALWAYS rendered as an SVG diagram laid out BUYER -> SELLER exactly like Stockbit's own Broker Distribution: top buyers on the left, the sellers they bought from on the right. Each seller's bar is that seller's TOTAL, so a partly-filled bar means the buyers shown account for only part of what it sold. For each top broker, WHICH brokers were on the other side of their trades and how much moved between them. broker_summary says how much a broker accumulated; this shows who they accumulated it from. Returns the diagram as an image AND writes a .svg file, reporting the path in savedTo (pass save_path to choose where). It deliberately does NOT return a table of numbers — the picture is the output. Use broker_summary for per-broker figures. DATES: pass a period preset, or BOTH from and to (YYYY-MM-DD). from/to override period. data_type=VALUE is IDR, VOLUME is LOTS (1 lot = 100 shares); the summary states which. REQUIRES a Stockbit account with at least Rp 10,000,000 total balance — Stockbit gates this feature. If the account does not qualify the tool returns an error saying so. An empty diagram on a weekend or public holiday is expected, not an error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoWindow end, YYYY-MM-DD (inclusive). Requires `from`.
fromNoWindow start, YYYY-MM-DD. Requires `to`.
themeNoPalette. Default dark.
periodNoPreset window; default LAST_1_DAY. Ignored when from/to are given.
symbolYesIDX ticker, e.g. BBRI
browserNoBrowser to open Stockbit in, by name, e.g. "Edge". Defaults to STOCKBIT_WEB_BROWSER, else the OS default.
date_toNoAlias for `to`.
end_dateNoAlias for `to`.
data_typeNoDefault VALUE (IDR). VOLUME returns lots (1 lot = 100 shares).
date_fromNoAlias for `from`.
save_pathNoWhere to write the .svg. Defaults to charts/ inside the store (~/.stockbit, or $STOCKBIT_STORE_DIR).
start_dateNoAlias for `from`.
top_sourcesNoSource brokers to draw (default 8)
top_targetsNoCounterparties to draw; the rest merge into an 'others' band (default 12)
market_boardNoDefault REGULER, matching Stockbit's UI. ALL folds in negotiated blocks and changes the numbers a lot.
investor_typeNoDefault ALL
open_in_stockbitNoOpen the symbol's Stockbit page in the user's browser. Default true.
Behavior5/5

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

Goes well beyond the annotations by disclosing side effects (writes a .svg file, may open the browser), the gating account requirement (Rp 10,000,000 balance and the error it produces), the output form (image plus savedTo path), and edge-case behavior (empty diagram on holidays is expected). This is rich behavioral context that annotations alone do not provide.

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: core purpose first, then diagram semantics, output behavior, date rules, data_type, requirements, and an edge case. It is front-loaded with the most important facts and avoids fluff or repetition.

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 complex tool with 17 parameters and no output schema, the description supplies the essential missing context: return value semantics (savedTo path), output format (SVG image), error conditions (account balance, holiday empties), and how it differs from its closest sibling. An agent has enough to invoke it correctly without further inference.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description adds real value on top by explaining date format and override behavior, the IDR vs LOTS distinction, the impact of market_board=ALL ('changes the numbers a lot'), and the purpose of save_path. It doesn't explicitly narrate every parameter, but the additional clarifications are meaningful.

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: renders broker-to-broker flow as an SVG diagram, and clearly differentiates itself from broker_summary by explaining the difference in scope ('who they accumulated it from' vs. 'how much a broker accumulated'). The layout semantics (buyer left, seller right) further pin down what the tool produces.

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?

Explicitly tells the agent when to use broker_summary instead ('Use broker_summary for per-broker figures') and clarifies what this tool deliberately does not do ('does NOT return a table of numbers'). It also gives precise date selection rules (period preset OR both from/to, from/to override), data_type meaning, and the weekend/holiday expectation.

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