Skip to main content
Glama
devAndreotti

lenis-mcp-server

by devAndreotti

Create Lenis Scroll Pattern

lenis_create_scroll_pattern
Read-onlyIdempotent

Generates ready-to-use code for Lenis smooth scroll patterns including parallax, infinite scroll, snap, horizontal, WebGL sync, and scroll-triggered animations, with optional GSAP integration.

Instructions

Generates production-ready code for common Lenis scroll patterns.

Available patterns: parallax, infinite-scroll, snap, horizontal scroll, WebGL sync, and scroll-triggered animations.

Args:

  • pattern ('parallax' | 'infinite-scroll' | 'snap' | 'horizontal' | 'webgl-sync' | 'scroll-triggered'): Pattern to generate

  • framework ('vanilla' | 'react' | 'vue' | 'nextjs'): Target framework (default: 'vanilla')

  • with_gsap (boolean): Include GSAP for animations (default: true)

Returns: Complete code with HTML structure, CSS, JavaScript setup, and explanatory comments.

Examples:

  • "Parallax effect with GSAP" → pattern: 'parallax', with_gsap: true

  • "Horizontal scroll section" → pattern: 'horizontal'

  • "Snap scrolling between sections" → pattern: 'snap'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYesScroll pattern to generate: parallax, infinite-scroll, snap, horizontal, webgl-sync, or scroll-triggered
frameworkNoTarget frameworkvanilla
with_gsapNoInclude GSAP for animations (recommended for most patterns)
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. Description adds output format details (HTML, CSS, JS, comments) which align with these hints.

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?

Extremely concise with clear sections (available patterns, args, returns, examples). No filler, every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 3 parameters with full schema coverage, annotations present, and no output schema needed (description explains returns), the description fully covers the tool's purpose and usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline 3. Description adds default values (framework: vanilla, with_gsap: true) and concrete examples mapping patterns to parameters, enhancing usability.

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?

Clearly states it generates production-ready code for Lenis scroll patterns, listing all available patterns. Distinct from sibling tools (debug, setup, API, optimization) by focusing on pattern generation.

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

Usage Guidelines4/5

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

Provides explicit context for when to use (generating pattern code) with examples. Doesn't explicitly exclude cases, but sibling coverage implies alternatives exist for other needs.

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/devAndreotti/lenis-mcp-server'

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