Skip to main content
Glama

data_schema

Read-onlyIdempotent

Describe one table of a database on one of your servers: its columns with type, whether they can be empty, default value and primary key. Call it before writing a query against a table you have not seen. Works for postgres, mysql, mariadb and sqlite.

Input Schema

NameRequiredDescriptionDefault
hostYesServer id (or exact name) from hosts_list
tableYesTable name, optionally with its schema (e.g. users or public.users)
engineNoDatabase engine on that server (default postgres)
databaseNoDatabase name (for sqlite: the .db file path)
usernameNoSSH login user (defaults to the server's user, else root)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so the safety profile is covered. The description adds real context beyond that by specifying the exact fields returned and the supported engines (postgres, mysql, mariadb, sqlite). It omits auth/permission requirements and behavior on an unknown host or table.

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?

Three short sentences, front-loaded with the purpose and return contents before the usage instruction. The closing engine sentence is largely redundant with the schema enum, which is the only wasted clause.

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?

There is no output schema, so the description correctly carries the burden of explaining what comes back, and it does so thoroughly. Coverage of failure modes (bad host, missing table, insufficient permissions) is absent, but nothing essential to calling the tool correctly is missing.

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 description coverage is 100%, so every parameter including the engine enum and the sqlite file-path note is already documented in the schema. The description's only parameter-relevant content is the engine list, which merely restates the enum. Baseline 3 is correct.

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?

Uses a specific verb and resource ('Describe one table of a database') and enumerates exactly what is returned: columns, type, nullability, default value, primary key. This clearly separates it from data_tables (which lists tables) and data_query, though no sibling is named explicitly, so it stops short of a 5.

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?

Gives an explicit trigger: 'Call it before writing a query against a table you have not seen.' That ties the tool to the data_query workflow and states the condition that selects it. It does not state when not to use it (e.g. for a table you already know or for views), so it is not a full 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources