Skip to main content
Glama

Add a photo or document

add_photo

Attach a photo or document to an existing item, property, place, maintenance task, or completed task; item images are read by the vision model to suggest fields.

Instructions

Attaches a photo — or a receipt, manual or warranty card as kind "document" — to an item that already exists (itemId), or to what isn't one thing: a property (the deed, the insurance policy), a place (a room's inspection report), a house-wide maintenance task (a quote), or one time a task was done (doneId, from complete_maintenance: the invoice). Give exactly one of them. An item's is read by the vision model in the background; about 20 seconds later get_item shows what it saw and any suggested fields: confirm them with the person before applying them with update_item. The others are read for their words only (to find them by: search_inventory's files). To add a new thing from its photo use add_item_from_photo instead. Counts as AI actions when the AI is on.

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": {
      "data": "<data>"
    },
    "name": "add_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesThe image (or PDF, for a document) as base64; no data: prefix
kindNophoto: a picture of the thing; document: a receipt, manual, report or warranty card (photo or PDF)photo
doneIdNoOr the time a task was done: doneId from complete_maintenance
itemIdNoThe item's id, from search_inventory
taskIdNoOr a maintenance task's id, from list_maintenance (an item's task keeps it on the item)
filenameNoThe file's name, with its extension ("receipt.pdf")photo.jpg
locationIdNoOr a place's id, from list_locations
propertyIdNoOr a property's id, from list_locations

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2026.11.14
    • addedInput schema / properties / doneId
      Added value: +{
      +  "description": "Or the time a task was done: doneId from complete_maintenance",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / kind / description
      Previous value: -"photo: a picture of the thing; document: a receipt, manual or warranty card (photo or PDF)"New value: +"photo: a picture of the thing; document: a receipt, manual, report or warranty card (photo or PDF)"
    • addedInput schema / properties / locationId
      Added value: +{
      +  "description": "Or a place's id, from list_locations",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / propertyId
      Added value: +{
      +  "description": "Or a property's id, from list_locations",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / taskId
      Added value: +{
      +  "description": "Or a maintenance task's id, from list_maintenance (an item's task keeps it on the item)",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "itemId",
      -  "data"
      -]New value: +[
      +  "data"
      +]
  2. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / filename / description
      Added value: +"The file's name, with its extension (\"receipt.pdf\")"
    • addedInput schema / properties / itemId / description
      Added value: +"The item's id, from search_inventory"
    • addedInput schema / properties / kind / description
      Added value: +"photo: a picture of the thing; document: a receipt, manual or warranty card (photo or PDF)"
  3. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-destructive, closed-world write; the description adds the substantive behavior: item photos are read asynchronously by a vision model with results surfacing later in get_item, other targets are OCR'd for words only and become findable via search_inventory's files, and calls count as AI actions when AI is enabled. That is exactly the kind of context annotations cannot carry.

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?

Front-loads the core action and target list, then layers in the async flow and the sibling alternative, with no filler sentences. It loses a point for the convoluted clause "to what isn't one thing" and for packing five target types plus workflow into one dense paragraph that is harder to scan than a short list.

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?

For an 8-parameter mutation tool with no output schema, the description covers everything an agent needs: which parameter to pick, what happens afterward, where results appear, and the downstream tool to confirm with. Nothing about correct invocation is left to inference.

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 the baseline is 3, but the description adds meaning the schema lacks: the exclusive-or constraint across itemId/propertyId/locationId/taskId/doneId (the schema defines no oneOf), the semantic distinction of kind="document" as receipt/manual/report/warranty card, and the provenance of doneId (from complete_maintenance). It does not explain data/filename encoding, but the schema already does.

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?

States a specific verb (attaches) and resource (photo or document as kind="document") and enumerates the exact targets: itemId, propertyId, locationId, taskId, doneId. It explicitly distinguishes itself from the sibling add_item_from_photo ("To add a new thing from its photo use add_item_from_photo instead"), so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives the selection rule directly ("Give exactly one of them") for the five mutually exclusive target ids, names the alternative tool and the condition that selects it, and prescribes a workflow: wait ~20s, read get_item, confirm suggested fields with the person, then apply with update_item. Both when-to-use and when-not-to-use are explicit.

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