Show Option Images (Market)
mdmcp-show_option_images
Show Options to the user as an image gallery, drawn under this call as a
table with prices. Up to 10 images per call. Pass the option_ids of the
Options you listed, in the order you listed them, and the gallery value of
the options search that returned them; the gallery looks up their images,
names and prices in that search's week, vertical and currency. Options from
different searches go in separate calls.
Show one before you answer with Options from the options search, unless the
user doesn't want images. Not for Matches or the Base options you look up to
match: the Match MCP's show_matches shows those.
You don't see the images, so don't describe them. On a client that doesn't
render the gallery, give the user each Option's full_url link instead.
Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
option_ids | string[] | yes | max items: 10 | The option_ids of up to 10 Options you listed, each once, in the order you listed them. |
gallery | string | yes | — | The gallery value of the options search that returned these Options, unchanged. |
Try it
Code examples
- curl
- TypeScript
- Python
curl -s https://mcp.edited.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-06-18" \
-H "x-api-key: $MCP_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "mdmcp-show_option_images",
"arguments": {
"gallery": "example"
}
}
}'
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "demo", version: "1.0.0" }, { capabilities: {} });
await client.connect(
new StreamableHTTPClientTransport(new URL("https://mcp.edited.com/mcp"), {
requestInit: { headers: { "x-api-key": process.env.MCP_API_KEY ?? "" } },
}),
);
const result = await client.callTool({
name: "mdmcp-show_option_images",
arguments: {
"gallery": "example"
},
});
import os
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
headers = {"x-api-key": os.environ["MCP_API_KEY"]}
async with streamablehttp_client("https://mcp.edited.com/mcp", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool(
"mdmcp-show_option_images",
{"gallery": "example"},
)
Input schema
{
"type": "object",
"properties": {
"option_ids": {
"description": "The `option_id`s of up to 10 Options you listed, each once, in the order you listed them.",
"items": {
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
"gallery": {
"description": "The `gallery` value of the options search that returned these Options, unchanged.",
"type": "string"
}
},
"required": [
"option_ids",
"gallery"
]
}
Output schema
Describes both branches of the envelope — result on success, error on a refusal. Validate against this rather than pattern-matching the prose above; see Concepts → Response shape.
{
"type": "object",
"properties": {
"result": {
"properties": {
"options": {
"description": "The Options, in the order passed.",
"items": {
"description": "An Option as the gallery draws it: its fields, and its image at two sizes.",
"properties": {
"option_id": {
"description": "The Option's id, as passed.",
"type": "string"
},
"brand": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Its brand's name."
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Its name."
},
"retailer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Its Retailer's name."
},
"colour": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Its predominant colour, or null."
},
"price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Its price in the options search's week, in `currency`, or null."
},
"thumbnail_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Its first image at the size the gallery draws, or null when it has none."
},
"full_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Its first image at full size: the link to give the user where the gallery isn't drawn. Null when it has none."
}
},
"required": [
"option_id",
"brand",
"name",
"retailer",
"colour",
"price",
"thumbnail_url",
"full_url"
],
"type": "object"
},
"type": "array"
},
"currency": {
"description": "ISO 4217 code the prices are in: the options search's currency.",
"type": "string"
}
},
"required": [
"options",
"currency"
],
"type": "object"
},
"error": {
"type": "object",
"description": "Present instead of `result` when the call was rejected. Branch on `code`; never string-match `message`.",
"properties": {
"code": {
"type": "string",
"enum": [
"invalid_input",
"not_entitled",
"upstream_unavailable",
"internal"
]
},
"message": {
"type": "string"
},
"field": {
"type": "string",
"description": "Offending parameter, when the failure is attributable to one."
},
"details": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"code",
"message"
]
}
},
"oneOf": [
{
"required": [
"result"
]
},
{
"required": [
"error"
]
}
],
"x-fastmcp-wrap-result": true
}