Skip to main content
Glama

Wisp

Update function

update_function

Change a function: replace its code, apply search-and-replace edits (each old_text must match exactly once), and/or change its name, HTTP exposure, method, visibility, MCP tool setting, before/after, schedule, caching or description. Creates a new draft version.

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

Input Schema

NameRequiredDescriptionDefault
mcpNoMCP tool (true/false), or null to keep
codeNoComplete new code (or null)
httpNoExpose over HTTP (true/false), or null to keep
nameNo
editsNo
methodNo
projectYesProject id (p…) or address (slug)
callableNoOther functions may call it (false: only schedules, MCP and the console); null keeps
functionYesFunction name (e.g. "orders") or id (e…)
scheduleNoRun automatically (published version only, at most every 5 minutes): cron in the given timezone
visibilityNo
descriptionNo
before_afterNoHTTP functions: false skips the before/after functions; null keeps
input_schemaNoNew input JSON Schema, or null to keep
cache_secondsNoEdge caching for GET functions: seconds successful live responses are served from the CDN (0 turns it off, null keeps the setting)
output_schemaNoNew output JSON Schema, or null to keep
remove_scheduleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two important behaviors: the call only produces a new draft version (not live), and each edit's old_text must match exactly once, implying failure on ambiguity. It says nothing about atomicity when several edits or a code plus edits are supplied, permission requirements, or what happens if a match fails mid-request.

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 with no filler: the mutation scope is front-loaded in a single enumerated clause, and the consequential behavior (draft version) is placed as a short trailing sentence. Dense yet scannable, with the parenthetical constraint on old_text placed inline where it matters.

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?

For a 17-parameter mutation with no annotations and no output schema, the description covers the main capability set plus the key staging and edit-matching semantics. Gaps remain around remove_schedule, null-means-keep behavior (left entirely to the schema), and failure modes, but no critical calling information is absent.

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 65% across 17 parameters, so the schema documents most fields, but the description still adds meaning the schema lacks: the exact-match-once contract for edits, and the fact that code replacement and search-and-replace edits are alternative approaches to the same field. A few properties (name, method, visibility, remove_schedule) get only a bare mention or none, keeping it short of full coverage.

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 precise verb and resource ('Change a function') and then enumerates every mutable facet: code replacement, exact-match text edits, name, HTTP exposure, method, visibility, MCP setting, before/after, schedule, caching, description. It also discloses the non-obvious outcome ('Creates a new draft version'), which separates it from create_function and publish without needing to name them.

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?

Usage is implied rather than stated: the 'creates a new draft version' clause hints that updates are staged and publish is needed to go live, and the edit mode implies this is the tool for surgical changes versus full code replacement. There is no explicit when-to-use/when-not guidance and no named alternative for creating, deleting, or invoking functions.

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.

Resources