Skip to main content
Glama

db_check_semantic_intent

Compare stated user intent with SQL AST target columns to detect unauthorized changes to sensitive privilege, financial, or credential data before execution.

Instructions

Compare stated user prompt intent against SQL AST target columns to detect unauthorized modification of sensitive privilege, financial, or credential columns.

Input Schema

NameRequiredDescriptionDefault
sqlYesThe SQL query to check.
intentNoThe stated prompt intent or instruction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations, the description must disclose behavioral traits, but it does not say whether the tool executes SQL, is read-only, needs elevated permissions, returns findings, or what happens when it detects a violation. The single sentence only gives the detection purpose, leaving the operational profile largely unknown.

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?

It is a single front-loaded sentence with no filler; the sensitive-column categories are specific and earn their place.

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

Completeness2/5

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

Because there is no output schema and no annotations, the description should say what the tool returns and how a finding is reported. It also omits usage context relative to sibling tools, so an agent cannot fully determine the invocation semantics from this definition alone.

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 100%, so the schema already documents sql and intent. The description maps them to 'stated user prompt intent' and 'SQL AST target columns' but does not add format, examples, or constraints beyond the schema, so baseline 3 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?

It names a specific comparison operation (intent vs. SQL AST target columns) and the security outcome (unauthorized modification of sensitive columns). That is enough for an agent to distinguish it from db_query or db_dry_run, which execute or simulate queries.

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 implies usage by calling it a check for unauthorized modification, but it never says when to call it, whether it precedes db_commit or db_dry_run, or whether it can be used independently. No sibling alternatives are named, so the agent must infer routing.

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