Skip to main content
Glama

sls_optimize

Optimize Serverless Framework deployments by addressing cold starts, bundle size, and cost. Provide service name and select concerns to get targeted improvements.

Instructions

Optimize Serverless Framework deployment for cold starts, bundle size, and cost (Pro)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoAPI key for authentication
concernsYesOptimization concerns
service_nameYesService name
Behavior2/5

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

No annotations are provided, so the description must carry full behavioral transparency. It says 'Optimize' but does not disclose whether the tool modifies files, analyzes only, requires an existing deployment, or has side effects. The '(Pro)' marker hints at a paid tier but adds no operational context.

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 a single, front-loaded sentence with no filler. Every part contributes value: the action, the resource, the optimization targets, and the tier indicator.

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

Completeness2/5

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

For a tool with no annotations and no output schema, the description is too thin. It lacks essential context such as whether an existing Serverless Framework project is required, what kind of changes will be made to the deployment, and what the agent or user should expect afterward.

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 documents all three parameters. The description loosely maps to the concerns enum by naming cold starts, bundle size, and cost, but it does not add meaningful semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('Optimize'), a specific resource ('Serverless Framework deployment'), and a focused scope ('cold starts, bundle size, and cost'). It is clear enough to distinguish from related siblings like sls_generate_config and sls_add_functions by its verb and resource, though it does not explicitly name alternatives.

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

Usage Guidelines2/5

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

The description gives no guidance about when to use this tool versus other Serverless Framework tools or alternative optimize tools. There is no mention of prerequisites, target users, or scenarios where a different tool would be more appropriate.

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/barnburner121/claude-plugin-marketplace'

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