Skip to main content
Glama

Nibomo SQL execute (write)

sql_execute
Destructive

Writes to the Nibomo API (https://nibomo.com/docs/api/) with the published SQL dialect, not full PostgreSQL. Creates, updates or deletes workspace cards/decks with INSERT, UPDATE or DELETE; rejects read statements. Cannot write review_events or hidden FSRS state. front_text is a question and back_text its answer; new cards require at least one tag. Atomic batches allow 50 semicolon-separated write statements, 100 affected rows each. Arrays use ('a', 'b'), or () to clear. RETURNING * or columns returns affected rows. UPDATE and DELETE support tag filtering with tags OVERLAP ('tag'); UNNEST is available only in SELECT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesOne or more write statements in the published Nibomo SQL dialect (INSERT, UPDATE, DELETE).
workspaceIdNoWorkspace UUID from list_workspaces; omit for the selected default.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations (destructiveHint=true, readOnlyHint=false): it names protected tables (review_events, hidden FSRS state), batch limits (50 statements, 100 affected rows each), array literal syntax, and RETURNING semantics. This is the kind of constraint detail an agent cannot infer from structured fields.

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?

Front-loaded with the core write/dialect constraint, then dense constraint clauses; every sentence carries information, though the run of dialect rules makes it longer than strictly needed.

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?

With an output schema covering return values and annotations covering the safety profile, the description supplies the remaining operational constraints (limits, protected resources, dialect quirks) an agent needs to call this correctly.

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 schema already documents both parameters; the description adds dialect-level meaning for the sql value (allowed statement types, batch and row caps, OVERLAP tag filtering, UNNEST restriction) that the terse schema description omits.

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 (writes) and resource (workspace cards/decks via INSERT/UPDATE/DELETE) and explicitly excludes the sibling read path by noting it 'rejects read statements', separating it from sql_query.

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?

Clearly signals the write context and rules out read statements, which routes the agent to sql_query, but it never names the alternative tool or states prerequisites for selecting this one.

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.