Skip to main content
Glama

estimate_pages

Estimate page count before generating Xiaohongshu image cards to avoid unnecessary image generation. Use aspect ratio, font size, or custom characters per page for accurate estimates.

Instructions

Estimate how many pages the text will be split into without generating images

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text content to estimate
ratioNo3:4
fontSizeNomedium
charsPerPageNoCustom characters per page
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does disclose the key behavior that no images are generated, which is a significant trait distinguishing it from siblings. However, it does not mention any side effects, permissions, or what the function returns, leaving some behavioral aspects undisclosed.

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?

The description is a single, concise sentence front-loaded with the purpose: 'Estimate how many pages the text will be split into'. Every word earns its place, with no extraneous details or repetition of schema information.

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?

Given the tool's simplicity, the description is largely complete for a single-purpose estimation tool. It clarifies the non-generation aspect and works with sibling names to frame its role. However, it lacks any mention of output format or edge cases, which would be more critical for a complex tool, but for this basic estimator it is sufficient.

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?

The input schema has 50% description coverage. The required 'text' parameter and 'charsPerPage' have descriptions, while 'ratio' and 'fontSize' lack descriptions but have enums and defaults that provide self-documenting semantics. The tool description itself adds no parameter-specific information, so it neither compensates nor detracts from the schema.

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 tool's function: 'Estimate how many pages the text will be split into'. It specifies the verb (estimate) and resource (pages from text), and explicitly distinguishes from sibling tools by adding 'without generating images', which sets it apart from text_to_images and file_to_images.

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?

The description implies usage context by stating 'without generating images', suggesting it is a non-rendering alternative to image generation tools. However, it does not explicitly state when to use it versus alternatives, nor does it provide exclusions or prerequisites. The guidance remains implicit rather than direct.

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/dthinkr/xhs-image-mcp'

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