Skip to main content
Glama

x402 Agent Toolkit — Quant Arb, TWSE & Agent Security

tw_institutional_flows

[$0.02 USDC via x402] Official TWSE daily institutional money-flow intelligence in clean English JSON: market-wide Foreign, Investment Trust & Dealer net buy/sell (TWD), per-stock institutional net shares (T86), margin financing & short-selling balances (MI_MARGN), top foreign net-bought/sold leaders, and 24-company AI hardware supply chain institutional positioning.

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": "tw_institutional_flows"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNooverview (market totals + top foreign buys/sells + AI chain summary), ai_chain (24 AI hardware stocks), or ticker (single stock).overview
limitNoNumber of top net-bought / net-sold stocks to return (1-30).
symbolNoOptional Taiwan stock code (e.g. 2330). Forces single-stock mode when provided.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the tool costs $0.02 USDC via x402 and returns clean English JSON, but it does not explain payment flow requirements, rate limits, data freshness, error behavior, or whether a preflight step is recommended.

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?

The description is front-loaded with the payment cost and then enumerates the datasets returned. It is efficient and avoids filler, though the single dense sentence makes the list of data domains slightly harder to scan.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has three parameters and no output schema, so the description does useful work by naming the returned datasets. However, it does not describe the JSON response structure, pagination behavior for limit, or the practical x402 payment mechanics, leaving meaningful gaps for an agent invoking a paid data tool.

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 the schema already documents mode, limit, and symbol semantics. The description adds no parameter-level detail beyond what the schema provides, which makes the baseline score appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the resource: official TWSE daily institutional money-flow data, including market totals, per-stock T86 data, margin balances, foreign leaders, and AI supply-chain positioning. It is specific enough for an agent to understand the data product, but it does not explicitly distinguish itself from siblings such as tw_stock_intel or ai_supply_chain.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description states what data is returned but gives no explicit guidance on when to use this tool versus alternatives, nor when not to use it. The mode enum in the schema implies usage contexts, but the description itself provides no routing or exclusion guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.