Get WPForms Form Fields


Returns the field structure of a WPForms form, given its form ID. Read-only.

Also known as: form fields, form questions, what the form asks.

Property Value
Ability slug mosmcp/wpforms-get-form-fields
Wire tool name mosmcp__wpforms-get-form-fields
Category Forms & Leads (mosmcp-forms)
Plan Free

 

Required access

Requirement Value
Capability manage_options
Minimum default role Administrator
Requires Contact Form 7 (with Flamingo for stored submissions), WPForms or Gravity Forms — each form plugin's abilities appear only when that plugin is active
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
id integer Yes — The WPForms form ID (required).

 

Output schema

Field Type Required
id integer Yes
fields array Yes

 

Example

Sample prompt
What fields does my WPForms contact form have?

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 451,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__wpforms-get-form-fields",
    "arguments": {
      "input": {
        "id": 145
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 451,
  "result": {
    "isError": false,
    "structuredContent": {
      "id": 145,
      "fields": [
        {
          "id": "0",
          "type": "name",
          "label": "Name",
          "required": "1"
        },
        {
          "id": "1",
          "type": "email",
          "label": "Email",
          "required": "1"
        }
      ]
    }
  }
}

 

Edge cases / errors

  • id that is not a WPForms form → moca_form_not_found error.
  • Fields come back as stored by WPForms (for example required is the string "1"), not normalised.

 


<< Previous Next >>
Get WPForms Form by ID Get WPForms Form Notifications

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.