Skip to main content
Glama

ds_execute_rule

Execute iRODS rules by name or inline text, binding parameters, validating path access, and returning output parameters and iRODS stdout/stderr.

Instructions

Run an iRODS rule. Supply either rule_name (server-installed) or rule_text (inline iRL). Output parameters are returned as a dict; iRODS stdout/stderr are returned when output_parameters includes 'ruleExecOut'. Path-typed input parameters are checked against the caller's accessible paths before the rule fires.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rule_nameNoName of a server-installed rule to invoke.
rule_textNoInline iRL fragment to execute.
instance_nameNoRule engine instance to target.irods_rule_engine_plugin-irods_rule_language-instance
input_parametersNoInput parameters bound into the rule body.
output_parametersNoNames of rule output parameters to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the return shape (dict of output parameters, plus stdout/stderr when 'ruleExecOut' is requested) and a pre-execution access check on path-typed parameters. It omits the most consequential trait: that executing a rule (especially arbitrary inline iRL) can mutate or delete data, and no side-effect or failure behavior is described.

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?

Three sentences, front-loaded with the core action, then modes, then return behavior, then the safety check. No filler and nothing restated from the title or schema verbatim.

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?

For a 5-parameter tool with a nested free-form object, no output schema, and no annotations, the description covers invocation modes, return format, and one permission gate. It is short of complete because side effects/destructiveness and error behavior for rule execution are not addressed.

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?

Schema description coverage is 100%, so the baseline is 3, and the description adds real meaning: the rule_name/rule_text duality, the semantics of output_parameters via 'ruleExecOut', and the check applied to path-typed inputs. Only instance_name and input_parameters binding behavior remain unelaborated.

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?

"Run an iRODS rule" gives a specific verb and resource, and the two invocation modes (server-installed rule_name vs inline rule_text) sharpen it. It does not name siblings like ds_list_rules or ds_get_rule_definition to differentiate scope, so it stops short of a 5.

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?

"Supply either rule_name (server-installed) or rule_text (inline iRL)" gives in-tool parameter routing, and the schema reinforces the exactly-one constraint. However, there is no guidance on when to use this tool versus a wrapper or a more specific sibling, and no prerequisites are stated.

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