Skip to main content
Glama

set_focus

Idempotent

Configure the camera focus mode by selecting SimpleAutoFocus or ManualFocus for a specific channel.

Instructions

Set camera focus mode.

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": {
      "mode": "<mode>"
    },
    "name": "set_focus"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesFocus mode: SimpleAutoFocus, ManualFocus
channelNoCamera channel (default 0)

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 this is a non-destructive, idempotent mutation, so the safety profile is covered. Beyond that the description adds nothing: it doesn't say whether the change takes effect immediately, whether ManualFocus needs follow-up configuration (the schema offers no focus-position parameter), or whether the setting is per-channel and persisted. For a mutation tool that is only five words long, that is a real 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 front-loaded sentence with no wasted words, which is structurally clean. However, its brevity shades into under-specification rather than disciplined conciseness for a mutation tool.

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 two-parameter setter with full schema coverage and annotations, the definition is minimally sufficient to invoke the tool correctly. It omits any note on effect timing or the relationship between ManualFocus mode and other configuration calls, which would matter in practice.

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 both parameters are already documented with their enum values and channel default. The description contributes no additional meaning about mode interactions or channel scoping, which is acceptable at baseline given the schema does the work.

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 specific verb and resource ('Set camera focus mode'), which is unambiguous about what the tool changes. It stops short of differentiating from adjacent setters such as set_image_settings or set_white_balance, so an agent must infer that focus mode is not covered elsewhere.

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 call this versus related camera-configuration tools, and no stated prerequisites or exclusions. The agent is left to infer usage entirely from the name and the mode enum in the schema.

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