Skip to main content
Glama

merge_bird_batches

Consolidate multiple Live bird batches into a Target batch. Earliest hatch date across batches is inherited. Supports confirm and idempotency validation.

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": {
      "farmId": "<farmId>",
      "targetBatchId": "<targetBatchId>",
      "sourceBatchIds": "<sourceBatchIds>"
    },
    "name": "merge_bird_batches"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional notes to append to target batch
farmIdYesThe unique farm ID
confirmNoSet to true to commit, false for dry-run preview
locationNoOptional new location for consolidated batch (defaults to target location)
finalQuantityNoOptional final consolidated quantity (defaults to sum of all batches, 1 <= finalQuantity <= sum)
targetBatchIdYesTarget Live bird batch ID receiving the merged birds
idempotencyKeyNoUnique request idempotency key
sourceBatchIdsYesArray of source Live bird batch IDs to be merged into target
allowMixedVarietyNoRequired set to true if source batches contain varieties different from target

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false. The description adds real behavioral context beyond them: earliest hatch date is inherited across batches, and confirm supports a dry-run preview with idempotency validation. It omits what happens to the source batches after a merge (consumed, archived, deleted), which is the biggest behavioral unknown for an irreversible-feeling operation.

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?

Three short sentences, front-loaded with the core action and the inheritance rule. The final sentence about confirm and idempotency partly restates what the schema already documents, so it is slightly redundant but not wasteful.

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

Completeness3/5

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

For a 9-parameter mutation with no output schema, the description leaves key gaps: what a dry-run preview returns, whether source batches survive the merge, and what the success response looks like. It covers the core mechanics but not enough for an agent to reason about outcomes without experimentation.

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?

Schema description coverage is 100%, so every one of the 9 parameters (including finalQuantity bounds and allowMixedVariety) is already documented in the schema. The description only echoes confirm and idempotencyKey, adding no formatting or constraint detail beyond it. Baseline 3 applies when the schema carries the parameter burden.

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 ('Consolidate'), a precise resource ('multiple Live bird batches into a Target batch'), and the direction of the operation. This clearly separates it from siblings such as unmerge_bird_batches and get_bird_batches.

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

Usage Guidelines3/5

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

The description implies the use case (combining live batches) and mentions dry-run via confirm, but never explicitly states when to use this instead of merging at a different time, nor when to avoid it. It names no alternative sibling and gives no preconditions such as 'use unmerge_bird_batches to reverse'.

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