Skip to main content
Glama

get_db_node

Retrieve detailed information about a specific database node in Oracle Cloud Infrastructure to monitor performance, check status, or manage configurations.

Instructions

Get DB Node details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
db_node_idYes

Implementation Reference

  • Core handler function that executes the OCI API call to retrieve DB Node details and formats the response dictionary.
    def get_db_node(database_client: oci.database.DatabaseClient, db_node_id: str) -> Dict[str, Any]:
        """Get DB Node details."""
        try:
            n = database_client.get_db_node(db_node_id).data
            return {
                "id": n.id,
                "db_system_id": n.db_system_id,
                "hostname": getattr(n, "hostname", None),
                "vnic_id": getattr(n, "vnic_id", None),
                "lifecycle_state": n.lifecycle_state,
                "software_storage_size_in_gb": getattr(n, "software_storage_size_in_gb", None),
                "time_created": str(getattr(n, "time_created", "")),
            }
        except Exception as e:
            logger.exception(f"Error getting DB Node: {e}")
            raise
  • MCP-registered tool handler for 'get_db_node', which wraps the core implementation with logging, error handling, and context support, delegating to the database client.
    @mcp.tool(name="get_db_node")
    @mcp_tool_wrapper(
        start_msg="Getting DB Node {db_node_id}...",
        success_msg="Retrieved DB Node successfully",
        error_prefix="Error getting DB Node"
    )
    async def mcp_get_db_node(ctx: Context, db_node_id: str) -> Dict[str, Any]:
        """Get DB Node details."""
        return get_db_node(oci_clients["database"], db_node_id)
  • Import statement registering the get_db_node helper function from dbsystems.py for use in the MCP server.
        list_db_systems,
        get_db_system,
        list_db_nodes,
        get_db_node,
        start_db_node,
        stop_db_node,
        reboot_db_node,
        reset_db_node,
        softreset_db_node,
        start_db_system_all_nodes,
        stop_db_system_all_nodes,
    )
Behavior1/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It states 'Get DB Node details' which implies a read-only operation, but doesn't confirm safety, permissions required, rate limits, error conditions, or response format. For a tool with zero annotation coverage, this minimal description fails to provide necessary behavioral context.

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?

The description is extremely concise at just three words. While this brevity comes at the cost of completeness, every word serves a purpose: 'Get' indicates the action, 'DB Node' specifies the resource, and 'details' suggests granular information. There's no wasted language or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero annotation coverage, no output schema, and 0% schema description coverage for the single required parameter, the description is completely inadequate. It doesn't explain what details are returned, how to interpret results, error handling, or any operational considerations. For a tool that presumably interacts with database infrastructure, this minimal description leaves critical gaps.

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

Parameters2/5

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

Schema description coverage is 0%, so the single parameter 'db_node_id' is undocumented in the schema. The description doesn't mention this parameter at all, failing to explain what a DB node ID is, where to find it, or its expected format. With one required parameter and no schema documentation, the description adds no value beyond what's already implied by the tool name.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get DB Node details' is a tautology that restates the tool name 'get_db_node' with minimal elaboration. While it indicates the tool retrieves information about a database node, it lacks specificity about what details are returned or the scope of the operation. It doesn't distinguish this tool from sibling 'list_db_nodes' or other get_* tools.

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

Usage Guidelines1/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites like authentication, differentiate from 'list_db_nodes' for bulk retrieval, or specify when detailed node information is needed versus summary data. With many sibling tools available, this absence of context is problematic.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jopsis/mcp-server-oci'

If you have feedback or need assistance with the MCP directory API, please join our Discord server