Skip to main content
Glama
QGIS MCP

QGIS MCP

by nkarasiak

Run Model

run_model

Execute a QGIS Processing model by registered ID or .model3 file path, mapping input parameters to values and returning declared outputs. Optionally set ellipsoid for distance/area measurements.

Instructions

Run a Processing model by registered id (e.g. 'model:myflow') or by a .model3 file path. 'parameters' maps the model's input names to values (layer ids/paths, numbers, etc.); outputs take the names declared when the model was built, and an unknown key is refused. ellipsoid: ellipsoid for distance/area measurements (e.g. 'EPSG:7030' for WGS 84, 'NONE' for planimetric); default is the project's.

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": {
      "model": "<model>"
    },
    "name": "run_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes
ellipsoidNo
parametersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.0
    • addedInput schema / properties / ellipsoid
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Addedv0.5.0

TDQS

A3.6/5.0
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 behavioral burden. It usefully discloses that an unknown parameter key is refused and that outputs adopt the names declared at model-build time, but it says nothing about whether execution is blocking or asynchronous, what happens on model failure, or how the result links to the sibling cancel_processing_job tool — critical traits 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.

Conciseness4/5

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

Three dense sentences, front-loaded with the resource and the addressing modes, with the ellipsoid clarification isolated at the end. Every clause carries information, though the ellipsoid parenthetical is verbose relative to its importance.

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

Completeness4/5

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

With no output schema, the description does the right thing by explaining that outputs are named after the model's declared outputs. What is missing for a tool of this complexity is the execution model (synchronous vs job-based) and error behavior, which the caller needs to interpret results.

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%, yet the description compensates fully for all three parameters: 'model' accepts an id or a .model3 path, 'parameters' is a name-to-value map with examples (layer ids/paths, numbers) and an explicit refusal rule for unknown keys, and 'ellipsoid' gets a definition, example values ('EPSG:7030', 'NONE') and its default inheritance from the project.

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?

States a specific verb and resource ('Run a Processing model') and immediately specifies the two accepted addressing forms: a registered id such as 'model:myflow' or a .model3 file path. The verb 'run' cleanly separates it from the sibling create_processing_model, though no sibling is named explicitly.

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?

The description explains how to invoke the tool (registered id vs file path) and how parameters map to model inputs, which implies usage. It never says when to choose this over alternatives such as running a native algorithm or using batch_commands, and it states no prerequisites such as needing an existing registered model or project context.

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