Skip to main content
Glama
whoamiTM

bi-mcp

by whoamiTM

bi_get_ptz_status

Read-only

Retrieve PTZ status for a specific camera, including presets, active preset, brightness, contrast, IR mode, and power mode, to verify camera positioning and configuration.

Instructions

PTZ state for one camera. All fields BI returns are passed through (presets[], presetnum, brightness, contrast, irmode, powermode, talksamplerate). Adds two derived helpers: 'preset_map' = {N: description, ...} keyed by preset number (UI3 source: presets[] is 1-indexed by position; "(undefined)" and empty descriptions are dropped), and 'active_preset' = {num, description} when presetnum is set. Camera must have PTZ enabled in BI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNoIf true, return the raw Blue Iris JSON instead of the shaped view.
cameraYesPTZ camera short name. Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already indicate readOnlyHint=true, and the description adds rich behavioral detail: all BI fields are passed through, two derived helpers are added, preset_map indexing and filtering behavior is explained, and active_preset is conditionally present. This goes well beyond the annotations and clearly shapes agent expectations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with a one-sentence purpose, then compactly lists pass-through fields and explains derived helpers and prerequisites. Every sentence adds necessary information and there is no filler or redundancy.

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

Completeness5/5

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

With no output schema, the description carries the full burden of explaining return data. It enumerates the pass-through fields, describes both derived helpers in detail, covers edge cases like undefined/empty descriptions, and states the required camera condition. Together with the schema, an agent has enough to invoke the tool correctly.

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 input schema already fully documents both parameters. The description adds only the PTZ-enabled prerequisite relevant to the camera parameter and does not meaningfully expand on the raw parameter, leaving the baseline at 3.

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

Purpose5/5

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

The description clearly states the operation: retrieving PTZ state for one camera. It also distinguishes this from sibling camera-related tools by emphasizing PTZ-specific fields and derived helpers, making the tool's scope unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description gives clear context for when to use the tool: to get PTZ state for a single camera. It also provides a key prerequisite, 'Camera must have PTZ enabled in BI,' which guides proper usage. It does not explicitly name alternatives or exclusion conditions, but the PTZ-focused purpose is clear enough.

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