Skip to main content
Glama

Set property

set_property

Set a frontmatter property on an Obsidian note by name or path. Specify the key, value, and optional type to update metadata without editing note body text.

Instructions

Set a frontmatter property on a note through Obsidian.

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": {
      "name": "<name>",
      "value": "<value>"
    },
    "name": "set_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoNote name, resolved like a wikilink. No folder path, no extension.
nameYesProperty key.
pathNoExact path from the vault root, e.g. "Projects/Roadmap.md".
typeNoProperty type. Obsidian infers it when omitted.
valueYesProperty value. For list properties, separate values with commas.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and does not meet it: it never says whether an existing property is overwritten or merged, whether a missing property is created, whether Obsidian must be running, or what happens on failure. 'Set' implies mutation but the description discloses no side effects, reversibility, or error behavior.

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

Conciseness4/5

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

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity edges toward under-specification rather than optimal density.

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 schema fully documents the inputs and there is no output schema to explain, so the description needn't cover return values. However, for a mutation tool with zero annotations, overwrite semantics, property-creation behavior, and failure modes are missing context an agent would benefit from.

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 five parameters including the enum-constrained 'type' and the comma-delimited list convention are already documented in the schema. The description adds no parameter meaning beyond that, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Set') and resource ('frontmatter property on a note') scoped to Obsidian, which is unambiguous about what the tool does. It does not explicitly contrast itself with the nearby siblings read_property, remove_property, or get_properties, but the mutation verb alone distinguishes it adequately.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus remove_property/get_properties, nor on when to pass 'file' versus 'path', nor any prerequisite such as the note needing to exist. The agent must infer the entire selection and invocation context.

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