Skip to main content
Glama
devAndreotti

lenis-mcp-server

by devAndreotti

Generate Lenis Setup

lenis_generate_setup
Read-onlyIdempotent

Generate complete Lenis smooth scroll setup code for vanilla JS, React, Vue, or Next.js, with optional GSAP ScrollTrigger, snap scrolling, and custom RAF loop.

Instructions

Generates complete Lenis smooth scroll setup code for a given framework.

Supports vanilla JS, React, Vue, and Next.js with optional GSAP ScrollTrigger integration, snap scrolling, and custom RAF loop configuration.

Args:

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

  • with_gsap (boolean): Include GSAP ScrollTrigger integration (default: false)

  • with_snap (boolean): Include lenis/snap package (default: false)

  • custom_raf (boolean): Use custom requestAnimationFrame loop (default: false)

  • settings (object): Custom Lenis settings to include

Returns: Complete setup code with installation commands, imports, initialization, CSS, and comments.

Examples:

  • "Set up Lenis with GSAP in React" → framework: 'react', with_gsap: true

  • "Basic smooth scroll for vanilla JS" → framework: 'vanilla'

  • "Next.js app with snap scrolling" → framework: 'nextjs', with_snap: true

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
settingsNoCustom Lenis settings to include (e.g., { lerp: 0.05, duration: 1.5 })
frameworkNoTarget framework: vanilla, react, vue, or nextjsvanilla
with_gsapNoInclude GSAP ScrollTrigger integration
with_snapNoInclude lenis/snap package for scroll snapping
custom_rafNoUse custom requestAnimationFrame loop instead of autoRaf
Behavior3/5

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

Annotations already declare the tool as read-only (readOnlyHint=true), idempotent (idempotentHint=true), and non-destructive (destructiveHint=false). The description adds that it generates code, which is consistent. It does not disclose any behavioral traits beyond what annotations already provide; however, it details the output components (install, imports, code, CSS). 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a summary, parameter list, return description, and examples. It is not overly verbose given the number of parameters and options. However, the Args section largely duplicates the schema, which could be trimmed for slightly better conciseness.

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 tool has 5 parameters (all optional), a nested object, and no output schema. The description adequately explains the generated output content and provides examples for common use cases. It covers the complexity sufficiently, though specifying the output format (e.g., string of code with markdown) would enhance completeness.

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 the schema already fully describes each parameter. The description's Args section mostly repeats schema info (defaults, types) and adds examples. This adds some clarity but does not substantially extend beyond the schema. The 'settings' object is described similarly in both.

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 it generates complete Lenis setup code for a given framework, listing supported frameworks and optional integrations. This verb+resource combination is specific and distinguishes it from sibling tools like debug or pattern creation.

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?

The description provides clear context for when to use the tool (e.g., 'Set up Lenis with GSAP in React') and includes examples. It lacks explicit 'when not to use' statements or direct comparison to alternatives, but the provided examples and parameter combinations effectively imply correct usage scenarios.

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