Skip to main content
Glama

mechacut

check_constraints

Self-check for weak agents: text plus a closed constraint vocabulary (min/max_chars/bytes/words, max_lines, points, point_max_words, must_contain, must_not_contain, contains_date, contains_number, starts_with, ends_with, no_markdown, max_urls, https_only) -> pass/fail per constraint, first_failure and errors[] naming what to fix. Replaces self-reporting. Free.

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

Input Schema

NameRequiredDescriptionDefault
caseNofold
textYes
constraintsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden, and it does disclose the response contents (per-constraint pass/fail, first_failure, errors[] naming what to fix) and that the call is free. It implies a pure, side-effect-free computation but never says so outright, and it says nothing about failure modes such as malformed constraint objects.

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 front-loaded sentence states purpose, then the input vocabulary, then the output shape, then the positioning claim and cost. The long parenthetical is dense but every item earns its place by defining the closed vocabulary. Minor cost: the arrow-chained phrasing takes effort to parse.

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

Completeness3/5

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

For a tool whose only complex input is a free-form nested object, the description covers the vocabulary but not how constraints are keyed/valued, what an error entry looks like, or what `case: fold|exact` does. Adequate to attempt a call, not quite enough to guarantee a well-formed one.

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 `constraints` is an untyped nested object, so the enumerated vocabulary (min/max_chars/bytes/words, max_lines, points, must_contain, must_not_contain, contains_date, starts_with, ends_with, no_markdown, max_urls, https_only) is substantial meaning added beyond the schema. Gaps remain: the `case` enum parameter is never mentioned, and the value format for each constraint key is not shown.

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 concrete operation (validate a text against a closed list of named constraints) and the result shape (pass/fail per constraint, first_failure, errors[]). It also enumerates the constraint vocabulary, which pins down scope precisely. It does not explicitly differentiate itself from nearby check_* siblings, 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 Guidelines3/5

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

"Self-check for weak agents" and "Replaces self-reporting" imply the usage context: call this instead of asserting your own output meets requirements. There is no explicit when-not guidance and no named alternative among the check_* siblings, so the routing signal is only implied.

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.