Skip to main content
Glama

GSAP Code Analyzer

gsap_analyze

Audit GSAP animation code for performance, optimization, and accessibility problems. Detects layout-triggering properties, missing registerPlugin(), and v2 syntax, then returns scored issues with fix suggestions.

Instructions

Audit existing GSAP animation code for performance, optimization, and accessibility issues. Use when you want to check code before delivering it — detects layout-triggering properties, GSAP v2 syntax, missing registerPlugin(), stagger risks, and missing prefers-reduced-motion handling. Returns scored issues with severity and fix suggestions. For generating new animation code use gsap_tween or gsap_timeline instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe GSAP code to analyze
checkPerformanceNo
checkAccessibilityNo
suggestOptimizationsNo
Behavior4/5

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

No annotations provided, so the description carries the full burden. It discloses the types of issues detected (layout-triggering properties, v2 syntax, missing registerPlugin(), etc.) and the return format (scored issues with severity and fix suggestions). However, it does not mention if the tool modifies code or requires authentication, but given it's an audit tool, likely read-only.

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 only two sentences: the first clearly states the purpose, and the second provides usage guidance and alternatives. It is front-loaded with the most important information and contains no unnecessary words.

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?

With 4 parameters, no output schema, and no annotations, the description provides a good overview of what the tool does and returns. It could be more complete by specifying the output format or how the code input should be structured, but it is adequate for an analysis 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 only 25% (only 'code' has a description). The description adds context by listing the categories of issues it checks (performance, optimization, accessibility), which partially maps to the boolean parameters checkPerformance and checkAccessibility. However, it does not explicitly explain 'suggestOptimizations' or the default values, leaving some gaps.

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 'audit', the resource 'existing GSAP animation code', and the scope 'performance, optimization, and accessibility issues'. It distinguishes itself from sibling tools by specifying that gsap_tween or gsap_timeline should be used for generating new code.

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?

Explicit guidance: 'Use when you want to check code before delivering it' and lists specific issues detected. It also provides alternatives for generating new code, making it clear when not to use this tool.

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