Skip to main content
Glama

GSAP Utilities

gsap_utilities

Generate GSAP utility code for math operations, range mapping, and DOM helpers. Use for interpolation, clamping, wrapping, snapping, and scoped selection.

Instructions

Generate code using GSAP utility functions for math, range mapping, and DOM helpers. Use for value interpolation, clamping, wrapping, snapping, and scoped DOM selection within animation logic. Not for generating animations — use gsap_tween or gsap_timeline for that.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodYesThe GSAP utility method to generate
paramsYesMethod-specific parameters (keys vary by method): interpolate → {start, end, progress}; mapRange → {inMin, inMax, outMin, outMax, value}; clamp → {min, max, value}; wrap → {min, max, value} or {array, index}; wrapYoyo → {min, max, value}; distribute → {amount, base?, from?, ease?}; random → {min, max, snap?}; snap → {snap, value} or {array, value}; normalize → {min, max, value}; pipe → {functions: string[]}; unitize → {func, unit}; toArray → {selector}; selector → {scope}; shuffle → {array}
exampleNoInclude usage example comment
Behavior4/5

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

No annotations are provided, so the description carries full burden. It correctly characterizes the tool as a code generator with no apparent side effects. However, it does not specify the output format or whether results are deterministic.

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 two sentences that front-load the purpose and then clearly state exclusions. Every sentence adds value without redundancy.

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 complexity of the input schema (3 params, nested object) and the lack of output schema or annotations, the description covers the main aspects: purpose, when to use/not use, and parameter details. It could mention the return type (generated code string) but is largely sufficient.

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%, but the description adds significant value by listing method-specific parameter shapes (e.g., interpolate → {start, end, progress}), providing concrete guidance beyond the schema properties.

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 generates code using GSAP utility functions for math, range mapping, and DOM helpers, and explicitly distinguishes it from animation generation tools by referencing gsap_tween or gsap_timeline.

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 lists use cases (value interpolation, clamping, wrapping, etc.) and provides direct guidance on when not to use it, with alternatives (gsap_tween, gsap_timeline).

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/bl00dclot/gsap-mcp'

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