Skip to main content
Glama

compile_rule_files

Compiles rule, skill, and workflow Markdown files into Rule IR, enabling reusable policy definitions for AI agent behavior.

Instructions

Compile rule/skill/workflow markdown files into Rule IR.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compile_rule_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
globsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.14.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does not say whether compiling writes files to disk or only returns IR, whether it overwrites previous artifacts, whether it requires the files to exist, or what errors occur on malformed markdown. For a file-processing operation with zero annotation coverage, this is a substantial 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?

One short sentence with the verb and target front-loaded and no filler. It is efficient, though efficiency here comes partly at the cost of the missing behavioral detail rather than through tight editing of rich content.

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?

An output schema exists, so return values are covered, but the description omits the essentials for a compile operation: side effects, output destination, and the semantics of the globs filter. For a tool that transforms files, this leaves the agent unable to predict what calling it will actually do.

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?

There is a single optional 'globs' parameter at 0% schema coverage, and the description says nothing about it — not the accepted syntax, not what happens when it is null or omitted, and not whether defaults cover all rule files. The only meaning conveyed is the implicit mapping from 'markdown files' to glob patterns.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Compile' and the resource ('rule/skill/workflow markdown files') are stated, which is better than a tautology. But 'Rule IR' is undefined internal jargon, and the sentence doesn't distinguish this from siblings like list_rules, get_rule, or list_workflows, which plausibly touch the same artifacts. An agent knows the general area but not precisely what output 'compile' produces.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as list_rules or get_rule. The agent must guess whether this is a build step, a validation step, or an indexing step, and when it should be preferred over simply reading rules.

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