Skip to main content
Glama

marker_add_region

Add a region to a REAPER project with specified start and end times, optional name, and RGB color. Returns indices for follow-up edits; for multiple regions, use batch addition.

Instructions

Add region. Prefer add_markers_batch for multiple.

Returns both marker_index and region_number - use marker_index for any follow-up marker_delete/marker_edit/markers_apply call. region_number is REAPER's own display id, which it reuses once freed by a delete, so it will not match marker_index in a project that's had regions deleted.

Args: start: Start seconds. end: End seconds. name: Label. color_r: Red 0-255. color_g: Green 0-255. color_b: Blue 0-255.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYes
nameNo
startYes
color_bNo
color_gNo
color_rNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses key behavioral traits: returns both marker_index and region_number, explains the difference between them, notes that region_number is REAPER's display id and can be reused after deletion. This is valuable context for subsequent calls. However, it doesn't mention potential side effects or permissions, which is a minor gap.

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?

The description is front-loaded with the core action and the most important behavioral note (return values), followed by a structured Args list. It is appropriately sized and every sentence provides useful information, though the return explanation could be slightly tightened.

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?

Given the complexity (6 parameters, no schema descriptions, no annotations, no output schema), the description covers everything an agent needs: what the tool does, when to prefer a batch alternative, what it returns, how to use the return values, and full parameter semantics. It is complete for correct invocation.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It does so excellently by documenting all six parameters in an Args section: start/end in seconds, name as label, and color_r/g/b with range 0-255. This adds crucial meaning beyond the bare schema types and defaults.

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 states a clear verb and resource ('Add region'), distinguishing it from siblings like marker_add or marker_add_batch. However, it doesn't explicitly clarify that it adds a region marker (a stretch marker) versus a simple marker, which could confuse against marker_add. It does differentiate from add_markers_batch.

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?

Explicitly recommends 'Prefer add_markers_batch for multiple,' giving a clear alternative for batch operations. However, it doesn't specify when to use this tool over marker_add (single marker) or markers_apply, leaving some ambiguity for single vs. region marker decisions.

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

Deploy Server

Other Tools