Skip to main content
Glama
sondvdevblock

linkit-sql

LinkIt SQL: query

query
Read-only

Execute read-only SELECT/WITH queries on any LinkIt SQL environment with automatic result capping and secure credentials. Prevents destructive operations.

Instructions

Run a READ-ONLY SELECT/WITH query against a LinkIt SQL Server env. INSERT/UPDATE/DELETE/DDL/EXEC are blocked. Results are auto-capped (maxRows default 50, max 500) with truncation hints; set countTotal for COUNT(*).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envYesTarget env: internal | staging | uat | preprod | prod | au (always explicit, no default)
sqlYesSingle SELECT or WITH...SELECT statement
actionNoselectselect
maxRowsNoMax rows returned (default 50, max 500)
databaseNoOverride the env default database
trimCharsNoTrim long text cells at N chars (default 500)
countTotalNoAlso run COUNT(*) over the query (default false; can be slow on huge scans)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already provide readOnlyHint: true, and the description reinforces this. It adds meaningful behavioral details beyond annotations: results are auto-capped with maxRows default 50 and max 500, truncation hints are provided, and countTotal triggers an additional COUNT(*) that may be slow. This gives the agent practical expectations for execution without contradicting the annotation.

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 extremely compact: two sentences. The first sentence states purpose and restrictions, the second covers row caps and countTotal. Every clause earns its place, and the most critical information (read-only, query type) is front-loaded. No filler or repetition.

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

Completeness4/5

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

For a tool with 7 parameters and no output schema, the description provides sufficient execution context: allowed query forms, blocked operations, row limits, truncation hints, and an optional slow-mode flag. It does not describe error behavior or the exact output format, but the readOnlyHint and implicit SELECT semantics cover the main risks. Answers what an agent needs to call it correctly.

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?

The input schema already has 100% description coverage for all 7 parameters, including defaults and bounds for maxRows and countTotal. The description adds marginal value by mentioning 'truncation hints' and the behavior of countTotal on huge scans, but this does not substantially exceed what the schema already states. Baseline 3 is appropriate given the schema's completeness.

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 opens with 'Run a READ-ONLY SELECT/WITH query against a LinkIt SQL Server env' – a specific verb, resource, and query type. It names the blocked statement types, which further clarifies the tool's exact scope. This clearly distinguishes it from the sibling tools 'system' and 'explore' without needing to reference them.

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

Usage Guidelines3/5

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

The description makes the read-only intent explicit and states that INSERT/UPDATE/DELETE/DDL/EXEC are blocked, which tells the agent when not to use the tool. However, it does not name sibling alternatives or state explicit conditions for choosing this tool over 'explore' or 'system'. The usage context is implied rather than directly contrasted with other tools.

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

Deploy Server

Other Tools