Skip to main content
Glama
MCP Project Context Server

MCP Project Context Server

db_config

Configure the PostgreSQL connection for the current project by supplying host, database, user, and password so database queries target the correct instance.

Instructions

Configura a conexão com o banco de dados PostgreSQL para o projeto atual

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "host": "<host>",
      "database": "<database>",
      "user": "<user>",
      "password": "<password>"
    },
    "name": "db_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYesHost do banco de dados (ex: localhost, 54.198.204.191)
portNoPorta do banco de dados (padrão: 5432)
userYesUsuário do banco de dados
projectNoNome do projeto (opcional, detecta automaticamente se não fornecido)
databaseYesNome do banco de dados
passwordYesSenha do banco de dados

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It never states whether the configuration persists, whether it overwrites an existing connection, whether credentials are stored or validated, or what happens on failure. For a tool that accepts a password and mutates project state, these omissions are significant.

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?

It is a single front-loaded sentence with no wasted words, and the PostgreSQL/project scope is established immediately. Its brevity reflects under-specification rather than padding, so it scores well here while being penalized in other dimensions.

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?

With six parameters, four required, no annotations, and no output schema, the description should disclose more about persistence, idempotency, credential handling, and error behavior. The schema covers parameter meanings, but nothing tells the agent what effect the call has on the project's state or what to expect back.

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 host, port default 5432, project auto-detection, and password is already documented in the schema. The description adds no additional meaning beyond that, which is the expected baseline when the schema does the heavy lifting.

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 names a specific verb and resource: 'Configura a conexão com o banco de dados PostgreSQL' for the current project. An agent can tell this is a setup/connection-configuration tool rather than a query tool. It does not explicitly distinguish itself from siblings like db_query or db_list_tables, so it falls 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 Guidelines3/5

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

Usage is only implied: configuring a connection logically precedes querying, so an agent can infer this is a prerequisite step. There is no explicit statement of when to call it, whether it must be called once per project, or what to do if a connection is already configured.

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