Skip to main content
Glama

Organize with AI (OwAI)

Inspect library organization

inspect_library
Read-onlyIdempotent

Read the synced folder/source hierarchy immediately from the shared index. Each source contains its own collections, groups, and recognized people. Groups include the exact date and keyword rules used by the app's automatic-fill engine; use returned keyword IDs for remove_keyword. Duplicate sets and unassigned faces have dedicated tools.

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": "inspect_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idNo
source_idNo
include_coverageNo

Output Schema

NameRequiredDescriptionDefault
sourcesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed40 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / properties / sources / items / properties / active_assets / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / sources / items / properties / active_assets / minimum
      Added value: +0
    • changedOutput schema / properties / sources / items / properties / active_assets / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / sources / items / properties / collections / items / properties / end_timestamp / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / sources / items / properties / collections / items / properties / end_timestamp / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / sources / items / properties / collections / items / properties / image_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / sources / items / properties / collections / items / properties / image_count / minimum
      Added value: +0
    • changedOutput schema / properties / sources / items / properties / collections / items / properties / image_count / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / sources / items / properties / collections / items / properties / keywords
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        ]
      +      },
      +      "keyword": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "keyword"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / sources / items / properties / collections / items / properties / rules
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "end_timestamp": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "keywords": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              }
      +            ]
      +          },
      +          "keyword": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "keyword"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "start_timestamp": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "start_timestamp",
      +    "end_timestamp",
      +    "keywords"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / sources / items / properties / collections / items / properties / start_timestamp / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / sources / items / properties / collections / items / properties / start_timestamp / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / sources / items / properties / collections / items / properties / video_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / sources / items / properties / collections / items / properties / video_count / minimum
      Added value: +0
    • changedOutput schema / properties / sources / items / properties / collections / items / properties / video_count / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / sources / items / properties / groups / items / properties / end_timestamp / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / sources / items / properties / groups / items / properties / end_timestamp / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / sources / items / properties / groups / items / properties / image_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / sources / items / properties / groups / items / properties / image_count / minimum
      Added value: +0
    • changedOutput schema / properties / sources / items / properties / groups / items / properties / image_count / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / sources / items / properties / groups / items / properties / keywords
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        ]
      +      },
      +      "keyword": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "keyword"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / sources / items / properties / groups / items / properties / rules
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "end_timestamp": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "keywords": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              }
      +            ]
      +          },
      +          "keyword": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "keyword"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "start_timestamp": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "start_timestamp",
      +    "end_timestamp",
      +    "keywords"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / sources / items / properties / groups / items / properties / start_timestamp / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / sources / items / properties / groups / items / properties / start_timestamp / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / sources / items / properties / groups / items / properties / video_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / sources / items / properties / groups / items / properties / video_count / minimum
      Added value: +0
    • changedOutput schema / properties / sources / items / properties / groups / items / properties / video_count / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / sources / items / properties / people / items / properties / end_timestamp / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / sources / items / properties / people / items / properties / end_timestamp / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / sources / items / properties / people / items / properties / image_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / sources / items / properties / people / items / properties / image_count / minimum
      Added value: +0
    • changedOutput schema / properties / sources / items / properties / people / items / properties / image_count / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / sources / items / properties / people / items / properties / keywords
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        ]
      +      },
      +      "keyword": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "keyword"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / sources / items / properties / people / items / properties / rules
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "end_timestamp": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "keywords": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              }
      +            ]
      +          },
      +          "keyword": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "keyword"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "start_timestamp": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "start_timestamp",
      +    "end_timestamp",
      +    "keywords"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / sources / items / properties / people / items / properties / start_timestamp / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / sources / items / properties / people / items / properties / start_timestamp / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / sources / items / properties / people / items / properties / video_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / sources / items / properties / people / items / properties / video_count / minimum
      Added value: +0
    • changedOutput schema / properties / sources / items / properties / people / items / properties / video_count / type
      Previous value: -"number"New value: +"integer"
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint), so the bar is lower, and the description still adds real context: data comes 'immediately from the shared index' (no live sync wait) and group objects contain the exact date/keyword rules used by the automatic-fill engine. That tells the agent what kind of payload and freshness to expect, though nothing is said about size or pagination.

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?

Four compact sentences, front-loaded with the core action, and each sentence carries distinct information (scope, nesting, group rules, sibling routing). It is dense but not padded.

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 values need not be described, and the read-only annotations cover safety. The remaining gap is the parameters: with zero schema descriptions and no parameter discussion in the description, an agent cannot confidently supply device_id, source_id, or include_coverage.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters (device_id, source_id, include_coverage), so the description carries the full burden of explaining them. It says nothing about scoping by device or source, nor what include_coverage changes in the response, leaving all three parameters semantically opaque.

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?

The description gives a specific verb and resource: reading the synced folder/source hierarchy from the shared index, and it clarifies that each source nests collections, groups, and recognized people. It partially differentiates from siblings by pointing duplicate sets and unassigned faces to dedicated tools, though it never distinguishes itself from list_media_sources or list_media_devices, which also surface source information.

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?

It provides exclusions ('Duplicate sets and unassigned faces have dedicated tools') and a downstream usage note ('use returned keyword IDs for remove_keyword'), which helps route the agent away from the wrong tools. However, it never states the positive trigger for calling inspect_library versus list_media_sources, so the when-to-use condition is only implied.

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