Skip to main content
Glama

database_graph_enable

Turns on relationships for a Product's Postgres. Foreign keys are read from the catalogue as they are, so there is nothing to import and no second copy of the data: the graph is the tables. Two additions live in the database's helm7 schema: virtual foreign keys, for columns that point at another table without a constraint (pass them in virtual_fks; calling again replaces the set), and an edges table for links that are not columns at all, written with database_edge_upsert. Free, and nothing is sent outside the database. The dry run lists foreign key columns that have no index, because traversing one of those scans the table.

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": {
      "productId": "<productId>",
      "databaseId": "<databaseId>"
    },
    "name": "database_graph_enable"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoRequired for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would.
dry_runNoReturn the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before.
productIdYesProduct identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d.
databaseIdYesDatabase identifier, from product_get or database_get.
virtual_fksNoColumn links without a constraint. Replaces the current set when given.
idempotency_keyNoReplaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: no data is copied or sent outside the database, virtual_fks replaces the existing set on each call, and the dry run reports unindexed foreign key columns.

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?

Purpose is front-loaded in the first clause, and the following sentences each carry distinct information (no import, virtual_fks semantics, edges table, dry-run diagnostics). It is dense but not padded, though the helm7 schema detail is slightly more than an agent needs to select the tool.

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 six-parameter mutation tool with no output schema, the description covers the mechanism, the replacement semantics of virtual_fks, the relationship to database_edge_upsert, and the dry-run behavior. Only the confirm/idempotency flow is left entirely to the schema, which is acceptable given full schema coverage.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: virtual_fks is a replacement set rather than an append, and dry_run surfaces unindexed FK columns. It does not explain confirm or idempotency_key, which the schema already documents.

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 ('Turns on relationships for a Product's Postgres') and immediately explains the mechanism (foreign keys read from the catalogue, the graph is the tables), which distinguishes it from database_graph_disable and database_semantic_enable.

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?

It routes edge creation to database_edge_upsert and notes that re-calling replaces the virtual_fks set, which is useful context. But it never states when to choose this over database_graph_infer or database_semantic_enable, and gives no explicit when-not guidance.

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