Skip to main content
Glama
jhauga
by jhauga

Create code tour card

create_code_tour_card

Render source code as an interactive card with one tab per file and copy buttons. Use a zip archive or explicit files; large projects split into paginated parts.

Instructions

Render a project's source as an interactive card with one tab per file (code with copy buttons). Explicit files keep the order they are given in, with README and manifests hoisted to the front; archive files are ordered README, manifest, then src. Pass the path of a zip archive generated earlier in the conversation for a one-call plug-n-play tour, or pass files explicitly. Files are packed into parts of about 32,000 rendered characters each regardless of how many there are, so a handful of medium files still splits. The result's structuredContent.parts {current,total,hasMore} reports the split: while hasMore is true some files were withheld, so call again with part: current + 1 and identical other arguments until every part has rendered.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
partNoPart number for large projects (1-based). Big tours split automatically; while structuredContent.parts.hasMore is true, call again with the next part.
filesNoExplicit files to show when not using archivePath
introNoGuidance shown in a leading 'Start here' tab
titleYes
includeNoWith archivePath: only include entries whose path contains one of these
maxTabsNo
subtitleNo
tutorTermsNoEducational tutor terms. The first occurrence of each term in the card's visible prose is underlined; hovering ~1.2s shows the tip and notifies the host so the model can follow up. Terms are matched once per card, longest first, and never inside code samples, tooltips, or another term's tip. Matching is CASE-SENSITIVE, so "PATH" does not attach its tip to a filesystem "path"; set caseInsensitive on a term to match any casing. Term and tip are PLAIN text.
archivePathNoPath to a zip ON THE MACHINE RUNNING THIS SERVER, not in the caller's sandbox. Over a remote bridge those are different machines: if the archive exists only on your side, pass its text files as files instead.
contextActionsNoRight-click menu actions the model anticipates being useful. Choosing one sends its prompt to the conversation; use {{selection}} to include the user's selected text.
tutorTermsInCodeNoAlso highlight tutorTerms inside the code samples. Off by default, because marking up language keywords in source is noise rather than teaching.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardYes
partsYesSplit state, present on EVERY card result so one completeness check works for all card types. Cards that cannot split always report {current:1,total:1,hasMore:false}; create_markdown_card and create_code_tour_card pack oversized content into parts and can report more. Read hasMore rather than the card title to decide whether content was withheld.
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It discloses key behaviors: file ordering (explicit files keep order with README/manifests hoisted, archives use a specific order), the packing behavior (parts of ~32,000 rendered characters regardless of file count, so even a handful of medium files splits), and the pagination protocol (parts.current/total/hasMore, with explicit instructions to call again with part: current+1). It also discloses that matching is case-sensitive and terms are plain text. This is rich, actionable behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is fairly long but packs in essential behavior. It front-loads the main purpose and the ordering/participation logic. However, some redundancy exists: the part parameter is described both in the description and in the schema, and the tutorTerms matching rules are detailed but necessary. It could be tightened, but no sentence is wasted; the length is justified by the complexity.

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

Completeness5/5

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

Given the complexity of this tool (11 parameters, multiple modes, pagination, tutor term matching), the description is remarkably complete. It covers the main behavioral quirks (splitting, ordering, case-sensitivity, machine distinction), and the output schema exists to document the return values. The description plus schema cover everything an agent needs to call this tool correctly, including the pagination loop.

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 73%, so the schema already documents many parameters. The description adds value for ambiguous or under-documented parameters: it explains the packing behavior for parts, the ordering logic, the archivePath machine caveat, and the tutorTerms matching rules (case-sensitive, longest first, not in code samples). It doesn't cover every param (e.g., maxTabs, contextActions aren't described), but the description's comments on key parameters like part, archivePath, and tutorTerms go 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 the tool renders a project's source as an interactive card with one tab per file, including copy buttons. It distinguishes itself from sibling card-creation tools (create_chart_card, create_tab_card, etc.) by focusing on source code rendering and specifically mentions the code-related features.

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?

The description provides explicit guidance on when to use this tool vs alternatives: it explains the two modes (passing a zip archive vs passing files explicitly), notes the machine-location caveat for archivePath over a remote bridge, and mentions the alternative of passing files when the archive exists only on the caller's side. It also addresses the pagination workflow implicitly.

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/jhauga/mcp-chat-cards'

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