Skip to main content
Glama

FinBridge

FinBridge DB Schema

get_db_schema
Read-only

Inspect the schema of the local finbridge database (SQLite with ingested KR/US company fundamentals, filings, and daily prices): tables, views, columns, per-table row counts (counted in the background and refreshed every 30 minutes; null with rows_note "counting…" right after a server start), and ready-to-run example queries for query_db.

Read this before writing a query_db statement. It returns no company data itself — get_db_schema describes the tables, query_db runs the SELECT.

Args: (none)

Returns: {tables: [{name, columns: [{name, type}], rows}], views: [{name, columns: [{name, type}]}], examples: [sql_string]}

Key objects:

  • companies: KR companies have source='dart' + stock_code (6-digit), US companies source='edgar' + ticker

  • financials: one row per company x fiscal_year x quarter (quarter=0 = annual); raw unscaled KRW/USD amounts

  • prices_daily: daily OHLCV per company_id

  • views v_financials (financials joined with company name/ticker/stock_code) and v_latest_annual (latest annual row per company) — prefer these in query_db

Examples:

  • Call before writing SQL for query_db, to learn table/column names.

  • Check row counts to see how much data the nightly ingest has loaded.

Use when: preparing a query_db, or checking ingest coverage. Don't use for market data itself (get_stock_prices / get_valuation read the same tables with the right joins already done). FinBridge has no real-time equity quote tool — equity prices here are end-of-day closes from the nightly ingest; the only live data is regulator filings (get_dart_filings / get_edgar_filings). Errors: 'database has not been built yet' — the ingest pipeline has not run on the server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
viewsYes
tablesYes
examplesNo
rows_noteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / rows_note
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint=true and destructiveHint=false annotations, the description discloses meaningful runtime behavior: row counts are counted in the background and refreshed every 30 minutes, rows can be null with rows_note 'counting…' after server start, and the likely error state 'database has not been built yet' is explained. There is no contradiction with the annotations.

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 long but organized with clear sections and a front-loaded purpose. Some redundancy exists between 'Read this before writing a query_db statement' and 'Use when: preparing a query_db,' but the density is largely justified given the tool's role as a schema-discovery prerequisite.

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?

With zero parameters and a provided output schema, the description goes well beyond the minimum by listing key tables, views, row-count behavior, example SQL queries, usage boundaries, and failure modes. An agent can confidently decide when to call this tool and what to do with its results.

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?

The tool has zero parameters, so the input schema already fully defines the call shape. The description adds an explicit 'Args: (none)' confirmation, which is useful but not a heavy burden; the baseline 4 for zero-parameter tools 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?

The description names a specific verb ('Inspect') and resource ('schema of the local finbridge database'), then clarifies exactly what it does not do: 'It returns no company data itself — get_db_schema describes the tables, query_db runs the SELECT.' This clearly distinguishes it from the close sibling query_db and from data-returning tools.

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 directions: 'Read this before writing a query_db statement' and 'Use when: preparing a query_db, or checking ingest coverage.' It also names exclusions and alternatives, such as get_stock_prices and get_valuation, and warns that FinBridge has no real-time quote tool.

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.