Skip to main content
Glama

Merge tenders

merge_tenders
DestructiveIdempotent

Merge duplicate tenders into one leading record. Nothing is deleted: each duplicate keeps its row, its source, its URL and its own deadline, and only gains a pointer to the leader — that is what makes this reversible (unmerge_tender) and what keeps the differing deadline visible. The leader takes the deadline from the HIGHEST-RANKING source (authority > manual > mirror > aggregator), never simply the newest entry: an aggregator's "00:00" is a placeholder, not a time, and that exact blur nearly caused a missed deadline once. Where two records carry a human-set status (anything other than discovered/analyzed), the later one wins. Merged records disappear from list_tenders unless include_merged is set.

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": {
      "leader_tender_id": "<leader_tender_id>",
      "duplicate_tender_ids": "<duplicate_tender_ids>"
    },
    "name": "merge_tenders"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy these belong together — the proposal's evidence line. Kept on the record.
merge_keyNoThe group key from find_duplicate_tenders.
apply_statusNoMove the prevailing human status onto the leader. Default true.
apply_deadlineNoMove the best-ranked deadline onto the leader. Default true.
leader_tender_idYes
duplicate_tender_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations it discloses the actual mutation semantics: duplicates keep their row, source, URL and own deadline and only gain a pointer, which is what makes unmerge possible. It also specifies resolution precedence — leader deadline comes from the highest-ranked source (authority > manual > mirror > aggregator), later human status wins — and the visibility side effect on list_tenders. Note the tension with destructiveHint=true: the description reframes this as non-destructive-by-pointer, which is useful qualification rather than a contradiction, since rows do disappear from default listings.

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, then the invariants, then the precedence rules, then the list-visibility caveat — a logical order with no filler sentences. The parenthetical anecdote about a nearly missed deadline adds motivating rationale but is the one stretch that could be trimmed.

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, destructive mutation with no output schema, the description covers what changes, what is preserved, how conflicts resolve, and how to undo it. Remaining gaps are the response shape and authorization requirements, plus what happens to non-deadline, non-status fields that differ between duplicates.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 67% schema coverage the schema already documents reason, merge_key, apply_status and apply_deadline. The description adds real meaning to apply_deadline (what 'best' means: source-rank precedence, aggregator 00:00 placeholders) and to apply_status (only human-set statuses compete), but says nothing about merge_key or how leader_tender_id/duplicate_tender_ids are validated (e.g. whether the leader can itself be a duplicate).

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 first sentence states a specific verb and resource — 'Merge duplicate tenders into one leading record' — and the description names the exact inverse (unmerge_tender) and the downstream effects on list_tenders. An agent can distinguish this from find_duplicate_tenders or unmerge_tender without opening any schema.

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 establishes the operating context (duplicate groups, merge_key from find_duplicate_tenders, reversibility via unmerge_tender) and warns that merged rows vanish from list_tenders unless include_merged is set. It stops short of an explicit 'call find_duplicate_tenders first, then call this only when X' routing statement, so the when-to-use rule is implied rather than stated.

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