Skip to main content
Glama

Execute Batch Operations

execute

Runs batched document, memory, rule, knowledge, workspace, and embedding operations in one request to reduce token usage and keep project context current.

Instructions

Execute batched operations (doc.create, md.section, yaml.patch, json.patch writing only .yaml/.yml and .md), project memory, global rules, code knowledge links, harness config, or embeddings reindex. Call search(target='capabilities') for full op schemas.

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": {
      "ops": "<ops>"
    },
    "name": "execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYes
dry_runNo
workspace_rootNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, so the safety profile is covered. The description adds real constraints beyond that — patch ops write only .yaml/.yml/.md files — but says nothing about batch atomicity, partial-failure behavior, or ordering, which are the traits that matter most for a multi-op executor.

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 dense sentence with the action front-loaded and the routing hint at the end. The nested parenthetical of op names and file extensions is hard to parse but nothing is redundant.

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?

For a non-idempotent batch mutation tool with no output schema and zero schema description coverage, the description leaves too much open: no return value expectations, no failure/rollback semantics, and no documentation of dry_run or workspace_root. The pointer to search(target='capabilities') offloads detail but does not cover the top-level parameters.

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

Parameters2/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 for all three parameters. It partially explains `ops` by naming op types and a file-type restriction, but `dry_run` and `workspace_root` are never mentioned, leaving two of three parameters with no semantics anywhere.

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 names a specific verb (Execute) and resource (batched operations) and enumerates the op families it handles (doc.create, md.section, yaml.patch, json.patch, memory, rules, knowledge, config, reindex). An agent can tell this is a generic batch dispatcher rather than a single-purpose tool, though the parenthetical op list is dense and partially overlaps with the schema enum.

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

Usage Guidelines3/5

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

It gives one concrete prerequisite: call search(target='capabilities') to get full op schemas, which is genuinely useful routing. However, it never says when to use this tool versus calling the individual operations, nor does it state any exclusions or ordering constraints for batching.

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