Skip to main content
Glama

Smart Home Purchase Planner

explain_constraint

Read-onlyIdempotent

Explain a rule_id or device verdict with canonical rule text.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "explain_constraint"
  }
}

Input Schema

NameRequiredDescriptionDefault
setupNo
kit_idNo
rule_idNo
device_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. Beyond that, 'canonical rule text' hints at the return payload but the description does not say what happens with no arguments, with both rule_id and device_id, or how setup/kit_id scope the lookup.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though brevity here shades into under-specification rather than tightness.

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?

With four undocumented parameters, a nested object, no output schema and no annotations covering input semantics, the description leaves too much to inference. An agent cannot reliably tell what 'setup' or 'kit_id' do or which inputs are mutually exclusive.

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% across four parameters, including a nested free-form 'setup' object, so the description must compensate and does not. It touches only rule_id and device_id, leaving setup and kit_id completely unexplained and never clarifying whether the two named inputs are alternatives.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb is 'explain' and the resources are a rule_id or a device verdict, which gives a rough sense of the operation. However, 'device verdict' is not a parameter name (the schema has device_id), so the mapping is loose, and nothing distinguishes this from siblings like check_device_compatibility.

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?

The description implies the tool is used when you hold a rule_id or a device and want an explanation, but it never says when to prefer one input over the other, whether both may be supplied, or which sibling to use instead for compatibility questions. No exclusions or prerequisites are given.

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