Skip to main content
Glama

Odoo instance PostgreSQL settings

hodiploy_get_postgres_config
Read-onlyIdempotent

The live PostgreSQL configuration of an instance, read from its running database: settings (every setting not at its built-in default, one "name = 'value'" per line, editable), managed (settings Hodi manages, read-only: listening address, port...), and pending_restart (saved, waiting for a database restart). Call this before hodiploy_set_postgres_config.

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": {
      "instance_id": "<instance_id>"
    },
    "name": "hodiploy_get_postgres_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
service_idNoHodiploy service id from hodiploy_list_instances. Optional when the user has a single Hodiploy service.
instance_idYesInstance id from hodiploy_list_instances.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior: the values are read live from the running database, `settings` are editable while `managed` entries are read-only, and `pending_restart` means saved-but-not-applied. That is solid added context, though it leaves gaps: nothing is said about what happens if the database is stopped or how large the settings payload might be.

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 one dense sentence, but it is front-loaded with the purpose and then structured as a colon-delimited list of the three returned fields. Every clause carries information; the wording is compact rather than padded, though the single sentence is slightly heavy to parse.

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 must explain return values, and it does so for all three fields, including their editability and restart semantics. For a two-parameter read tool that is close to complete; only error/failure conditions are unaddressed.

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 coverage is 100%, so both `service_id` and `instance_id` are already documented in the schema, including that service_id is optional for single-service users. The description adds nothing about parameters, so the baseline 3 applies.

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?

The description names a specific resource and scope: 'The live PostgreSQL configuration of an instance, read from its running database.' It is clearly distinguishable from the sibling write tool hodiploy_set_postgres_config and from adjacent read tools like hodiploy_get_database_health or hodiploy_list_postgres_sessions, and it enumerates exactly what the tool returns.

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?

It gives an explicit sequencing instruction: 'Call this before hodiploy_set_postgres_config,' which tells the agent when this tool is a prerequisite. It does not, however, state any when-not conditions or alternatives for read-only inspection.

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