Skip to main content
Glama

build_minimal_bag

Read-onlyIdempotent

Extracts an optimal 3-to-5 disc minimalist setup from a larger bag, maximizing shot coverage while detailing necessary compromises. Accepts discs list or a BagIQ share link.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "build_minimal_bag"
  }
}

Input Schema

NameRequiredDescriptionDefault
discsNoFull disc collection or bag (optional if share_url or share_id is provided)
share_idNoOptional BagIQ short share ID (e.g. '4fisr8a7')
share_urlNoOptional BagIQ share link (e.g. 'https://app.bagiq.app/?s=4fisr8a7')
target_countNoTarget number of discs in the minimal bag (2..6, default 3)

Output Schema

NameRequiredDescriptionDefault
compromisesYes
actual_countYes
target_countYes
selected_discsYes
coverage_percentYes
unresolved_discsYes
interactive_bag_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "actual_count": {
      +      "type": "integer"
      +    },
      +    "compromises": {
      +      "type": "array"
      +    },
      +    "coverage_percent": {
      +      "type": "number"
      +    },
      +    "interactive_bag_url": {
      +      "type": "string"
      +    },
      +    "selected_discs": {
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "target_count": {
      +      "type": "integer"
      +    },
      +    "unresolved_discs": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "target_count",
      +    "actual_count",
      +    "coverage_percent",
      +    "interactive_bag_url",
      +    "selected_discs",
      +    "compromises",
      +    "unresolved_discs"
      +  ],
      +  "type": "object"
      +}
  2. Changed4 schema fields changed
    • changedInput schema / properties / discs / description
      Previous value: -"Full disc collection or bag"New value: +"Full disc collection or bag (optional if share_url or share_id is provided)"
    • addedInput schema / properties / share_id
      Added value: +{
      +  "description": "Optional BagIQ short share ID (e.g. '4fisr8a7')",
      +  "type": "string"
      +}
    • addedInput schema / properties / share_url
      Added value: +{
      +  "description": "Optional BagIQ share link (e.g. 'https://app.bagiq.app/?s=4fisr8a7')",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "discs"
      -]
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds that the result is coverage-optimized and includes 'necessary compromises,' but does not say how compromises are surfaced or how ties are broken.

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?

Two tight sentences with the core action front-loaded and the input-acceptance note following. No filler, no restatement of the tool name.

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?

An output schema exists, so return-value explanation is rightly omitted, and the schema documents all four parameters. However, the description's stated 3-to-5 disc window disagrees with the schema's 2..6 target_count range, leaving an agent unsure which constraint governs.

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 the schema already carries the parameter burden and baseline 3 applies. The description's only added parameter signal is the input-source choice, and its '3-to-5 disc' framing conflicts with target_count's documented range of 2..6, which muddies rather than clarifies.

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?

Names a specific verb and output artifact: extracting an 'optimal 3-to-5 disc minimalist setup from a larger bag' with 'maximizing shot coverage.' That is clearly distinguishable from analyze_bag or find_bag_gaps, though no sibling is named explicitly.

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 clarifies the two acceptable input sources (a discs list or a BagIQ share link), which is useful operational guidance, but it never states when to prefer this over analyze_bag or find_bag_gaps, nor any preconditions such as a minimum bag size.

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