Skip to main content
Glama

Add a private network

add_private_network

Makes a private network for a database that CodeGene cannot reach over the internet (test_connection's guide offers it): a private tunnel the person connects from a machine inside their network. It is ready at once; then get_private_network_setup gives the one command to run there, check_private_network says when it is connected, and connect_service connects the database naming the network in its Private network setting with the database's own address inside the network. If it answers that it could not be made, call it again with the same name to finish. Only owners and admins can add one.

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": {
      "name": "<name>",
      "reason": "<reason>"
    },
    "name": "add_private_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe network's name: 1 to 63 lowercase letters, digits or dashes, starting and ending with a letter or digit (office, plant-2). A database connection names it in its Private network setting.
reasonYesWhy, in a sentence: kept in the workspace's activity.
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare the mutation profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true); the description adds real context beyond that: the network is ready immediately, creation can fail in a recoverable way that is resolved by retrying with the same name, and the caller must be an owner or admin. It does not describe what a duplicate-name attempt does or what the success response contains, leaving a modest gap for a creation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the rest is a long chain of clauses and parentheticals ("test_connection's guide offers it", the embedded description of connect_service's setting) that reads as run-on and takes effort to parse. The content mostly earns its place, but the packaging could be split into shorter, more scannable statements.

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 creation tool with no output schema, the description covers lifecycle (instant readiness), authorization (owners/admins), failure recovery (retry with same name), and the downstream steps that consume the network. Only the shape of the success response and duplicate-name behavior are left unstated.

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 the baseline applies; the description does add that the name is the value later referenced in a database connection's Private network setting and that the same name is reused on retry, which gives the name field operational meaning. It says nothing about `reason` or `workspace_id`, but the schema already documents both fully.

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?

States a specific verb and resource ("Makes a private network") and immediately scopes it: for a database CodeGene cannot reach over the internet, accessible via a tunnel from a machine inside the user's network. It also explicitly separates itself from the sibling operations that follow (get_private_network_setup, check_private_network, connect_service), so an agent can place it in the sequence without opening other schemas.

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?

The trigger condition is stated (database not reachable over the internet, as surfaced by test_connection's guide) and the follow-on tools are named with their roles, plus an explicit retry rule: if creation fails, call again with the same name. What's missing is an explicit when-not-to-use or a note about what to do if a network with that name already exists, so the routing is clear but not exhaustive.

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