Skip to main content
Glama

update_function

Modify a serverless function's timeout, memory, or cron schedule without redeploying code.

Instructions

Update a function's timeout or memory without re-deploying code. Legacy schedule mutation remains for old simple-function surfaces; new schedule/email background triggers should be declared through ReleaseSpec triggers[].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesFunction name to update
memoryNoMemory in MB (tier limits apply)
timeoutNoTimeout in seconds (tier limits apply)
scheduleNoCron expression (5-field, e.g. '*/15 * * * *') to set or update the schedule. Pass null to remove an existing schedule.
project_idYesThe project ID
Behavior3/5

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

With no annotations, the description carries the burden. It discloses the no-redeploy behavior and legacy schedule mutation but omits details like whether updates cause downtime, permissions needed, or effect on existing scheduled runs. Disclosure is partial.

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?

Two sentences efficiently convey purpose and crucial caveats. Front-loaded with main action, no extraneous 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?

Given no output schema and 5 parameters, the description covers the main use case and potential pitfalls. Lacks only minor details like return values or error handling, which are less critical for a straightforward update tool.

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. The description adds value by clarifying that timeout and memory are the primary updates without redeploy, and that schedule is legacy with an alternative. This goes beyond the schema's parameter descriptions.

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 explicitly states it updates timeout or memory without redeploying code, which is a specific action on a resource. It distinguishes from sibling tools like deploy_function and other update tools by emphasizing no-code-redeploy and directing new trigger declarations to ReleaseSpec.

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 clearly indicates when to use (for timeout/memory updates) and when not to use (for new schedule/email triggers, use ReleaseSpec). This provides explicit alternatives and context.

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/MajorTal/run402'

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