Skip to main content
Glama

count_entries

Read-only

Count total entries in a content type, with optional filters for locale or status. Use to assess dataset size before bulk operations or verify migration completeness.

Instructions

Count the total number of entries in a content type, optionally filtered by criteria. Makes a lightweight API call that only requests pagination metadata to get the total count efficiently. Use this to understand dataset sizes before bulk operations or to verify migration completeness.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoLocale code to count entries for a specific language (e.g., 'en', 'fr')
statusNoPublication status filter: 'draft' or 'published' (v5 only)
filtersNoJSON string of Strapi filters to count only matching entries (e.g., '{"category":{"$eq":"tech"}}', '{"price":{"$gt":50}}'). Omit for total count.
content_typeYesPlural API ID of the content type to count (e.g., 'articles', 'products')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already indicate read-only and non-destructive behavior. The description adds value by disclosing the lightweight API call that only requests pagination metadata for efficiency, aligning with annotations and providing extra behavioral context.

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?

Three sentences, each serving a distinct purpose: purpose, implementation detail, usage guidance. No unnecessary words, front-loaded with the core action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description suffices by covering purpose, efficiency, and use cases. No gaps identified.

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 description adds no new details about individual parameters beyond summarizing overall filtering capability. The baseline of 3 is appropriate.

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?

The description clearly states the verb 'Count', the resource 'entries in a content type', and the ability to filter. It distinguishes from siblings like 'list_entries' by emphasizing the count action and lightweight nature.

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?

The description explicitly guides when to use: 'understand dataset sizes before bulk operations or to verify migration completeness'. It does not address when not to use, but the guidance is clear and helpful.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alex2zimmermann-ux/strapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server