Skip to main content
Glama

database_semantic_enable

Turns on semantic search for one table of a Product's Postgres. Helm7 adds a helm7 schema inside the database holding a small side table of 512-dimension vectors and a keyword index for the chosen columns, plus triggers that queue changed rows, then embeds every existing row in the background and every new or changed one within a minute. The data is not copied anywhere: the side table holds the primary key, a hash and the vector. The text of the chosen columns is sent to llm11, which embeds it with OpenAI text-embedding-3-small; no other column leaves the database. The dry run states the row estimate, the one-off backfill tokens and their price, the storage it adds and the index plan. Embedding is billed per token at cost. Call it again with another table to add one; template: "agent_memory" also creates a ready-made memory.items table and turns relationships on.

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_semantic_enable"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNoA table in the database, as schema.table or just table (public is assumed). It needs a single-column primary key.
columnsNoThe text columns that describe a row, in the order they should be read, e.g. ["title", "body"]. Only these columns are sent to the embedding model; the rest of the row never leaves the database.
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.
languageNoText search configuration for the keyword half of search. simple matches words exactly and suits mixed-language data; a language stems words, so "invoices" finds "invoice".simple
templateNoInstead of an existing table, create memory.items (id, scope_id, kind, title, body, tags, valid_to) and make it searchable, with relationships on. The pattern for agent memory: plain rows your app already knows how to read.
productIdYesProduct identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d.
databaseIdYesDatabase identifier, from product_get or database_get.
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.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=false and destructiveHint=false; the description goes far beyond by disclosing the helm7 schema, side table, triggers, background backfill timing, that no data is copied, that only chosen column text is sent to llm11/OpenAI, and that embedding is billed per token. This is exactly the behavioral context an agent needs before a mutating, money-spending call.

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?

The action and its scope are front-loaded, and the dense paragraph is mostly substantive. A few sentences are long and could be split, but no sentence is filler given the complexity of the side effects being described.

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

Completeness5/5

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

For a 9-parameter mutating tool with no output schema, the description covers data flow, cost, backfill behavior, dry-run output and the template path. An agent has everything needed to call it safely and predict its effects.

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 real meaning: it explains that only the chosen columns are embedded, that the template creates memory.items with relationships on, and that the dry run reports row estimate, backfill tokens, price and storage. It does not elaborate on language or idempotency_key beyond the schema.

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 opening sentence states a specific verb and resource: 'Turns on semantic search for one table of a Product's Postgres.' The enable action is clearly distinguished from the disable/status/update siblings by the verb, and the description explains the incremental 'call it again with another table' behavior.

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 concrete usage guidance: run the dry run before any change you have not made before, call again with another table to add one, and use the 'agent_memory' template for a ready-made memory table. It does not explicitly contrast with database_semantic_update or database_graph_enable, so it stops short of full when/when-not routing.

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