Skip to main content
Glama

take_photo

Captures a photo with a specified camera and saves it locally, letting you document scenes or collect images from connected webcams.

Instructions

用指定摄像头拍一张照片,保存到本地

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": {
      "device": "<device>"
    },
    "name": "take_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo保存路径,默认 ./photos/photo-{timestamp}.jpg
deviceYes摄像头设备名(必须来自 list_cameras 的结果)
qualityNoJPEG 质量 1-31(数字越小质量越高),默认 2

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose the key trait that this is a write operation producing a local file ('保存到本地'). However, it says nothing about what happens on camera-busy/failure, whether the call blocks until capture completes, or what the caller gets back.

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?

A single short sentence with the action front-loaded and the side effect trailing; there is no filler to remove.

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 3-parameter capture tool with no output schema and no annotations, the definition covers the core action but leaves the return value (presumably the saved path) and failure behavior unstated. Adequate to invoke correctly, but not complete enough to predict the result.

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 coverage is 100%, so device, path, and quality are already fully documented in the schema with defaults and the JPEG range. The description only restates the device selection implied by '指定摄像头' and adds no syntax or format detail beyond the schema.

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 gives a specific verb+resource in '拍一张照片' (take a photo) and scopes it to '用指定摄像头' with an explicit side effect ('保存到本地'). It is clearly distinguishable from list_cameras and the recording tools, though it never names those siblings to reinforce the contrast.

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 and no mention of prerequisites such as the camera being free or the device having to come from list_cameras. The only routing hint lives in the schema's device description, not the tool description.

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