Skip to main content
Glama

get_form

Retrieve a KoboToolbox form's internal JSON structure by UID to inspect questions, choices, and settings; use export for editable XLSForm files.

Instructions

Get a form's JSON structure including questions, choices, and settings.

Returns the internal JSON representation — useful for inspecting form structure. To get the editable XLSForm (.xlsx), use export_form() instead.

Args: form_uid: The unique identifier (uid) of the form.

Returns: JSON object with form details including questions/fields.

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": {
      "form_uid": "<form_uid>"
    },
    "name": "get_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
form_uidYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Get' and 'inspecting' strongly imply a non-destructive read and it discloses that the payload is the internal JSON representation, but it says nothing about permissions, behavior for an unknown form_uid, or payload size/limits.

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?

The purpose and the sibling routing are front-loaded in the first two sentences, with the Args/Returns blocks kept short. The Returns block partially restates what the output schema already provides, which is mild redundancy rather than noise.

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?

This is a simple single-parameter read tool with an output schema, so return values need not be spelled out in detail. The definition covers purpose, contents, and the main alternative; the remaining gap is only the provenance of form_uid and error behavior.

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?

Schema coverage is 0%, so the description must compensate for the single form_uid parameter. The Args block adds that it is the 'unique identifier (uid) of the form', slightly beyond the schema's bare 'Form Uid' title, but it never explains how to obtain that uid (e.g., from list_forms) or its format.

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 gives a specific verb and resource ('Get a form's JSON structure') plus the exact contents returned ('questions, choices, and settings'), and it explicitly distinguishes this from export_form. An agent can tell what it retrieves without opening the schema.

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?

It names the alternative (export_form) and the condition that selects it (need the editable XLSForm .xlsx), which is real routing guidance. It does not say where to obtain a form_uid or how this differs from list_forms/get_submissions, so the guidance is clear but not exhaustive.

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