Skip to main content
Glama

resolve_form

Find the form UID that matches an Enketo submission URL by searching deployed forms' deployment links and returning the form's name and links.

Instructions

Find the form UID that corresponds to an Enketo submission URL.

Given an Enketo URL (e.g. https://ee.kobotoolbox.org/single/6F7QA1uJ), searches all deployed forms to find the one whose deployment links match. Returns the form UID, name, and all deployment links.

Args: enketo_url: The Enketo submission URL to look up.

Returns: JSON object with uid, name, and deployment_links, or an error if not found.

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": {
      "enketo_url": "<enketo_url>"
    },
    "name": "resolve_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
enketo_urlYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses that the lookup scans all deployed forms, what is returned (uid, name, deployment_links), and the failure mode (an error if not found). It omits auth requirements, whether archived/undeployed forms are considered, and any performance implications of a full scan.

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 one-sentence purpose, then the mechanism, then a compact Args/Returns block. The Returns section slightly duplicates the existing output schema, but the overall structure is efficient and easy to scan.

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 one-parameter lookup tool with an output schema, the description covers purpose, mechanism, input format example, and failure behavior. The remaining gaps (permissions, which form states are searched) are modest given the tool's simplicity.

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 parameter. It restates the parameter and adds a concrete example URL format (https://ee.kobotoolbox.org/single/6F7QA1uJ), which the schema lacks, but it does not state whether partial URLs or variants are accepted. Adequate rather than thorough.

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 ('Find the form UID that corresponds to an Enketo submission URL') and explains the mechanism: it searches all deployed forms for matching deployment links. This clearly separates it from siblings like get_form (which takes a UID) or list_forms.

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?

The trigger condition is clear: you have an Enketo submission URL and need the corresponding form. It does not name an alternative tool or state when not to use it, but the input precondition is unambiguous enough that an agent knows when to reach for it.

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