Skip to main content
Glama

Delete a field group

delete_field_group
Destructive

Remove a registered field group while preserving its stored values, so no data is lost. Re-register the group later to make it visible again.

Instructions

Remove a registered field group. The stored values are left in place, so the data is not lost and the group can be re-registered to expose it again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoRequired.
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
group_keyYesThe group key to remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already mark the operation as destructive, and the description usefully narrows what is destroyed: only the registration, not the underlying stored values. It also adds that re-registration is possible. It does not mention the confirm gating behavior hinted at by the schema, but the description still adds meaningful behavioral context beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with no filler. The core action is front-loaded, and the second sentence efficiently conveys the non-destructive outcome and the recovery option.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple, and the annotations plus schema cover safety and parameter meaning. The description does not clarify the confirm parameter, which is marked 'Required.' with default false but is not in the schema's required list; this ambiguity could lead an agent to call the tool without the confirmation needed to actually delete.

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 description coverage is 100%, so the structured schema already documents group_key, site_id, and confirm. The description adds no parameter-level detail beyond the schema, so the baseline of 3 applies.

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 names a specific verb and resource: 'Remove a registered field group.' It also clarifies that the action targets the registration rather than the data itself, which distinguishes it from related field-group operations such as register_fields and list_field_groups.

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 description gives clear context: use this tool when you want to unregister a field group without losing its stored values, and the group can be re-registered to restore it. It implies the recovery path but does not explicitly name the alternative tool or state when not to use it.

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

Deploy Server

Other Tools