Get Contact Form 7 Form Fields
Returns the field/tag structure (name, type, required) of a Contact Form 7 form, given its form ID. Read-only.
Also known as: form fields, form questions, what the form asks.
| Property | Value |
|---|---|
| Ability slug | mosmcp/cf7-get-form-fields |
| Wire tool name | mosmcp__cf7-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 Contact Form 7 form ID (required). |
Output schema
| Field | Type | Required |
|---|---|---|
| id | integer | Yes |
| fields | array | Yes |
Example
Sample prompt
Which fields are on my Contact Form 7 contact form, and which are required?
Example request (json)
{
"jsonrpc": "2.0",
"id": 442,
"method": "tools/call",
"params": {
"name": "mosmcp__cf7-get-form-fields",
"arguments": {
"input": {
"id": 12
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 442,
"result": {
"isError": false,
"structuredContent": {
"id": 12,
"fields": [
{
"name": "your-name",
"type": "text",
"required": true
},
{
"name": "your-message",
"type": "textarea",
"required": false
}
]
}
}
}
Edge cases / errors
- id that is not a Contact Form 7 form → moca_form_not_found error.
- required is true when the tag type has an asterisk (for example text*).
- Every scanned form tag is listed, so the submit button appears too, with an empty name.
| << Previous | Next >> |
|---|---|
| Get Contact Form 7 Form by ID | Get Contact Form 7 Mail Settings |
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.