Skip to main content
Glama

get_snapshot

Fetch a live camera image and save it to disk, returning the file path. Use camera IDs from list_cameras or search_cameras to capture snapshots from public or local feeds.

Instructions

Fetch a live image from a camera. Downloads the image to disk and returns the file path. Works on both upstream registry cameras and locally-added cameras. Use list_cameras or search_cameras first to find IDs.

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": {
      "cam_id": "<cam_id>"
    },
    "name": "get_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
cam_idYesCamera ID (from list_cameras/search_cameras), or a direct image URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv8.2.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv8.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the non-obvious side effect: the image is downloaded to disk and the return value is a file path. It omits where on disk the file lands, the image format, and whether existing files are overwritten.

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?

Four short sentences, front-loaded with the action and effect, then applicability, then the prerequisite. No filler or repetition.

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

Completeness4/5

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

For a single-parameter fetch tool with no annotations and no output schema, the description covers the action, side effect, return value, valid input domain, and prerequisite lookup. Only storage location and image format are left unspecified, which are minor.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: cam_id may refer to either an upstream registry camera or a locally-added camera, expanding on the schema's 'from list_cameras/search_cameras' note and confirming local IDs are valid.

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 and resource (fetch a live image from a camera) and its effect. It doesn't distinguish itself from the sibling get_snapshots (plural), which an agent could plausibly confuse with this single-image fetch.

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?

Gives an explicit prerequisite: use list_cameras or search_cameras first to find IDs. It also clarifies valid inputs by noting it works on both upstream registry cameras and locally-added cameras. It stops short of naming when to prefer this over get_snapshots.

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