Skip to main content
Glama
aleksakarac

Obsidian MCP Extended

by aleksakarac

remove_dataview_field_tool

Remove Dataview inline fields from Obsidian notes. Clean up obsolete metadata, remove duplicates, or migrate fields to frontmatter.

Instructions

Remove a Dataview inline field from a note (filesystem-native, offline).

Removes all occurrences of a field by key (canonicalized matching), or a specific occurrence if line_number is provided.

For inline fields (bracket/paren syntax), removes only the field while preserving surrounding text. For full-line fields, removes the entire line.

When to use:

  • Cleaning up obsolete metadata

  • Removing duplicate fields

  • Migrating fields to frontmatter

  • Batch field removal

Returns: Success status, removed key, and canonical key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to note file (relative to vault)
keyYesField key to remove (will be canonicalized)
line_numberNoOptional specific line number (if multiple fields with same key)
vault_pathNoPath to vault (optional, uses OBSIDIAN_VAULT_PATH env if not provided)
ctxNo
Behavior4/5

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

With no annotations, the description bears full responsibility. It explains how removal works for inline vs full-line fields, canonicalized matching, and the effect of providing line_number. It also mentions return values. It does not mention reversibility or permissions, but this is sufficient for a mutation 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?

The description is well-structured with a clear first sentence, then a breakdown of behavior, usage guidelines, and return info. Every sentence is relevant and no filler. It is concise yet informative.

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

Completeness4/5

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

Given the tool has 5 parameters and no output schema, the description covers purpose, behavior, usage scenarios, and return values well. It could elaborate on error conditions or side effects, but overall it is comprehensive.

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 80%, and the description adds context by explaining canonicalized matching and the optional line_number's role. It ties parameters to behavior, e.g., how key and line_number affect removal. This adds value beyond the schema's base descriptions.

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 clearly states the tool's purpose: 'Remove a Dataview inline field from a note'. It specifies the verb 'remove', the resource 'Dataview inline field', and the context 'from a note'. It also distinguishes from sibling tools like add_dataview_field_tool and extract_dataview_fields_tool by being explicitly about removal.

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 includes a 'When to use:' section listing specific scenarios like cleaning up metadata and migrating fields. However, it does not explicitly state when not to use the tool or provide alternatives, which would make it a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aleksakarac/obsidian-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server