Skip to main content
Glama

Generate Slide/Deck from CSV or JSON Data

canva_generate_deck_from_data
Idempotent

Reads CSV or JSON data, analyzes KPIs and comparisons, chooses an optimal slide layout, and generates a complete PowerPoint deck with readable text and branding.

Instructions

Tự động đọc tệp dữ liệu CSV hoặc JSON (hoặc chuỗi dữ liệu thô), tự động phân tích các chỉ số KPI, hiệu suất, kịch bản so sánh hoặc phân tích chiến lược, tự động chọn layout tối ưu (KPI Dashboard, SWOT Matrix, Card Comparison hoặc Process Timeline) và sinh bộ slide hoàn chỉnh vào PowerPoint với cỡ chữ >= 24pt và huy hiệu Lê Anh Duy (44pt, Cyan #00B0F0).

Input Schema

NameRequiredDescriptionDefault
titleNoTiêu đề slide (tùy chọn, tự động suy luận từ dữ liệu nếu để trống)
design_idNoID thiết kế Canva Cloud (ví dụ: DAHaKPDSZSI) nếu đối chiếu cloud
presenterNoTên người trình bày hiển thị huy hiệu (44pt, Cyan #00B0F0)Lê Anh Duy
palette_idNoID bảng màu từ taste-skill (mặc định 'corporate-navy')corporate-navy
data_sourceYesĐường dẫn đến tệp CSV/JSON trên đĩa, hoặc chuỗi nội dung JSON/CSV thô
slide_numberNoVị trí slide cần tạo (tính từ 1)
bottom_takeawayNoKết luận hành động dưới đáy (>= 24pt)
export_thumbnailNoTự động xuất ảnh thumbnail PNG xem trước
subtitle_contextNoThanh ngữ cảnh tóm tắt bối cảnh
layout_preferenceNoBố cục ưu tiên (mặc định 'auto' để hệ thống tự phân tích cấu trúc dữ liệu)auto
presentation_pathNoĐường dẫn tệp .pptx cần chèn slide (mặc định tệp active Bao_Cao_Chu_De11.pptx)C:/Users/mrduy/Documents/AI/my_quest/thuyet_trinh/Bao_Cao_Chu_De11.pptx

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the safety profile is already covered. The description adds useful behavioral facts beyond that — automatic layout inference, enforcement of >=24pt font, an injected presenter badge, optional thumbnail export — but says nothing about what happens to the target .pptx (append vs. overwrite), behavior when presentation_path is missing, or failure modes for unparseable data.

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?

A single front-loaded sentence that walks from input to output in the right order, with no filler. It is somewhat run-on and spends words re-specifying the badge defaults (44pt, Cyan #00B0F0) that the schema already carries for presenter.

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?

For an 11-parameter mutating tool with no output schema, the description should say what comes back (file path, slide count, thumbnail path) and confirm whether the target deck is modified in place. It covers the generation pipeline well but leaves the return contract and file-mutation semantics unstated.

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 a bit more by clarifying that data_source accepts either a file path or a raw JSON/CSV string and by naming the four auto-selectable layouts. It still does not explain how slide_number interacts with the generated 'bộ slide' (single insertion point vs. multi-slide output).

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+resource: read CSV/JSON data, auto-analyze KPIs/comparisons, pick one of four layouts, and emit a finished slide set into PowerPoint. That distinguishes it reasonably well from single-layout siblings such as canva_add_kpi_dashboard or canva_add_swot_matrix, but it never explicitly says it is the 'auto' counterpart to those tools, leaving the differentiation implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: 'tự động phân tích... tự động chọn layout' suggests this is the tool to reach for when the layout is not yet decided. There is no explicit when-to-use/when-not or direct pointer to canva_add_kpi_dashboard, canva_add_swot_matrix, canva_add_process_timeline for fixed layouts, nor any prerequisite (e.g. that presentation_path must exist).

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