Skip to main content
Glama

Update hosted function

update_hosted_function
DestructiveIdempotent

Change code, description, secrets, input fields, category, tags or timeout. Secrets you leave out of the patch are kept.

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": {
      "slug": "<slug>",
      "patch": "<patch>"
    },
    "name": "update_hosted_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesSlug
patchYes
organizationIdNoApproved workspace id only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so safety framing is partly covered. The description adds one genuinely non-obvious behavioral fact — omitted secrets are preserved rather than cleared — but says nothing about what "destructive" means here (overwriting live code), whether a redeploy is required, or error behavior on bad patch keys.

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 short sentences, zero filler: the first front-loads the full set of mutable fields and the second delivers the key merge caveat. Nothing is redundant with the title or schema.

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 destructive mutation with a nested free-form patch object and no output schema, the definition covers the field surface and merge semantics but omits post-conditions — whether the function must be redeployed, whether the running version is disrupted, and what a successful response looks like. Adequate, but with clear gaps for a tool of this complexity.

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?

The description importantly documents the accepted keys of the opaque `patch` object (code, description, secrets, input fields, category, tags, timeout), which the schema leaves as a bare additionalProperties object — a real value add beyond the 67% coverage. However, `slug` is only labeled "Slug" and `organizationId`'s constraint ("Approved workspace id only") lives solely in the schema, so the description does not fully compensate.

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 opens with a specific verb ("Change") and enumerates the mutable attributes — code, description, secrets, input fields, category, tags, timeout — which the tool name frames as a hosted function. An agent can tell this is a patch-style updater, though it never explicitly contrasts itself with deploy_hosted_function or delete_hosted_function.

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?

There is no statement of when to use this tool versus siblings such as deploy_hosted_function or update_product, nor any prerequisites (e.g., needing a prior deploy or specific workspace role). The only usage-adjacent signal is the patch/merge note about secrets, which describes mechanics rather than selection guidance.

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.