Skip to main content
Glama

Fetch database deltas

fetch_database_deltas

Read the next ordered window of SQL deltas and canonical payloads for a database sync. claim=false is replayable; claim=true leases the window for 120 seconds. Apply a claimed window transactionally, including schema deltas, before ack_database_deltas. Each delta's sql is one executable batch in the registration's dialect (PostgreSQL or SQL Server); never join two SQL Server deltas into one batch. limit is also bounded by the registration's page_limit. snapshot_required pauses delivery until the snapshot is downloaded; the replica must apply it first. No LLM call. Leasing, cursors, quarantine and snapshot handling: enricher://docs/database-sync.

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": {
      "database_id": "<database_id>"
    },
    "name": "fetch_database_deltas"
  }
}

Input Schema

NameRequiredDescriptionDefault
claimNoLease the window (requires ack).
limitNo
sinceNoCursor: return deltas with id > since.
database_idYesDatabase sync UUID (from list_database_syncs).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, openWorldHint=false, destructiveHint=false; the description adds the substantive behavior the agent actually needs — the 120-second lease on claim=true, the replayability guarantee of claim=false, transactional application requirements, per-delta batching rules for SQL Server, and page_limit bounding. That is real disclosure beyond the structured safety flags, and 'Read' is not contradicted by readOnlyHint=false since claiming mutates lease state.

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 action and modal branch, and every sentence carries operational meaning, including the pointer to enricher://docs/database-sync for deeper detail. It is dense and near run-on in places, with several imperative clauses packed into single sentences, but nothing is genuinely wasted.

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 stateful, leased, dialect-sensitive sync tool this covers modes, ordering, preconditions, batching hazards, and escalation to docs. Return values are already carried by the output schema, so not restating them is appropriate rather than a gap.

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 75% and the one gap is `limit`, which the description compensates for by bounding it against the registration's page_limit. It also enriches `claim` with lease semantics and ordering consequences. It adds nothing for `since` beyond the schema's cursor note, so it stops just short of fully covering the parameters.

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 ('Read the next ordered window of SQL deltas and canonical payloads') plus the domain context ('for a database sync'). It also distinguishes itself from the sibling ack_database_deltas by describing the window as something you apply and then acknowledge, so an agent can tell the two apart without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly splits the two modes: claim=false is replayable, claim=true leases the window for 120 seconds and requires an ack. It also names the required ordering ('Apply a claimed window transactionally ... before ack_database_deltas') and the snapshot precondition ('snapshot_required pauses delivery until the snapshot is downloaded; the replica must apply it first'), leaving little to inference.

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.