Skip to main content
Glama

load_user_rules

Retrieve a repository's user behavioral rules—code style, test patterns, commit format, and interaction preferences—by merging global, workspace, and repo scopes into one query.

Instructions

Returns the user's behavioral rules for this repo: code style, test patterns, commit format, interaction preferences. Merges global, workspace, and repo scopes (repo wins). One DB query, no inference.

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": {
      "repo": "<repo>"
    },
    "name": "load_user_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name (as shown in list_repos)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: three scopes are merged with repo taking precedence, it is a single DB query, and there is no inference cost. It does not cover failure modes (unknown or unindexed repo), permissions, or what an empty result looks like.

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?

Two tight sentences with the resource and its contents front-loaded, then the merge and cost characteristics. Nothing is redundant and every clause carries information an agent can act on.

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 single-parameter read tool with no output schema, the description is nearly sufficient: it names the content categories returned, the precedence rules, and the cost profile. The remaining gap is behavior on repos with no rules or on unknown repo names, which an agent would want to know.

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 100% and the repo parameter is already documented as "as shown in list_repos", so the baseline is 3. The description adds only marginal meaning by framing repo as the highest-precedence scope in the merge rather than explaining format or edge cases.

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 ("Returns the user's behavioral rules for this repo") and enumerates the contents (code style, test patterns, commit format, interaction preferences), which is far more informative than the bare name. It implicitly reads rather than writes, but does not explicitly name save_user_rule or delete_user_rule as the mutating alternatives.

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?

Use is implied rather than stated: an agent can infer this is the read-side counterpart to save_user_rule/delete_user_rule, but the description never says when to call it, when not to, or what to do if the repo is unknown. The merge-precedence note hints at why certain values appear, not when to invoke the tool.

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