Skip to main content
Glama

set_osd

Idempotent

Add or update multiline on-screen display entries on a Hanwha camera by index, configuring text, date/time type, color, font size, transparency, and position.

Instructions

Add or update a multiline OSD entry.

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": {
      "index": "<index>"
    },
    "name": "set_osd"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoOSD text content (when type is Text)
indexYesOSD index (1-8)
enableNoEnable this OSD entry
channelNoCamera channel (default 0)
osdTypeNoOSD type: Text, Date, Time
fontSizeNoFont size: Small, Medium, Large
osdColorNoColor: White, Red, Blue, Green, Yellow, Cyan, Magenta, Black
positionXNoX position (0-9)
positionYNoY position (0-9)
transparencyNoTransparency: Off, Low, Medium, High

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the phrase "Add or update" reinforces the upsert semantics implied by idempotentHint, which is a small but real addition. It does not say whether an update overwrites the whole entry or only supplied fields, nor whether overwriting an occupied index is safe — meaningful gaps for a device-config mutation.

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 eight-word sentence with zero filler and the action front-loaded. It is efficient, though so terse that the word "multiline" carries weight it does not fully explain.

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?

For a 10-parameter configuration mutation with no output schema, the description never addresses the riskiest question: what happens to an existing entry at the given index (overwrite vs merge), which field combinations are required (text vs Date/Time types), or whether the camera must be re-read afterward. The fully-documented schema covers parameter detail, but selection and safe invocation still require guesswork.

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 all ten parameters (index range 1-8, osdType values, fontSize, color, positions, transparency) are already documented in the schema. The description adds only the "multiline" hint that text is free-form, and never explains the dependency that text applies only when osdType is Text. 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 concrete verb pair ("Add or update") and a specific resource ("multiline OSD entry"), which is enough to distinguish it from get_osd_list and remove_osd by name alone. It stops short of explicitly naming siblings or contrasting scope, so a 4 rather than 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 Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites (e.g. an OSD slot must exist, or that enable must be set), and no routing to the read/list sibling for inspecting existing entries. The agent must infer usage entirely from the verb.

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