Skip to main content
Glama

delete_field

Destructive

Permanently drops a field and its column from a Directus collection after confirmation. Check relationships and take a schema snapshot first; deletion is irreversible and can leave dangling relations.

Instructions

Drops one field and its column from a collection, discarding the data in it permanently. Requires confirm: true. Relations pointing at the field can be left dangling, so check analyze_relationships first; use update_field to hide a field in the admin app instead of destroying it, delete_collection to drop the whole table. Not reversible, so take get_schema_snapshot beforehand when the model may need restoring.

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": {
      "collection": "<collection>",
      "field": "<field>"
    },
    "name": "delete_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldYesField name
confirmNoConfirm deletion
collectionYesCollection name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.3.3

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/openWorldHint annotations by disclosing that data is discarded permanently, that confirm: true is required, that relations can be left dangling, and that the action is not reversible. This is exactly the operational context an agent needs for a destructive tool.

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?

Front-loads what is destroyed and its permanence, then handles prerequisites and alternatives in tightly packed sentences. No sentence is filler.

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

Completeness5/5

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

A destructive, irreversible operation with no output schema needs prerequisites and consequences spelled out, and this description covers both plus sibling routing. Nothing an agent needs before invoking it is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds real meaning by making clear that confirm: true is mandatory rather than optional, which the schema's 'Confirm deletion' wording does not convey on its own.

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 ('Drops one field and its column from a collection') with the exact scope of destruction. It is clearly distinguishable from update_field and delete_collection, which it names explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use alternatives: analyze_relationships first for dangling relations, update_field to hide rather than destroy, delete_collection to drop the whole table, and get_schema_snapshot beforehand for restores. The selection conditions are unambiguous.

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