Skip to main content
Glama
joyous-coder

universal-db-mcp

by joyous-coder

get_query_history

Retrieve and filter recent database query history by database, kind, time range, errors, or profile. Use it to analyze past activity and troubleshoot issues.

Instructions

Get recent query history. Filters: db, kind, since, until, onlyErrors, limit (default 50). v2.19: profileName (string | null) + groupBy='profile' (aggregates).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dbNo
kindNo
limitNo
sinceNo
untilNo
groupByNoAggregate query. v2.19.
onlyErrorsNo
profileNameNoFilter by profile. null = global-only; string = that profile. v2.19.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv5.0.2

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It adds useful behavioral details like the default limit of 50, the versioned profileName null semantics, and aggregation via groupBy. However, it does not disclose return format, pagination behavior, or whether this is strictly read-only.

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 compact and front-loaded: purpose first, then filters, then version-specific additions. It wastes no words, though cramming eight parameters into one line makes it slightly dense.

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?

Given eight parameters, no annotations, and no output schema, the description is incomplete. It omits output shape, parameter formats, and any guidance relative to sibling tools, leaving agents to guess at critical details for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25% (2 of 8 parameters have descriptions), so the description must compensate. It lists all parameter names and provides the limit default, but db, kind, since, until, and onlyErrors are left semantically vague—no formats, allowed values, or defaults beyond the list.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action and resource: 'Get recent query history.' This distinguishes it from execution, explanation, and linting siblings, though it does not explicitly name any alternative.

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?

Usage is implied through the verb 'Get' and the listed filters, but there is no explicit guidance on when to prefer this over sibling tools like audit_log or get_metrics, nor any when-not-to-use conditions.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/joyous-coder/universal-db-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server