Skip to main content
Glama
Pedra MCP Server

Pedra MCP Server

Official
by pedra-ai

Add photos to property

pedra_add_images_to_property

Add property photos or 360° images by URL for editing, video, and virtual tour workflows. Provide image URLs and property ID; the server fetches them and returns stored img.pedra.ai URLs.

Instructions

Add photos to a property by URL (the server fetches each one, so any public https image URL or small data: URI works). Returns the stored img.pedra.ai URLs to use with the editing, video and tour tools. For photos on the user's device, use pedra_create_upload_link instead. Pass type "360" for 360° photos (checked to be 2:1 equirectangular), which can then become a virtual tour. (With this local server, 360° photo files on this computer can go through pedra_add_local_panoramas instead.)

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": {
      "propertyId": "<propertyId>",
      "imageUrls": "<imageUrls>"
    },
    "name": "pedra_add_images_to_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoWhat the images are: regular photos ("photo", the default) or 360° photos ("360").
namesNoOptional names, one per image in the same order as imageUrls (e.g. the original file names), up to 200 characters each. Returned by pedra_list_property_images and as source.name when the photo is edited. Never shown on the image.
imageUrlsYesImage URLs to fetch and add to the property: up to 20 photos, or up to 10 when type is "360".
propertyIdYesTarget property id (from pedra_list_properties or pedra_create_property).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • addedInput schema / properties / names
      Added value: +{
      +  "description": "Optional names, one per image in the same order as imageUrls (e.g. the original file names), up to 200 characters each. Returned by pedra_list_property_images and as source.name when the photo is edited. Never shown on the image.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changedv0.5.1
    • changedInput schema / properties / imageUrls / description
      Previous value: -"Up to 20 image URLs to fetch and add to the property."New value: +"Image URLs to fetch and add to the property: up to 20 photos, or up to 10 when type is \"360\"."
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "What the images are: regular photos (\"photo\", the default) or 360° photos (\"360\").",
      +  "enum": [
      +    "photo",
      +    "360"
      +  ],
      +  "type": "string"
      +}
  3. Addedv0.4.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that the server performs the fetch (accepted schemes: public https or small data: URI), that 360 photos are validated as 2:1 equirectangular, and what the tool returns (img.pedra.ai URLs). Limits (20/10) are left to the schema, and failure behavior on unreachable URLs is unstated, keeping it from a full 5.

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-loaded with the core action and return value, then alternatives, then the enum nuance. Dense but every sentence carries routing or behavioral information; the trailing parenthetical about the local server is slightly awkward but genuinely useful context.

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?

With no output schema, the description correctly fills the gap by naming the returned img.pedra.ai URLs and their downstream use, and it covers alternatives and the 360 validation rule. Edge cases like partial failures or invalid URLs are not addressed, but the essentials for correct invocation are present.

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 description coverage is 100%, so the baseline is 3; the description adds real meaning by explaining that type "360" triggers equirectangular validation and unlocks virtual tours, plus doc-comments in the schema clarify names and propertyId provenance. It doesn't add much beyond the schema on names/ordering, but the enum semantics are enriched.

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?

Specific verb+resource+mechanism: adding photos to a property by URL, with the server fetching each one. It explicitly names the sibling it is not (pedra_create_upload_link for device photos, pedra_add_local_panoramas for local 360 files), so an agent can route correctly without opening any 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 explicit when-to-use and when-not: device photos go to pedra_create_upload_link, local 360 files go to pedra_add_local_panoramas, and type "360" should be passed for equirectangular photos. It also names the downstream consumers of the returned URLs (editing, video, tour tools).

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