Skip to main content
Glama

Deploy an edge function

functions_deploy

Create or replace an edge function (Deno, TypeScript). Pass source for a single file, or files (path -> source) with an entrypoint. It is served at /functions/v1/. Scope: functions:write.

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": "functions_deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFunction name: letters, digits, - and _
filesNoMulti-file deploy: {"path": "source"}
branchNoBranch id, e.g. `pr-42`. Default `production`.
sourceNoThe entrypoint module's source (index.ts)
entrypointNoEntrypoint inside files, default index.ts
import_mapNoInline import map
project_idNoProject id, e.g. `todo-app`. Default: the last one used, or your only one.
verify_jwtNoRequire a valid JWT to call it (default true)
organization_idNoOrganization id, e.g. `acme`. Default: the token's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses the auth scope `functions:write` and the resulting serving URL `<project URL>/functions/v1/<name>`, both of which are useful pre-call context. It does not cover failure behavior, whether an existing function's config is overwritten, or deployment result contents, so it is good but not exhaustive.

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 the core action front-loaded, followed by mode selection, then deployment target and scope. No filler, no restatement of the schema field-by-field.

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 9-parameter mutation tool with nested objects and no output schema, the definition covers action, mode selection, permission, and result location adequately. The gap is return-value shape and replace-side effects, which the absence of an output schema leaves undocumented.

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 baseline is 3; the description earns above that by explaining the relationship between `source`, `files`, and `entrypoint` — which the schema documents only as independent fields. It does not clarify `branch`, `verify_jwt`, or `import_map` interplay with the chosen mode, leaving some integration semantics implicit.

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 pair ('Create or replace an edge function') plus runtime (Deno, TypeScript), so an agent knows exactly what object is produced. No sibling in the catalog overlaps with deployment, and the definition supplies the scope and serving URL, making the tool's identity unambiguous.

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 resolves the main invocation choice: pass `source` for a single file, or `files` with an `entrypoint` for multi-file. It also names the required permission scope (functions:write). It stops short of stating prerequisites (e.g., project must exist/be linked) or when-not-to-use, so it is clear context rather than full when/when-not 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.

Resources