Skip to main content
Glama

server_info

Read-only

Retrieves MySQL version, release line, uptime, time zone, and key global settings so you can identify the database server before querying it.

Instructions

Returns the MySQL version, release line, uptime, session time zone and key global settings (buffer pool, binlog/GTID, read_only, sql_mode, charset). Use it first to learn what kind of server you are talking to.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "server_info"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
versionYes
sql_modeYes
gtid_modeYes
read_onlyYes
time_zoneYesSession time zone, e.g. SYSTEM or +00:00.
utc_offsetYesCurrent offset of session time from UTC, e.g. +01:00 or -05:30.
version_rawYes
release_lineYes
binlog_formatYes
uptime_secondsYes
max_connectionsYes
super_read_onlyYes
version_commentYes
collation_serverYes
system_time_zoneYesThe server host's zone, used when SYSTEM.
sakila_mcp_versionYes
character_set_serverYes
default_storage_engineYes
innodb_buffer_pool_sizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds only that the output is server-level configuration context suited to a first call; it says nothing about privilege requirements, cost, or whether values are session- vs global-scoped (it hints at "session time zone" and "global settings" but does not resolve the distinction).

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?

Two sentences, front-loaded with the returned fields and closed by the actionable usage hint. The parenthetical field list is dense but each item is informative; minor compression possible but no filler.

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?

An output schema exists, so the description need not document return values, and it nonetheless summarizes them by category. For a zero-parameter read-only tool this is essentially complete; only privilege or cost caveats are absent, which is a small gap.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4 and there is nothing for the description to disambiguate. It correctly implies a parameterless introspection call with no filtering options.

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 resource (MySQL server) and enumerates exactly what it returns: version, release line, uptime, session time zone, buffer pool, binlog/GTID, read_only, sql_mode, charset. This is clearly distinguishable from siblings like describe_table or list_databases, which operate on schema objects rather than server-level state.

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

Usage Guidelines4/5

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

"Use it first to learn what kind of server you are talking to" gives explicit call-ordering guidance that no sibling provides. It does not name alternatives or state when not to call it, but no sibling overlaps in scope, so the omission is minor.

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