Skip to main content
Glama

database_semantic_update

Changes the columns or text search language of a table that already has semantic search. Changing the columns re-embeds every row, and the dry run prices that; changing only the language rebuilds the keyword index and costs nothing. While the re-embed runs, search keeps answering from the vectors already there.

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>",
      "table": "<table>"
    },
    "name": "database_semantic_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesA 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
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.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the re-embed cost, the zero-cost language-only path, and that search keeps answering from existing vectors while re-embedding runs. It does not address reversibility, permissions, or the confirm/idempotency requirements, which the schema covers instead.

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?

Three tight sentences, each carrying a distinct fact: what changes, what each change costs, and what happens during the operation. Front-loaded with the action and free of filler.

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 non-idempotent mutation with no output schema and fully documented parameters, the description supplies the cost, availability, and mode trade-offs an agent needs before calling. It stops short of describing what the call returns or when confirmation is required, leaving those to the schema.

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 about the consequences of the two main inputs: columns triggers a full re-embed with cost, language only rebuilds the keyword index at no cost. That cost/side-effect mapping is not derivable from the schema alone.

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

Purpose4/5

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

States a concrete verb and resource: it changes the columns or text search language of a table that already has semantic search. The clause 'already has semantic search' implicitly separates it from database_semantic_enable/disable, though no sibling is named outright, so the agent must infer the routing boundary.

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?

Gives clear situational guidance: changing columns re-embeds everything and should be priced with the dry run, while changing only the language is free. It does not explicitly say to use database_semantic_enable for tables without semantic search, so one alternative path is left implicit.

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