Skip to main content
Glama

detect_overlap

Read-onlyIdempotent

Detects redundant molds occupying the same flight slot or shot role, ranking pairs by overlap severity and recommending which disc to keep vs cut. 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": "detect_overlap"
  }
}

Input Schema

NameRequiredDescriptionDefault
discsNoList of discs in the bag (minimum 2 discs, 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')

Output Schema

NameRequiredDescriptionDefault
overlapsYes
overlap_countYes
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": {
      +    "interactive_bag_url": {
      +      "type": "string"
      +    },
      +    "overlap_count": {
      +      "type": "integer"
      +    },
      +    "overlaps": {
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "unresolved_discs": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "overlap_count",
      +    "interactive_bag_url",
      +    "overlaps",
      +    "unresolved_discs"
      +  ],
      +  "type": "object"
      +}
  2. Changed4 schema fields changed
    • changedInput schema / properties / discs / description
      Previous value: -"List of discs in the bag (minimum 2 discs)"New value: +"List of discs in the bag (minimum 2 discs, 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.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and closed-world scope, so the safety profile is covered. The description adds real value on top by disclosing the ranking behavior and that it emits a keep-vs-cut recommendation rather than raw overlap data. It doesn't mention that locked discs are excluded from cut recommendations, but the schema documents that.

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 sentences, zero filler, with the core behavior and its output front-loaded and the input modes confined to a short trailing sentence. Nothing is redundant or padded.

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 read-only analysis tool with an output schema, the description covers what it does, what it returns conceptually, and the accepted inputs. The only soft gap is that it doesn't explicitly say at least one of discs/share_id/share_url must be supplied, leaving that to the parameter descriptions.

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 baseline is 3. 'Accepts discs list or a BagIQ share link' restates the two input modes already fully documented in the schema and adds no format or precedence detail (e.g. what happens if both discs and share_url are supplied).

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?

States a specific verb and resource: 'detects redundant molds occupying the same flight slot or shot role,' and goes further to describe the output shape (ranked pairs plus keep/cut recommendations). It does not explicitly contrast itself with siblings like analyze_bag or find_bag_gaps, so it stops short of a 5.

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?

Usage is implied by the purpose — you call this when you suspect duplicated roles in a bag — but there is no explicit when-to-use, when-not-to-use, or alternative named. The agent must infer the boundary with analyze_bag and find_bag_gaps on its own.

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