Skip to main content
Glama

seq

Read-only

Generate a numeric sequence with configurable start, increment, and end values, output as JSON for easy integration.

Instructions

Print a sequence of numbers as JSON with configurable start, increment, and end values. Read-only, no side effects. Returns JSON with the number sequence array. Use to generate numeric sequences or ranges. Not for repeating a constant string — use 'yes' for fixed repetition. See also 'yes', 'printf'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNoWrite sequence text without a JSON envelope.
formatNoprintf-style numeric format, for example %%.2f.
numbersYes[FIRST [INCREMENT]] LAST.
encodingNoOutput encoding (default: utf-8). Use 'auto' for BOM/autodetection.utf-8
incrementNoIncrement used with one or two positional numbers.
max_itemsNoMaximum items to generate.
separatorNoRaw output separator.
show_encodingNoInclude encoding detection metadata in JSON result.
encoding_errorsNoHow to handle encoding errors (default: replace).replace
encoding_profileNoLocale-aware encoding fallback profile for auto-detection.
Behavior5/5

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

The description states the tool is read-only with no side effects, which aligns with the readOnlyHint annotation. It also mentions that the output is JSON with a number sequence array, and that it has configurable parameters. No contradictions with annotations.

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 very concise, using three sentences to cover purpose, behavior, and usage guidance. It is front-loaded with the key function and avoids unnecessary detail. Every sentence adds value.

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?

The description adequately covers the tool's main purpose and behavior, but it does not detail the output schema or provide examples. Given the 10 parameters and no output schema, the description is sufficient but could be slightly richer. Still, it is complete enough for an agent to select and invoke the tool.

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 coverage is 100% (all 10 parameters have descriptions in the input schema). The description adds minimal additional parameter information beyond the schema, only referencing configurable start, increment, and end values. Given high schema coverage, a 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 that seq prints a sequence of numbers as JSON with configurable start, increment, and end values. It distinguishes from siblings like 'yes' for constant repetition and 'printf' for formatting, making its purpose unambiguous.

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?

The description explicitly states when to use seq (generate numeric sequences or ranges) and when not to (for constant strings, use 'yes'). It also directs the agent to related tools 'yes' and 'printf', providing clear guidance on alternatives.

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