Skip to main content
Glama

run_macro

Execute predefined macros to generate or update notes, tasks, or projects with custom arguments and variables.

Instructions

Run a predefined macro using the mdv CLI.

Args: name: The name of the macro to run (e.g., 'daily-standup', 'new-project') args: Optional list of positional arguments to pass to the macro variables: Optional dictionary of variables to pass to the macro (--var k=v)

Returns: Output of the macro execution or error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo
nameYes
variablesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations, the description must fully disclose behavior, but it only mentions executing a CLI macro and returning output or an error. It does not warn that macros can have arbitrary side effects on notes or the vault, which is a significant transparency gap for an execution 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 compact and efficiently structured with a one-line purpose followed by Args and Returns sections. Every line earns its place and nothing is redundant or verbose.

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

Completeness2/5

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

The definition covers parameters and return text, but for a macro-execution tool it is undeniably incomplete without a side-effect warning or prerequisites (e.g., that macros can modify the vault). Given no annotations and no guidance on failure or behavior, an agent is undersupplied for safe and correct use.

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?

Despite 0% schema description coverage, the Args section explains all three parameters and adds semantic value: name has concrete examples, args is defined as positional arguments, and variables is mapped explicitly to the '--var k=v' CLI convention. This compensates well for the bare schema, though it could be more precise about argument ordering.

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 states a specific action and target: 'Run a predefined macro using the mdv CLI.' This clearly distinguishes it from note-management siblings; examples like 'daily-standup' and 'new-project' reinforce what resource is being invoked.

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?

The description does not say when to prefer run_macro over other tools or when not to use it. There are no exclusions or alternative tool mentions; the only implied context is the verb 'Run' and the macro examples, which is not real guidance.

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