Skip to main content
Glama

deploy_form

Upload a new XLSForm to KoboToolbox and publish it as a live form; returns the form UID, web form link, and management URL.

Instructions

Upload and deploy a NEW XLSForm to KoboToolbox.

Creates a new form and makes it live. The XLSForm can include multiple languages via label::Language (code) columns.

To update an EXISTING form, use replace_form() instead — it preserves the form UID and all existing submissions.

Args: file_path: Path to the XLSForm (.xlsx) file. form_name: Optional name for the form (defaults to filename).

Returns: JSON object with uid, enketo_url (web form link), and management_url.

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

Input Schema

NameRequiredDescriptionDefault
file_pathYes
form_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the key behavior: it creates a form and 'makes it live', plus the exact return fields (uid, enketo_url, management_url) and the consequence of the alternative path. It stops short of stating permission/auth requirements, name-collision behavior, or whether a live deployment can be undone, which matters for a write/deploy operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the outcome, then the alternative, then Args/Returns. Every line is useful; the only waste is mild repetition between 'Upload and deploy a NEW XLSForm' and 'Creates a new form and makes it live'.

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?

Covers purpose, the sibling decision, both parameters, and return fields for a two-param mutation tool with no annotations. The remaining gap is operational context—permissions, failure modes on invalid XLSForm, and irreversibility of going live—which is not covered anywhere else in the definition.

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 0%, so the description must compensate, and it does for both params: file_path is constrained to an XLSForm .xlsx file, and form_name is documented as optional with a filename fallback that the schema's bare 'default: null' does not convey. Format details and the label::Language (code) multi-language convention add real meaning beyond the raw schema.

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 and resource ('Upload and deploy a NEW XLSForm to KoboToolbox'), scopes it to new forms only, and names the sibling (replace_form) that handles the other case. An agent can distinguish it from replace_form without opening either schema.

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?

Explicitly routes the agent: use this for a NEW form, use replace_form() for an EXISTING one, and gives the reason (preserves form UID and existing submissions). Both the when and the when-not are stated, not inferred.

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