Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as AALY. If you published it, claim ownership there.

deploy_functions

Destructive

Deploy a project's Function code bundle. Project-level, not per-Function — one zip holds every handler for the project, so the name is plural.

Upload the zip first with upload_file, then pass the file id here. The zip's own layout is preserved verbatim, so handler dotted paths point into it directly: a handler of 'orders.before.validate' needs orders/before.py in the zip. Dependencies must be vendored into the zip (pip install -r requirements.txt -t .) — the platform does not run pip on customer input.

Returns immediately with status 'deploying'. Poll list_deployments to see it settle to 'ready' or 'failed'. Rolling back is this same call with an earlier file id.

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

Input Schema

NameRequiredDescriptionDefault
project_idNoProject whose runner to deploy to. Get it from whoami or list_projects.
code_file_idYesFile record ID from upload_file (e.g. 'FIL42').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Project whose runner to deploy to. Optional if whoami returned a default_project_id."New value: +"Project whose runner to deploy to. Get it from whoami or list_projects."
  2. First observed

TDQS

A5/5.0
Behavior5/5

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

It goes far beyond annotations by explaining the asynchronous nature of the call ('Returns immediately with status 'deployining''), requiring external polling ('list_deployments'), and defining the rollback mechanism.

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?

The tool is highly detailed, but its structure is logical and sequential: goal -> workflow -> technical requirements -> operational behavior. There is zero wasted language.

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

Completeness5/5

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

Given the high complexity of a bundled, asynchronous deployment, the definition is complete, covering input requirements, execution lifecycle, and failure recovery mechanisms.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds vital context, explaining that the `code_file_id` must come from `upload_file` and detailing the necessary technical constraints (zip structure, vendoring) required for the inputs to be valid.

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 clearly defines the action ('Deploy a project's Function code bundle') and distinguishes the scope ('Project-level, not per-Function').

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?

It mandates a specific workflow: upload file first via 'upload_file', then use the resulting ID here. It also provides complex operational guidance regarding status checking and rollback procedures.

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