Skip to main content
Glama

PillDrops

update_function

Change a function: only the fields passed change. New files replace the running replicas; public=false turns key-less invoke off.

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": {
      "name": "<name>"
    },
    "name": "update_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoenvironment variables by name; {} clears them
nameYesfunction name
portNoport the command listens on
vcpuNovCPUs
filesNosource files to include
startNocommand that serves the function
publicNoinvokable without a key
templateNotemplate id
memory_mbNomemory in MB
idle_timeoutNoseconds without an invoke before the last replica stops; 0 keeps one warm
max_replicasNoburst ceiling
replica_concurrencyNorequests one replica serves at once, 1 to 100

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses three useful traits: partial patch semantics, that new files replace running replicas, and that public=false disables key-less invoke. It says nothing about required permissions, whether other field changes (port, start, env) also restart replicas, downtime, reversibility, or error behavior for an invalid patch.

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?

Three tight sentences with no waste, and the most important constraint (partial update) is front-loaded. Each sentence contributes a distinct fact.

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

Completeness3/5

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

For a 12-parameter mutation tool with nested file objects and no annotations or output schema, the description is thin. The schema documents every parameter, but deploy/restart implications, permission requirements and the effect of editing fields other than files are not covered.

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 is 3. The description nonetheless adds meaning beyond the schema for two parameters: files trigger replacement of running replicas, and public=false turns off key-less invoke (schema only says "invokable without a key"). It adds nothing for the remaining ten fields.

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?

"Change a function" gives a verb plus a clearly identified resource, and "only the fields passed change" narrows it to a patch-style update. It does not distinguish this from siblings like create_function, rename_function or rollback_function, so the agent must infer the boundary.

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

Usage Guidelines3/5

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

The partial-update statement implicitly tells the agent to use this tool for incremental edits rather than recreating the function. There is no explicit when-to-use, when-not-to-use, or pointer to alternatives for renaming or rolling back.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.