count_entries
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content_type": "<content_type>"
},
"name": "count_entries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Locale code to count entries for a specific language (e.g., 'en', 'fr') | |
| status | No | Publication status filter: 'draft' or 'published' (v5 only) | |
| filters | No | JSON string of Strapi filters to count only matching entries (e.g., '{"category":{"$eq":"tech"}}', '{"price":{"$gt":50}}'). Omit for total count. | |
| content_type | Yes | Plural API ID of the content type to count (e.g., 'articles', 'products') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |