Skip to main content
Glama

pr

Read-only

Paginate text into deterministic pages with custom headers, footers, and page dimensions. Returns JSON or plain text output.

Instructions

Paginate text into deterministic pages with configurable headers, footers, and page dimensions. Read-only, no side effects. Returns JSON with paginated output by default; use --raw for plain text. Use for print-ready formatted output. Not for paragraph reflowing — use 'fmt'. Not for line wrapping — use 'fold'. See also 'fmt', 'fold'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
encodingNoText encoding.utf-8
headerNoOptional page header.
max_linesNoMaximum JSON lines to emit.
page_lengthNoInput lines per page.
pathsNoFiles to paginate, or '-' for stdin. Defaults to stdin.
rawNoWrite paginated text without a JSON envelope.
widthNoMaximum output line width.
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description reinforces with 'Read-only, no side effects.' Additionally, it discloses output format: 'Returns JSON with paginated output by default; use --raw for plain text.' While it does not detail all behavioral aspects (e.g., max_lines truncation), the combination with schema and annotations is sufficient. No contradiction.

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 extremely concise with four sentences, each serving a distinct purpose: core action, safety guarantee, output format, usage context, and sibling exclusions. No redundant or unnecessary text.

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 has 7 parameters (0 required) with 100% schema coverage and no output schema, the description covers the essential behavioral aspects: purpose, read-only nature, output format with raw option, and use cases. Missing details like error handling or path defaults are minor given schema coverage. Overall complete for selection and invocation.

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 baseline is 3. The description adds marginal value by mentioning 'headers, footers, and page dimensions' corresponding to parameters, but schema already has adequate descriptions. No additional semantic information beyond what is in 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 verb 'Paginate text' and the resource 'text', with specific details like 'deterministic pages' and 'configurable headers, footers, and page dimensions'. It also explicitly distinguishes from siblings by noting 'Not for paragraph reflowing — use 'fmt'. Not for line wrapping — use 'fold'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance on when to use: 'Use for print-ready formatted output.' and when not to use: 'Not for paragraph reflowing — use 'fmt'. Not for line wrapping — use 'fold'.' Also mentions alternative tools by name.

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/caseSHY/AI-CLI'

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