MCP Filters

Articles

gform_pre_execute_ability

The gform_pre_execute_ability filter runs after an MCP tool’s permission check passes, just before the tool executes.

gform_abilities_log_safe_input_keys

The gform_abilities_log_safe_input_keys filter lets add-ons with their own identifier inputs extend that list.

gform_mcp_server_tools

The gform_mcp_server_tools filter has the final say on which enabled tools the dedicated Gravity Forms MCP server lists to connected agents.

gform_abilities_definitions

The gform_abilities_definitions filter is a bulk hook over the full list of ability definitions before registration. Use it to add your own, remove ones you never want registered, or adjust several at once.

gform_mcp_public_ability

The gform_mcp_public_ability filter controls per-ability MCP visibility, applied at registration. It runs before the settings-screen gate, so it can hide a tool entirely but can't expose one the admin hasn't enabled.

gform_ability_categories

The gform_ability_categories filter controls the ability categories registered with WordPress. Use it to add one for your own abilities, keyed by slug with a label and description.

gform_ability_hidden_field_ids

The gform_ability_hidden_field_ids filter hides sensitive fields from AI agents.

gform_mcp_registered_addons

The gform_mcp_registered_addons filter is a last-mile hook over the add-on MCP contributions (the per-add-on tool groups shown on the settings screen). Entries are keyed by namespace. It’s mostly for add-on developers, though a site can also use it to drop an add-on’s tools wholesale.

gform_ability_definition

The gform_ability_definition filter is a per-definition hook that runs after the bulk filter, for each ability. Use it to adjust labels, descriptions, capabilities, or schemas.