Skip to main content
Glama

Batch Commands

batch_commands

Group multiple non-destructive QGIS commands into one batch execution to minimize API calls and improve performance.

Instructions

Execute multiple commands in a single round-trip. Each command is {"type": "", "params": {...}}. Destructive commands (execute_code, remove_layer, delete_features, set_setting, reload_plugin) are not allowed in batch — use them individually.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandsYes
Behavior2/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 that destructive commands are excluded, but it does not explain batch execution behavior (e.g., sequential vs parallel, error handling, atomicity, rate limits, or size limits). This is a significant gap for a batching 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 two sentences: front-loaded with purpose, then format, then restriction. It is concise and well-organized with no wasted words.

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 tool has one parameter (array of objects) and no output schema. The description does not mention return values, error behavior, execution order, or any batching limitations. For a complex tool, this is incomplete.

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 coverage is 0%, so the description must add meaning. It explains that each command is an object with 'type' and 'params' fields, and lists example destructive commands. However, it does not specify that 'type' must be a valid command name or describe the constraints on 'params' objects. It adds basic structure but lacks completeness.

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 clearly states the tool's purpose: 'Execute multiple commands in a single round-trip.' It also provides the expected format for each command. However, it does not explicitly differentiate from other batch tools like execute_processing_batch, though it does list destructive commands that are excluded.

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 gives explicit guidance on when not to use the tool: 'Destructive commands ... are not allowed in batch — use them individually.' This clearly separates it from individual command tools. It does not provide full alternatives but the rule is clear.

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/lefcgis/qgis-mcp'

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