QueryForge
streamlit-dashboard-mcpserver
QueryForge — Общайтесь со своей базой данных. Наблюдайте, как она превращается в дашборд.
Единый сервер Model Context Protocol, который позволяет Claude запрашивать любую базу данных SQLite, извлекать специфичную для предприятия бизнес-логику из базы знаний и создавать живые дашборды Streamlit — всё в одном разговоре.
Project Structure
streamlit-dashboard-mcpserver/
├── .venv/ # Python virtual environment (managed by uv)
├── data/
│ ├── seed.py # Generates the sample CRM database
│ └── database.db # SQLite database (generated by seed.py)
├── knowledge_base/
│ ├── docs/ # Source documents (formulas, business rules, definitions)
│ ├── ingest.py # Chunks + embeds docs into the vector store
│ └── index/ # Persisted vector store (generated by ingest.py)
├── .python-version # Pinned Python version for uv
├── dashboard.py # Auto-generated by Claude at runtime
├── server.py # The MCP server
├── uv.lock # Dependency lock file
└── README.mdRelated MCP server: TheMCP-server
What it does
Tool | Description |
| Перечислить все таблицы в базе данных |
| Показать столбцы, типы и ограничения для таблицы |
| Вернуть первые N строк любой таблицы |
| Выполнять read-only SELECT запросы |
| Извлекать релевантные фрагменты из корпоративных документов (пользовательские формулы расчёта, бизнес-правила, определения метрик), чтобы помочь Claude писать корректные запросы и логику дашборда |
| Написать приложение Streamlit, автоматически установить зависимости и запустить его |
| Остановить запущенный процесс Streamlit |
| Проверить, запущен ли дашборд и на каком порту |
| Прочитать текущий исходный код dashboard.py |
Только чтение. INSERT, UPDATE, DELETE, DROP и все остальные операции записи блокируются на уровне сервера. База знаний доступна только для чтения — Claude не может записывать в неё через этот сервер.
query_knowledge_base — это то, что делает дашборды корректными, а не просто правдоподобными. Вместо того чтобы угадывать, как ваша организация определяет, например, «чистую выручку» или «активного клиента», Claude извлекает фактическую задокументированную формулу из ваших разбитых на фрагменты корпоративных документов перед написанием SQL или кода дашборда.

Prerequisites
Python 3.11+ (зафиксировано через
.python-version)uv — уже используется в этом проекте (см.
uv.lock)Claude Desktop
Папка с исходными документами для базы знаний (PDF, Markdown или обычный текст — например, ваши внутренние листы с формулами, глоссарии метрик или СОПы)
Installation
1. Установите Claude Desktop
Скачайте и установите Claude Desktop для вашей ОС: Windows / macOS: https://claude.ai/download Войдите в свою учётную запись Anthropic после установки.
2. Клонируйте репозиторий
HTTPS:
git clone https://github.com/your-username/streamlit-dashboard-mcpserver.git
cd streamlit-dashboard-mcpserverSSH:
git clone git@github.com:your-username/streamlit-dashboard-mcpserver.git
cd streamlit-dashboard-mcpserverGitHub CLI:
gh repo clone your-username/streamlit-dashboard-mcpserver
cd streamlit-dashboard-mcpserver3. Настройте окружение с помощью uv
Этот проект использует uv для управления окружением. Файлы .python-version и uv.lock уже закоммичены, поэтому настройка выполняется одной командой.
Установите uv, если он у вас не установлен:
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Создайте виртуальное окружение и установите все зависимости из lock-файла:
uv syncАктивируйте окружение:
# Windows PowerShell
.venv\Scripts\Activate.ps1
# Windows CMD
.venv\Scripts\activate.batВы увидите имя проекта в приглашении командной строки, когда оно активно:
(streamlit-dashboard-mcpserver) PS C:\Users\benij\ds_project\streamlit-dashboard-mcpserver>Проверьте, что ключевые пакеты установлены:
pip list | findstr "mcp streamlit"Если чего-то не хватает:
uv pip install mcp streamlit pandas plotly4. Сгенерируйте базу данных
Скрипт seed.py внутри data/ генерирует реалистичную CRM-базу данных с более чем 10 000 записей в полной схеме snowflake.
cd data
python seed.py
cd ..Это создаёт data/database.db, который и читает MCP-сервер.
5. Создайте индекс базы знаний
Поместите ваши корпоративные документы (листы с формулами, определения метрик, бизнес-правила — PDF, Markdown или .txt) в knowledge_base/docs/, затем выполните:
python knowledge_base/ingest.pyЭто разбивает документы на фрагменты, создаёт эмбеддинги и записывает полученное векторное хранилище в knowledge_base/index/. Именно его query_knowledge_base читает во время выполнения — перезапускайте этот скрипт при каждом изменении исходных документов.
6. Настройте Claude Desktop
Claude Desktop читает определения MCP-серверов из JSON-файла конфигурации.
Откройте файл конфигурации:
notepad $env:APPDATA\Claude\claude_desktop_config.jsonЕсли файл ещё не существует, Блокнот спросит, создать ли его — нажмите «Да».
Вставьте следующую конфигурацию, заменив benij на ваше имя пользователя Windows, если оно отличается:
{
"mcpServers": {
"sqlite-dashboard": {
"command": "C:\\Users\\benij\\ds_project\\streamlit-dashboard-mcpserver\\.venv\\Scripts\\python.exe",
"args": [
"C:\\Users\\benij\\ds_project\\streamlit-dashboard-mcpserver\\server.py"
],
"env": {
"DB_PATH": "C:\\Users\\benij\\ds_project\\streamlit-dashboard-mcpserver\\data\\database.db",
"DASHBOARD_PORT": "8501",
"KB_INDEX_PATH": "C:\\Users\\benij\\ds_project\\streamlit-dashboard-mcpserver\\knowledge_base\\index"
}
}
}
}Чтобы подтвердить точный путь к Python, при активном venv выполните:
where.exe pythonОжидаемый вывод:
C:\Users\benij\ds_project\streamlit-dashboard-mcpserver\.venv\Scripts\python.exeИспользуйте эту точную строку в качестве значения command в конфигурации.
Всегда используйте абсолютные пути. Claude Desktop запускает MCP-сервер как подпроцесс из непредсказуемой рабочей директории — относительные пути не будут корректно разрешаться.
7. Перезапустите Claude Desktop
После сохранения конфигурации полностью закройте Claude Desktop — щёлкните правой кнопкой мыши по значку в системном трее → Quit. Затем откройте его снова.
Когда он перезапустится, нажмите на значок 🔨 (молоток) в левом нижнем углу поля ввода чата. Вы должны увидеть все 9 инструментов в списке, что подтверждает подключение сервера.
Usage
После подключения общайтесь с Claude естественно:
"What tables are in my database?"
"How do we define 'net revenue' internally?"
"Show me the top 10 customers by total revenue, using our
company's official revenue formula"
"Build a dashboard with monthly sales trends, a bar chart
by product category, and a salesperson leaderboard"Claude изучит схему, при необходимости извлечёт релевантную бизнес-логику из базы знаний, выполнит запросы, напишет код Streamlit, установит недостающие зависимости и вернёт URL для открытия в браузере — по умолчанию http://localhost:8501.
Environment Variables
Установите их в блоке env вашего claude_desktop_config.json:
Переменная | По умолчанию | Описание |
|
| Абсолютный путь к вашей базе данных SQLite |
|
| Порт, на котором будет слушать Streamlit |
|
| Абсолютный путь к векторному хранилищу, созданному |
Troubleshooting
Значок 🔨 не отображается в Claude Desktop Вероятно, конфигурационный JSON недействителен — распространённые ошибки: лишние запятые и несовпадающие скобки. Вставьте его в jsonlint.com для проверки. Всегда полностью закрывайте и заново открывайте Claude Desktop после любого изменения конфигурации.
Ошибка «Database not found»
Убедитесь, что DB_PATH — абсолютный путь и что database.db существует внутри папки data/. Запустите seed.py, если он ещё не был сгенерирован.
query_knowledge_base не возвращает результатов / пустой индекс
Убедитесь, что в knowledge_base/docs/ действительно есть документы, затем повторно запустите python knowledge_base/ingest.py. Убедитесь, что KB_INDEX_PATH в вашей конфигурации указывает на knowledge_base/index/.
Страница Streamlit не загружается
Спросите Claude: «Дашборд запущен?» — чтобы вызвать get_dashboard_status. Если он не запущен, попросите Claude снова выполнить create_dashboard. Также проверьте, что порт 8501 не занят другим процессом.
uv sync завершается с ошибкой
Убедитесь, что установленная версия Python соответствует .python-version. Выполните python --version для проверки и при необходимости установите правильную версию с python.org.
Ошибка PowerShell ExecutionPolicy при активации .venv
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserЗатем активируйте снова.
About
MCP-сервер, который превращает естественный язык в SQL-запросы и живые дашборды Streamlit, учитывающие бизнес-логику, на основе Claude и базы знаний с дополненной генерацией (RAG) из корпоративных правил и формул.
Available Tools
10 toolscreate_dashboardB
Creates or updates the Streamlit dashboard with the given Python code.
Automatically installs missing dependencies and starts/reloads the app.
IMPORTANT: The variable DB_PATH is automatically injected at the top of
your code — always connect to the database using:
conn = sqlite3.connect(DB_PATH)
Never hardcode a database path string yourself.
Args:
code: Full Python source code for the Streamlit dashboard
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations, so the description carries the full load. It discloses helpful side effects (auto-install dependencies, automatic DB_PATH injection) and the create-or-update dual behavior, but omits permission needs, error modes, and whether the update replaces the whole app or merges. Partial behavioral coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the action, then the caveat about DB_PATH. The 'Args' block is boilerplate but short. Some redundancy between the first sentence and the later 'starts/reloads the app' clause, but overall efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
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 not be explained. The description covers the key constraint (DB_PATH) and high-level behavior, but does not address what happens on failure, dependency install scope, or how to recover a bad deploy, which matters for an agent invoking a code-writing tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% and the only param is described minimally as 'Full Python source code for the Streamlit dashboard.' The important detail about DB_PATH injection is stated as prose rather than tied to the code parameter, and there is no guidance on structure, length, or modules allowed. With low coverage the description should compensate more.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (creates or updates) and resource (Streamlit dashboard) with the input that drives it (Python code). It does not explicitly contrast with siblings like read_dashboard or stop_dashboard, but the lifecycle role is clear from the phrasing.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage through the code argument and the mention of reloading an existing app, but never states when to use this tool versus stop_dashboard/read_dashboard or what prerequisites exist. Usage is inferable rather than explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
describe_tableC
Show column names, types, and constraints for a table.
Args:
table: Name of the table to describe
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden, yet it says nothing about read-only nature, required permissions, or behavior for a nonexistent table. The statement of what is returned (columns, types, constraints) overlaps with the output schema, so it adds little 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.
Is the description appropriately sized, front-loaded, and free of redundancy?
The purpose sentence is short and front-loaded with the key information. The appended 'Args:' block is slightly redundant for a one-parameter tool but costs little.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
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 not be explained, and this is a simple one-parameter read operation. Still, nothing addresses error cases, missing tables, or how this differs from list_tables/sample_table, leaving the definition at the minimum viable level.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate, but 'Name of the table to describe' only restates the parameter name. It omits useful detail such as whether a schema qualifier is expected, case sensitivity, or how nested/qualified names are handled.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description gives a specific verb and resource ('Show column names, types, and constraints for a table'), so an agent immediately knows it returns schema metadata. It does not, however, distinguish itself from siblings like list_tables or sample_table, which also operate on table metadata.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit when-to-use guidance and no mention of alternatives such as list_tables (for enumeration) or sample_table (for row data). Usage is only implied by the purpose statement, leaving the agent to infer the boundary between this and its siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_dashboard_statusA
Returns whether the Streamlit dashboard is running and on which port.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral burden, and it does disclose the essential trait: this is a status/read probe that returns a running flag and a port. It omits any note about authentication, side effects, or what happens when the dashboard is stopped, though for a zero-argument probe that gap is modest.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no filler; the returned information is stated immediately with zero waste.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so the description needn't enumerate return values, and no parameters need explaining. The only missing piece is when to reach for this tool relative to the other dashboard tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool takes no parameters, so the baseline of 4 applies; there is no parameter semantics to document. The description correctly adds no redundant parameter commentary.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a concrete verb and resource ('Returns whether the Streamlit dashboard is running and on which port'), which is specific enough to distinguish it from create_dashboard, stop_dashboard, and read_dashboard. It doesn't explicitly name those siblings, but the status-vs-operate distinction is inherent in the wording.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no guidance on when to call this versus alternatives such as read_dashboard or create_dashboard, and no preconditions. The use case (checking readiness before another dashboard operation) is only inferable, not stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
knowledge_base_infoA
Returns metadata about the current knowledge base:
total chunks, unique sources, collection name, embedding model.
Useful to verify that PDF ingestion completed successfully.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the disclosure burden. It signals a read-style metadata call and what is returned, but says nothing about permissions, behavior on an empty/uninitialized knowledge base, or whether the call has any cost or side effects.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the return payload and followed by the motivating use case. Nothing is padded, though the value could have been sharpened slightly by naming the sibling it contrasts with.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
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 not be described, and with zero parameters there is no schema gap to compensate for. The only missing element is any note on failure/empty-state behavior in the absence of annotations.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool takes zero parameters, so there is nothing for the description to clarify; the baseline for a parameterless tool applies. The description adds no spurious parameter-like claims.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Uses a specific verb (returns) with a specific resource (knowledge base) and enumerates the returned metadata: total chunks, unique sources, collection name, embedding model. This clearly separates it from the search-oriented sibling knowledge_search, though it never names that sibling explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives an explicit purpose context: verifying that PDF ingestion completed successfully. It does not state when not to use it or point to an alternative, so it falls short of full when/when-not guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
knowledge_searchA
Semantic search over the ingested PDF knowledge base.
Pipeline:
1. Bi-encoder retrieval from ChromaDB (fast ANN search, top_k_retrieve candidates)
2. Cross-encoder reranking (precise pointwise scoring)
3. Custom composite metric computation (cosine + rerank + keyword + density)
4. Returns top_k_return chunks ranked by composite score with full metrics
The composite_score field is the primary relevance signal you should use when
deciding how much to trust each chunk. Scores > 0.7 are highly relevant.
Args:
query: Natural-language question or search phrase
top_k_retrieve: Number of candidates to fetch from the vector DB (default 20)
top_k_return: Number of final results to return after reranking (default 5)
filter_source: Optional — filter by PDF filename (e.g. "report.pdf")
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k_return | No | ||
| filter_source | No | ||
| top_k_retrieve | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations, so the description carries the full burden, and it does substantial work: it discloses the retrieval/rerank/composite-score pipeline, how the composite_score should be interpreted (>0.7 highly relevant), and what the return contains. It stops short of describing permissions, latency/cost, or what happens on an empty KB.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Well front-loaded: one-line purpose, then a numbered pipeline, then score interpretation, then args. Slightly verbose and the numbered pipeline is borderline display-oriented, but every section earns its place for a multi-stage tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
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 needn't be enumerated, and the description still adds the key interpretation rule. Combined with full param semantics and pipeline disclosure, it is complete for correct invocation; only cross-sibling routing guidance is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate, and it does: it gives meaning, format and defaults for all four args, and explains the retrieve-vs-return relationship (candidate fetch vs final reranked results) plus a concrete filter_source example.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource+scope: 'Semantic search over the ingested PDF knowledge base.' The pipeline detail makes it unambiguous, and it is clearly distinguished from siblings like query_database (SQL) or knowledge_base_info (metadata).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Implied usage is clear (natural-language semantic lookup over PDFs), but there is no explicit when-to-use / when-not guidance and no named alternative such as query_database for structured questions. The description doesn't route the agent among siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_tablesA
List all tables in the SQLite database.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It only states the purpose but does not disclose any behavioral traits like read-only nature or performance implications, though the operation is obviously safe.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise (five words) and front-loaded, containing no unnecessary information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given zero parameters and a presumably simple output schema, the description is sufficient. It could mention that it returns table names, but the output schema likely covers that.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has no parameters and schema coverage is 100%, so the description does not need to add parameter info. It appropriately omits such details.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description explicitly states the action ('List') and the resource ('all tables in the SQLite database'), which is specific and clearly distinguishes from siblings like 'execute' or 'query'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies when to use (to get all tables), but does not provide explicit guidance on when not to use or mention alternatives. For a simple tool, this is acceptable but lacks some clarity.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
query_databaseB
Run a SELECT query against the SQLite database.
Only read-only SELECT statements are allowed.
Args:
sql: A valid SQLite SELECT statement
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and partially meets it by disclosing the read-only constraint ('Only read-only SELECT statements are allowed'). It does not cover error handling for non-SELECT input, permissions, or other runtime behavior, so the disclosure is useful but incomplete.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is short and front-loaded: purpose first, then the key constraint, then the argument. The Args section slightly repeats the SELECT requirement from the opening line, but the overall size is appropriate with minimal waste.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple (one parameter) and an output schema exists, so the description need not explain return values. It covers purpose, the read-only constraint, and the parameter meaning, which is nearly sufficient; the main gap is the lack of sibling routing guidance, but that is a minor omission given the tool's straightforward scope.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It does add meaning by specifying the parameter must be a valid SQLite SELECT statement (not arbitrary SQL), but it offers no detail on result handling, parameter binding, or syntax expectations beyond that. Partial compensation, not full.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Run') and resource ('SELECT query against the SQLite database'), making the tool's function clear. It does not explicitly distinguish itself from read-oriented siblings like list_tables or sample_table, but the 'arbitrary SELECT' scope is implied well enough for an agent to infer it.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description only says 'Only read-only SELECT statements are allowed' — a hard constraint, not usage guidance. It gives no indication of when to use query_database versus list_tables, describe_table, or sample_table, leaving the agent to infer routing on its own.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
read_dashboardB
Returns the current contents of dashboard.py.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden. It implies a safe, live read via 'current', but says nothing about what happens when the dashboard does not exist, permissions, or side effects. The output schema covers return values, but behavioral gaps remain.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single short sentence with the resource stated first and no filler. Every word earns its place and nothing is buried.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple (0 params, output schema present), so the description need not explain returns. However, it omits error behavior and any routing hint against its many siblings, leaving the definition minimally adequate rather than complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool takes zero parameters, so per the baseline this scores 4. There is nothing for the description to disambiguate, and it correctly does not invent parameter detail.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb (returns) tied to a concrete resource (the contents of dashboard.py), so an agent knows this is a plain read of a file. It does not explicitly differentiate itself from siblings like get_dashboard_status, but the read-vs-status distinction is mostly inferable from the verb.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no statement of when to use this tool versus the many siblings (create_dashboard, stop_dashboard, get_dashboard_status). Usage is only implied by the word 'Returns', with no conditions, prerequisites, or alternatives named.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
sample_tableB
Return the first N rows of a table (default 5, max 50).
Args:
table: Name of the table to sample
limit: Number of rows to return (default 5, max 50)
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| table | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
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 the default (5) and hard cap (max 50), but says nothing about row ordering (i.e., that 'first N' may be arbitrary without an ORDER BY), required permissions, or whether this is strictly read-only. The cap is the main behavioral fact conveyed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The purpose line is front-loaded and the Args block is compact. The default/max values are repeated in both the opening sentence and the args list, which is mild redundancy but acceptable given the schema has no descriptions.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
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 not be described. For a simple two-parameter read tool, the description covers purpose, both arguments, and the size constraint adequately; it only lacks sibling disambiguation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate, and it does: both parameters are explained ('table: Name of the table to sample' and 'limit: Number of rows to return (default 5, max 50)'), including the default and constraint. Minor gap in that table-name qualification conventions (schema/catalog prefixes) are not addressed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource ('Return the first N rows of a table'), which clearly conveys a sampling operation. It does not, however, differentiate itself from siblings like query_database or describe_table, so an agent must infer the distinction.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool versus query_database, describe_table, or list_tables, all of which are plausible alternatives for inspecting a table. No exclusions, prerequisites, or situational context are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
stop_dashboardB
Stops the running Streamlit dashboard process.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden, yet it only asserts that a process is stopped. It does not disclose whether the operation is idempotent when nothing is running, whether it terminates the process forcibly or gracefully, whether any session state or data is lost, or what permissions are needed for a mutation-style action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single compact sentence with the action front-loaded and no filler. It is efficient, though it is arguably too terse for a lifecycle-mutating action, leaving room for a short usage clause without bloat.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return-value explanation is not required, and the zero-parameter schema is simple. However, with no annotations and a lifecycle-mutating operation, the description omits the prerequisite state and side effects an agent would need to invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline is 4. The schema confirms an empty argument object, matching the description's lack of parameter discussion.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ("Stops") and resource ("the running Streamlit dashboard process"), which is unambiguous on its own. It contrasts implicitly with create_dashboard, get_dashboard_status, and read_dashboard by naming the lifecycle action, but never explicitly says how it differs from its siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool versus alternatives such as get_dashboard_status (which would tell you whether a dashboard is running) or create_dashboard. The phrase "the running" implies a precondition but does not state what happens if no dashboard is running or when to prefer this over a status check.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
10 tool updates
v0.1.0- First observed
create_dashboard - First observed
describe_table - First observed
get_dashboard_status - First observed
knowledge_base_info - First observed
knowledge_search - First observed
list_tables - First observed
query_database - First observed
read_dashboard - First observed
sample_table - First observed
stop_dashboard
TDQS
Scored across 10 tools
Each tool targets a distinct resource and action: table introspection (list/describe/sample), read-only querying, dashboard lifecycle management, and knowledge-base retrieval. Boundaries are clear, and the read-only query tool is explicitly separated from the preview/schema helpers.
Most tools use a predictable verb_noun pattern (list_tables, describe_table, sample_table, query_database, create_dashboard, stop_dashboard, read_dashboard). However knowledge_search and knowledge_base_info flip to a noun_verb/compound form, a minor deviation from the dominant convention.
Ten tools is well-scoped, and each earns its place within its functional group. It does span three distinct concerns (SQLite querying, Streamlit dashboard, knowledge base), which is slightly broad but still justified.
Dashboard lifecycle (create/stop/status/read) and table exploration plus read-only querying are well covered. Gaps exist: there is no knowledge-base ingestion tool despite referring to an ingested KB, and no way to modify or delete data.
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Related MCP Servers
- AlicenseAqualityAmaintenanceOne config, one CLI that turns your databases (Postgres, MySQL, SQLite, MongoDB) into MCP servers for Claude, GPT, Cursor, and any MCP-compatible agent.31MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with SQLite databases, filesystem, AWS IAM, and Gmail through a master MCP server with a Streamlit UI optimized for Claude.1-
- AlicenseAqualityDmaintenanceMCP server for Claude that connects to MySQL, MariaDB, and SQLite databases. Query your databases using natural language.3MIT
- AlicenseAqualityDmaintenanceA database-agnostic MCP server that enables natural language queries to your database through Claude or Copilot, automatically writing and executing SQL.88 npmMIT