Skip to main content
Glama
Automata MCP

Automata MCP

Check the database connection

get-database-info
Read-onlyIdempotent

Check PostgreSQL connectivity, server version, database, connection role, and token scope to determine whether a failed query is a connection issue rather than SQL.

Instructions

[PostgreSQL] Report whether this connector can reach its database, which server version and database it is, which role it connects as, and what this token is scoped to. Call this first when a query fails in a way that might be the connection rather than the SQL. tablesInScope lists the tables this token may reach when it is scoped to an allowlist; when it is not, every table the role can read is reachable and list-tables is the way to see them.

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": "get-database-info"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds real context about what is disclosed (role, server version, token scope, tablesInScope semantics), but says nothing about what happens when the connection fails -- the exact scenario it is designed for -- so the most operationally relevant behavior is left implicit.

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?

Three sentences, front-loaded with the report contents, then the when-to-call trigger, then the scope caveat. Every clause carries information; nothing is repeated from the title or annotations.

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 zero-parameter read-only probe with no output schema, the description covers what an agent needs: what it returns, when to reach for it, and how token scoping affects reachability. Only the shape/format of the response and the failure-mode output are unspecified.

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 no syntax for the description to compensate for. The mention of tablesInScope is a return field rather than an input, so it does not change the parameter picture.

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?

Names a specific verb ('Report') and resource (this connector's database connection), then enumerates exactly what is reported: reachability, server version, database, role, and token scope. An agent knows precisely what this returns without opening any other field.

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 this first when a query fails in a way that might be the connection rather than the SQL' -- which is a clear diagnostic ordering rule. It also routes the unscoped case to list-tables, but states no explicit when-not condition and no cost or latency expectations.

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