Skip to main content
Glama

set_defocus_detection

Idempotent

Configure defocus detection on a Hanwha camera by enabling the feature and setting sensitivity, threshold level, and duration to detect when focus degrades.

Instructions

Configure defocus detection enable, sensitivity, threshold, duration.

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": "set_defocus_detection"
  }
}

Input Schema

NameRequiredDescriptionDefault
enableNoEnable/disable defocus detection
channelNoCamera channel (default 0)
durationNoDuration in seconds
sensitivityNoSensitivity level (0-100)
thresholdLevelNoThreshold level (0-100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower, yet the description adds nothing beyond field names. It does not say whether settings apply immediately, whether the camera reconnects, whether omitted fields retain prior values, or what the response is. For a live-device mutation this is a meaningful gap.

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 terse clause with zero padding, and the core fields are front-loaded. It is a fragment rather than a well-formed sentence, but nothing is wasted.

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 five-parameter mutation tool with full schema coverage and no output schema, the definition covers the basics but omits the channel parameter, persistence/apply behavior, and any device-side preconditions. Adequate but with clear gaps for an agent configuring a live camera.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents enable, duration, sensitivity, and thresholdLevel with units and ranges. The description merely echoes four field names without adding semantics such as units, interaction between sensitivity and threshold, or the role of channel, which it omits entirely. Baseline 3 applies when the schema does the heavy lifting.

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-plus-resource pair ('Configure defocus detection') and names the settings involved, so it reads clearly as the write counterpart to get_defocus_detection. It stops short of explicitly differentiating itself from that sibling, but the verb contrast is enough for an agent to infer.

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 when-to-use or when-not-to-use guidance, no mention of a get/read counterpart, and no prerequisites such as whether the camera must be connected or whether a channel must be supplied. The agent must infer all usage context from the name alone.

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