Skip to main content
Glama
pepabo

Color Me Shop

Official

updateTemplatePage

DestructiveIdempotent

Update HTML and CSS for any page type in a template. Automatically records change history and updates parent template's update date.

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

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

Annotations already indicate destructiveHint=true and idempotentHint=true. The description adds valuable context about automatic history recording and parent template update_date being updated, enhancing understanding of side effects beyond what annotations provide.

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?

The description is three well-structured sentences, front-loaded with the main purpose. It is concise but covers necessary details without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description explains the outcome (source update, history, parent update) but does not mention the return value or success indicator. Since there is no output schema, the description could be more complete by stating what the tool returns upon success or failure.

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?

With schema coverage at 67%, the description adds meaningful context: it specifies that template_page contains new HTML/CSS content, page_type uses the same enum as getTemplatePage, and template_id identifies the template. This adds value beyond the schema.

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?

The description clearly states it updates HTML/CSS source for a specified template page type, and distinguishes from related tools like getTemplatePage, getTemplatePreview, and getTemplates by explicitly mentioning them as alternatives for different operations.

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?

It provides clear context for when to use this tool (to update template page source) and mentions viewing alternatives. However, it does not explicitly state when not to use it or provide exclusion criteria beyond referencing siblings.

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