Skip to main content
Glama

update_constraints

Update or add constraint rules to enforce regex and LLM policies on tool calls, blocking violations before execution.

Instructions

Update or add constraint rules

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": {
      "constraints": "<constraints>"
    },
    "name": "update_constraints"
  }
}

Input Schema

NameRequiredDescriptionDefault
constraintsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and delivers almost nothing: it does not say whether the supplied array replaces the entire constraint set or is merged, what happens to existing rules omitted from the array, whether changes take effect immediately, or whether the operation is reversible. For a mutation tool 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five words are front-loaded and waste nothing, but the brevity crosses into under-specification rather than efficiency. There is no structure to speak of beyond the single clause.

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?

The tool mutates an array of rule objects with no annotations, no output schema and no field documentation, which is exactly the case where the description must supply the missing context. It leaves merge-vs-replace semantics, validation failure behavior and the meaning of severity levels entirely unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% on a single nested-object array parameter, so the description should explain the item fields (id, pattern, message, severity, enabled) and, critically, how `id` is matched against existing rules. The only semantic contribution is the phrase 'update or add', which weakly implies id-keyed upsert behavior but never confirms it.

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 names a concrete verb pair (update/add) and a resource (constraint rules), so an agent can tell this is the write-side counterpart to the read-only siblings check_constraints, get_constraint_status and get_violation_history. It stops short of explicitly naming those siblings or stating what a 'constraint rule' governs in this system, which keeps it out of 5 territory.

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 guidance on when to use this versus the three read-only siblings, no prerequisite or permission context, and no indication of when an update is appropriate versus a fresh add. The agent must infer everything about call conditions from the verb alone.

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