Skip to main content
Glama
BUSY MCP Server

BUSY MCP Server

query-database

Read-onlyIdempotent

Execute a single read-only SELECT query against BUSY accounting data as a last resort when other tools are insufficient, with capped results and cancelled vouchers excluded.

Instructions

Last resort: ONE read-only SELECT (Access edition = Jet SQL, SQL edition = T-SQL). Prefer read-table. Writes, multiple statements, external databases and credential tables are rejected; results capped. Exclude cancelled vouchers with (Cancelled = 0 OR Cancelled IS NULL).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sql": "<sql>"
    },
    "name": "query-database"
  }
}

Input Schema

NameRequiredDescriptionDefault
fyNoFY start year, e.g. 2024 = FY 2024-25 (default: selected year)
sqlYesA single SELECT
companyNoCompany code e.g. COMP0001 (default: selected company)
max_rowsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, yet the description still adds real value: which statement classes are rejected, that results are capped, and that dialect depends on the Access/SQL edition. The gap is that 'results capped' is left unquantified (the max_rows parameter exists but is never connected to this statement).

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?

Front-loads the routing signal ('Last resort') and compresses constraints into short clauses with no filler. The telegraphic style occasionally costs clarity ('Access edition', 'credential tables' are stated without elaboration), which is the only knock.

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?

A SQL-execution tool with an output schema and annotations is well served by stating rejection rules and dialect, and it does. However, an agent still lacks the size of the result cap, the behavior on a rejected query, and any indication of how paging or row limits interact with max_rows.

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 coverage is 75%, so the schema already documents fy, company and max_rows with defaults. The description's dialect note genuinely informs how to author the sql parameter, but it says nothing about fy, company, or how max_rows relates to the stated cap, so it does not fully compensate for the remaining coverage gap.

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 ('ONE read-only SELECT') plus the dialect split (Jet SQL vs T-SQL), so an agent immediately knows this is a raw-SQL escape hatch rather than a structured query tool. It also distinguishes itself from the sibling read-table by explicitly naming it as the preferred route.

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?

Opens with 'Last resort' and 'Prefer read-table', giving both the when-not and the named alternative in the first sentence. The rejection list (writes, multiple statements, external databases, credential tables) further bounds when this tool is even applicable.

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