Skip to main content
Glama

Update function

update_function
Destructive

Update a Firecracker Function's code or configuration, including enabling, disabling, or rotating its public webhook. Retrieve the function first and omit fields you do not intend to replace.

Instructions

Update a Firecracker Function's code or configuration. This replaces submitted fields and can change or disable a public webhook. Call get_function first. If integrity.unreadable_fields names code or environment, the backend refuses the update unless the user explicitly approves replacing every unavailable value from a trusted copy and acknowledge_unreadable_replacement=true is passed. Leave that flag false for ordinary updates.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "function_id": "<function_id>"
    },
    "name": "update_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoFunction source code
nameNoFunction name
vcpusNo1-8 vCPUs, default 1
enabledNoWhether the function can be invoked
memory_mbNo64-8192 MB, default 256
entrypointNoEntrypoint command/handler
descriptionNoDescription (max 2000 chars)
environmentNoEnvironment variables as JSON object string. Omit during unrelated edits to preserve existing values; never send back redacted placeholders.
function_idYesFunction ID from list_functions
runtime_os_idNoRuntime OS ID (see list_functions response for available runtimes)
timeout_secondsNo1-300 seconds, default 30
webhook_enabledNoExpose a public webhook URL for this function
private_network_idNoPrivate network ID from list_functions privateNetworking discovery. Omit to preserve an existing binding during update; null detaches it. Backend validates ownership and availability.
rotate_webhook_secretNoRotate the webhook secret
acknowledge_unreadable_replacementNoExplicit customer approval to replace code or environment named by integrity.unreadable_fields; default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already indicate destructiveHint=true and openWorldHint=true, but the description adds crucial behavioral context: it replaces submitted fields, can disable a public webhook, and details the integrity.unreadable_fields refusal logic. This goes well beyond annotation coverage.

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?

Three sentences, each with a distinct purpose: mutation scope, prerequisite, and special condition. Front-loaded with the primary action and efficient, though the unreadable-fields sentence is dense.

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 15 parameters, rich schema descriptions, and no output schema, the description covers the critical mutation semantics and the exceptional error path. It leaves out some potential edge cases like partial updates, but is sufficient for correct invocation.

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 the schema documents all 15 parameters. The description adds meaning for the special acknowledge_unreadable_replacement flag and ties it to a complex backend condition, which is not fully conveyed by the schema alone.

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?

States a specific verb+resource ('Update a Firecracker Function's code or configuration') and immediately clarifies semantics ('replaces submitted fields'). Differentiates from siblings like create_function and get_function by naming the update behavior explicitly.

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?

Explicitly instructs 'Call get_function first' and explains the acknowledge_unreadable_replacement condition ('leave that flag false for ordinary updates'). Provides clear context for the special case but does not name alternatives or exclusion scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools