Skip to main content
Glama

Count project items

count_project_items
Read-onlyIdempotent

Counts total project or bin items, including sub-bins, by kind, media category, file extension, and offline, subclip, or search-bin status.

Instructions

Count the items of the whole project or of one bin including its sub-bins: total, by kind (bin, clip, sequence, file), by media category (video, audio, image, generated, other), by file extension, plus offline, subclip and search-bin counts. Use list_project_items or find_project_items for the items themselves.

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

Input Schema

NameRequiredDescriptionDefault
bin_idNoStable id of the bin. Omit all bin_* arguments to use the project root.
bin_nameNoBin name; the first match is used.
bin_pathNoBin path, e.g. "Footage/Day 1".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/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 openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: the exact aggregation dimensions returned (total, by kind, by media category, by extension, plus offline, subclip and search-bin counts) and the fact that sub-bins are rolled into a bin's count.

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, front-loaded with the scope, then the return dimensions, then the sibling routing. Every clause carries information; no filler or restatement of the title.

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?

With no output schema, the description carries the burden of describing return content and does so thoroughly by enumerating every count category. What remains unstated is the response shape (flat map vs. nested breakdown) and whether counts are per-bin or project-wide only.

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 three bin_* parameters and the project-root fallback are already documented. The description adds one useful semantic not in the schema — that counting a bin includes its sub-bins — but says nothing about precedence when multiple bin_* arguments are supplied.

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 ("Count") and resource ("items of the whole project or of one bin including its sub-bins"), and explicitly distinguishes itself from list_project_items and find_project_items. An agent can tell immediately that this returns aggregates rather than item records.

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?

Explicitly routes the agent away from this tool when actual item records are needed ("Use list_project_items or find_project_items for the items themselves"). It also implies the omission case via "whole project or of one bin", though it does not spell out a "do not use for pagination/large scans" exclusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools