Skip to main content
Glama

Leashgate

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Leashgate. If you published it, claim ownership there.

propose_rules

Propose new rules after auditing the codebase, the agents' tools and skills, and any written policy (CLAUDE.md, AGENTS.md, internal docs). One rule per real risk you found: money that can move, data that can be deleted, people who can be contacted in bulk, actions that should not run at night. Rules are NOT applied: the user approves the batch in the Leashgate console in one click. You can only add rules, never turn one off or loosen one. A rule matches when the action name contains one of the words in 'match' (e.g. "refund|reimburse"); add 'fields' + 'threshold' for amounts or counts, 'dailyCap' for a daily total in USD, 'hours' to limit to working hours, 'allow' for allowed beneficiaries. Explain each rule in 'why' and point to the code in 'where'.

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": {
      "rules": "<rules>"
    },
    "name": "propose_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesYes
sourceNoWho drafted the batch, e.g. Claude Code, Cursor, Codex.
summaryNoTwo lines for the user: what you audited and the main risks found.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well: rules are not applied automatically, the user approves the batch in the Leashgate console in one click, and the tool is append-only with no ability to disable or loosen existing rules. That is exactly the kind of side-effect disclosure an agent needs. It omits what the call returns and whether repeated proposals dedupe against existing rules.

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?

Front-loaded with purpose and approval behavior, then the risk taxonomy, then field guidance. Dense and largely waste-free, but the closing clause reciting fields, threshold, dailyCap, hours and allow duplicates schema descriptions that already cover the same ground.

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

Completeness5/5

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

For a three-parameter tool whose real complexity is a nested array of rule objects, the description covers the audit workflow, the risk framing, the approval lifecycle, and the matching construct. With no output schema, the only gap is return shape, which is minor since the console approval flow is already described.

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 coverage is 67% and per-field descriptions already exist, but the prose adds real semantics the schema lacks — notably that matching is substring containment of an action name against the pipe-separated words in 'match', and how 'fields' + 'threshold' combine for amounts versus counts. It repeats some schema content such as dailyCap in USD and the hours-trigger behavior, so it is additive but not fully differentiated.

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 opens with a specific verb and resource ('Propose new rules') plus the prerequisite activity (auditing the codebase, agents' tools and skills, written policy). That is far more than the name restates. It does not name a sibling such as list_rules to contrast with, 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 Guidelines5/5

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

It states when to use it (after an audit), what qualifies as a rule ('one rule per real risk you found: money that can move, data that can be deleted, people who can be contacted in bulk, actions that should not run at night'), and an explicit when-not boundary ('you can only add rules, never turn one off or loosen one'). Nothing material is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources