x_api_get_posts_counts_all
Retrieve the total count of posts that match a given query. Use this read-only tool to obtain post count metrics for analysis and reporting.
Instructions
Get count of all Posts. Use when: Get count of all Posts. Do not use when: a more specific auth/configuration tool is required before the API call or you are only exploring; prefer x_schema_discovery or x_query_suggestion first. Risk: read-only. Required permissions and prerequisites: bearer token Environment-selection behavior: scopeTenantId plus exactly one of scopeUserId or scopeAccountId choose the Vault/Postgres tenant principal used for auth resolution. credentialKey selects a non-default stored credential profile when present. Parameter formats and constraints: query (query, string, required); start_time (query, string); end_time (query, string); since_id (query, unknown); until_id (query, unknown); next_token (query, unknown); pagination_token (query, unknown); granularity (query, string). Expected response shape: { ok, status, data: { method, path, url, status, contentType, authType, data } } Common failure conditions: missing scoped credentials in Vault, missing required API parameters, X API auth failures, rate limits, or unsupported multipart/body shape. Recommended prerequisite and follow-up tools: x_connection_info, x_schema_discovery, x_auth_get_scope_credentials, x_api_request. Safety warnings: This is read-only, but responses can still include sensitive account data depending on granted scopes. Example: {"name":"x_api_get_posts_counts_all","arguments":{"scopeTenantId":"default","scopeUserId":"default"}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| end_time | No | ||
| since_id | No | ||
| until_id | No | ||
| next_token | No | ||
| start_time | No | ||
| granularity | No | ||
| scopeUserId | No | ||
| credentialKey | No | ||
| scopeTenantId | No | ||
| scopeAccountId | No | ||
| authorizationKey | No | ||
| pagination_token | No | ||
| preferredAuthType | No |