Skip to main content
Glama
c41m4n

farmos-mcp

by c41m4n

delete_record

DestructiveIdempotent

Permanently deletes a farmOS record by entity type, bundle, and UUID after confirmation; irreversible and may leave dangling references, so archive assets and plans instead.

Instructions

Permanently delete a record. This cannot be undone and may leave other records with dangling references. For assets and plans, set_archived is almost always what is wanted. Requires FARMOS_ALLOW_DELETE=true; confirm with the user first.

Input Schema

NameRequiredDescriptionDefault
idYesRecord UUID
bundleYesBundle of the record
entity_typeYesOne of: asset, log, plan, quantity, taxonomy_term, organization

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description adds value beyond them: irreversibility ('This cannot be undone'), the side effect of dangling references on other records, an environment-variable gate, and a human-confirmation requirement. None of that is inferable from the annotations or schema, and nothing contradicts the idempotentHint/destructiveHint profile.

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?

Three short sentences, each carrying distinct loadable information: effect, irreversibility/risk, alternative, and gate/confirmation. The most important constraint (permanence) is front-loaded and there is no 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?

For a destructive three-parameter mutation with full annotation coverage and an output schema, the description supplies exactly the missing risk, prerequisite, and alternative information an agent needs before calling. No relevant gap remains.

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 entity_type, bundle, and id are already documented, and the enum-like entity list lives in the schema. The description only alludes to entity types indirectly via the assets/plans alternative, which is marginal added meaning. Baseline 3 is appropriate.

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 effect ('Permanently delete a record') and immediately distinguishes itself from the destructive-adjacent sibling set_archived by naming it. An agent can tell this apart from update_record or set_archived without opening any schema.

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?

Explicitly routes the agent to the alternative ('For assets and plans, set_archived is almost always what is wanted') and states the prerequisite condition (FARMOS_ALLOW_DELETE=true) plus a required procedural step (confirm with the user first). Both when-to-use and when-not-to-use are covered.

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