Skip to main content
Glama

Cloud for Bots

approval-rules: set_rules

approve_set_rules

[approval-rules] Save the user's rules (needs an API key so they stay yours). Each rule: {name, when:{type:[...], max_usd, min_usd, reversible, target_ends_with:[...]}, verdict:"auto"|"ask"|"deny"}. First matching rule wins; anything unmatched needs approval. Call once without confirm to preview, then with confirm=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rulesYes
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 discloses real behavior: precedence ("first matching rule wins"), the default fallback ("anything unmatched needs approval"), the auth requirement, and the preview/confirm flow. The main gap is that it never states whether existing rules are replaced or merged, which matters for a set-type mutation.

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?

Dense and front-loaded, opening with the purpose and then packing the rule structure and workflow into compact notation. Every element earns its place, though the inline object notation sacrifices a little readability for density.

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 and 0% schema coverage, the description still covers purpose, the rule object structure, precedence, default behavior, auth, and the two-step confirm workflow. Only the replace-vs-merge semantics and return value are unaddressed, which are minor relative to what is provided.

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 0% and the schema types both params only loosely (rules as opaque array of objects), so the description must compensate. It explains the full rule shape ({name, when:{type, max_usd, min_usd, reversible, target_ends_with}, verdict with enum values}) and the confirm flag's preview semantics, adding substantial meaning beyond the schema.

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+resource ("Save the user's rules") and even defines the rule format, so an agent immediately knows this persists approval rules. It does not explicitly name the sibling it complements (approve_get_rules), but the purpose is unambiguous and distinct from read-oriented siblings.

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

Usage Guidelines4/5

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

Gives a concrete procedural workflow: call once without confirm to preview, then again with confirm=true, plus the auth prerequisite ("needs an API key so they stay yours"). It does not compare against alternatives like approve_get_rules, but the invocation guidance is clear and actionable.

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