Skip to main content
Glama
pepabo

Color Me Shop

Official

updateTemplatePage

DestructiveIdempotent

Update HTML and CSS source for a specified page type in a template. Provide template ID, page type (index/top/product/etc.), and new content. Changes are automatically recorded in history and parent template's update date is refreshed.

Instructions

指定テンプレートの指定ページ種別の HTML / CSS ソースを更新します。template_id でテンプレートを特定、page_type は getTemplatePage と同じ 8 種の enum(index / top / product / product_list / product_srh / option_stock / shopkeeper / privacy)から指定、template_page に新しい HTML / CSS の本文を渡します。更新時にテンプレートの変更履歴が自動記録され、親テンプレートの update_date も更新されます。更新前の現在値は getTemplatePage、ブラウザ表示は getTemplatePreview、テンプレート一覧は getTemplates を参照。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_idYesテンプレートID
page_typeYesページ種別 - `index`: 共通 - `top`: トップ - `product_list`: 商品一覧 - `product`: 商品詳細 - `shopkeeper`: 特定商取引 - `product_srh`: 商品検索結果 - `option_stock`: オプション在庫・値段表 - `privacy`: プライバシーポリシー
template_pageYes
Behavior4/5

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

Description adds context beyond annotations: automatic history recording and parent template date update. Annotations already indicate destructive (true), idempotent (true), and open world (true), with no contradictions.

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?

Three sentences, front-loaded with purpose, then parameters and behavioral notes. No waste, but could be slightly more concise.

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?

Covers purpose, parameters, side effects, and related tools. Missing error handling or permission prerequisites, but overall sufficient for a mutation tool with annotations.

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 covers 67% top-level descriptions; description adds that page_type enums match getTemplatePage and mentions character limits, but mostly restates schema details. Adds marginal value.

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?

Description clearly states it updates HTML/CSS source for a template page, specifying verb and resource. It distinguishes from siblings like getTemplatePage (retrieve) and getTemplatePreview (preview).

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?

Description provides explicit guidance on when to use and alternatives: references getTemplatePage for current values, getTemplatePreview for browser display, and getTemplates for template list.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pepabo/colormeshop-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server