Skip to main content
Glama

Count the library

get_library_stats
Read-onlyIdempotent

Count published smart components, slates, and presentations in the shared library, including built-in and community components, totals, and items per category.

Instructions

Count the published smart components, slates and presentations in the shared library, and the items in each category.

Library counts. How many published items the shared library holds: smart components (built in and from the community, and the total), slates, presentations, and items per category. Open to anyone.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already state readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds real scope details beyond those annotations: only published items are counted, the smart-component total includes both built-in and community components, and results are broken down per category. The remaining gap is the shape of the response, which is only loosely implied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded with a clear summary sentence, but the second paragraph largely restates the first ('Library counts... How many published items...'), which is redundant. It is short enough not to be penalized heavily, yet roughly half the text adds nothing new.

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 simple parameterless read tool with full annotation coverage, the definition tells the agent what is counted, that only published items count, and that access is unrestricted. It is effectively complete, with only minor vagueness about the returned structure.

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

Parameters4/5

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

The tool accepts zero parameters and the schema is closed, so there is no parameter meaning to convey. The description correctly presents the tool as taking no filtering input.

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?

This uses a precise verb-and-resource pairing: count published smart components, slates, presentations, and items per category in the shared library. That reads distinctly from item-returning siblings such as list_library or get_library_item. It never explicitly names an alternative, so it falls short of the top tier.

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?

'Open to anyone' tells the agent there are no permission prerequisites. Beyond that, it gives no explicit when-to-use condition, nor does it say when you should call list_library or get_library_item instead. The choice between counts and item listings is left for the caller to infer from the word 'count'.

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