Skip to main content
Glama

import_email_image

Copy an image from an accessible page file library or email image library into the target email's permanent storage. Authorizes both resources, validates image format/size, and returns the image URLs. Repeated imports reuse the copy. Does not edit the document; use the returned URL in a subsequent edit.

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": {
      "target": "<target>",
      "source": "<source>",
      "assetId": "<assetId>",
      "description": "<description>"
    },
    "name": "import_email_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
targetYesTarget email resource; kind must be email.
assetIdYesSource page fileId or email imageId from its document snapshot.
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / source / properties / designId
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / source / properties / kind / enum
      Previous value: -[
      -  "page",
      -  "email"
      -]New value: +[
      +  "page",
      +  "email",
      +  "wallet",
      +  "apple-wallet",
      +  "google-wallet"
      +]
    • addedInput schema / properties / target / properties / designId
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / target / properties / kind / enum
      Previous value: -[
      -  "page",
      -  "email"
      -]New value: +[
      +  "page",
      +  "email",
      +  "wallet",
      +  "apple-wallet",
      +  "google-wallet"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / expectedRevision
      Removed value: -{
      -  "type": "integer"
      -}
    • removedInput schema / properties / source / properties / organizationId
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / target / properties / organizationId
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "target",
      -  "expectedRevision",
      -  "source",
      -  "assetId",
      -  "description"
      -]New value: +[
      +  "target",
      +  "source",
      +  "assetId",
      +  "description"
      +]
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The description adds real behavior beyond the annotations: it authorizes both resources, validates format and size, and returns image URLs, which matters since no output schema exists. However, 'Repeated imports reuse the copy' reads as idempotent/deduplicating behavior while the annotations declare idempotentHint=false, so an agent gets a slightly ambiguous signal about whether repeat calls can create duplicates. This is a tension worth flagging rather than a flat contradiction, since reuse of a copy is not strictly the same as operation idempotency.

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?

Three tight sentences: what it does, what it validates and returns, and the crucial constraint that it does not edit. The scoping constraint is front-loaded and no sentence is filler.

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 four-required-parameter tool with nested objects and no output schema, the description covers the essentials: source and destination semantics, validation behavior, return value, and the follow-up edit step. Remaining gaps are the purpose of the 'description' parameter and the non-page/email source kinds, which are minor relative to what is provided.

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 only 50% with nested source/target objects, so the description needs to compensate and only partly does. It clarifies that source may be a page file or an email image, which maps to source.kind, but it ignores the wallet/apple-wallet/google-wallet kinds the schema permits and gives no meaning for the required 'description' parameter or for assetId beyond what the schema already says.

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 names a specific verb (copy) and resource (image) and defines both the source (page file library or email image library) and the destination (target email's permanent storage). It also states what the tool is not — an editor — which helps separate it from edit_email_document. It stops short of differentiating itself from the closely named sibling store_email_image, so a 4 rather than a 5.

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?

There is explicit sequencing guidance: it does not edit the document, and the returned URL must be used in a later edit call. That tells the agent where this step sits in a workflow. What is missing is any statement of when to prefer this over store_email_image or import_page_file, so the when-not side is only partially covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.