Skip to main content
Glama

How to integrate CMSKite into this project

get_integration_guide
Read-only

Returns install steps, files, and key placement to connect a project to CMSKite, so view tracking works before you hand-write integration code.

Instructions

The official way to connect a project to CMSKite. For JavaScript and TypeScript that is the cmskite package; for PHP, WordPress, Laravel, Python or a plain HTML site it is the raw HTTP calls, which need no dependency at all. Returns what to install if anything, the files to write, and which key belongs on the server versus in the browser. Call this BEFORE writing any integration code by hand: hand-rolled fetch wrappers miss view tracking entirely, so the customer gets a working site with no analytics and no indication that anything is missing. Finish by calling check_integration, which is the only thing that can tell a working integration from one that silently reports nothing. Does not read or change anything in CMSKite.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameworkYesWhat the project is. Look at the files rather than guessing. JavaScript: `next` in package.json with an app/ directory is `nextjs-app` (`nextjs` is accepted as the same thing), `next` with pages/ is `nextjs-pages`, `react` without `next` is `react`, a package.json with no framework is `node`. Not JavaScript: .html files and no build step is `html`; wp-config.php or a wp-content/ directory is `wordpress`; artisan and composer.json with laravel/framework is `laravel`; any other .php is `php`; requirements.txt, pyproject.toml or .py is `python`. Use `other` for anything else and the answer is the raw HTTP calls, which work in every language.
projectIdNoThe CMSKite project id, as `prj_...`, if one already exists.
includeAnalyticsNoInclude view and click tracking. Defaults to true; there is rarely a reason not to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with 'Does not read or change anything in CMSKite.' It adds real behavioral context beyond the annotations by disclosing the consequence of skipping it (silent loss of analytics) and the fact that a downstream check is required to validate the result.

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?

Front-loaded with the purpose and the sequencing instruction, and every sentence carries weight. The framework-to-package sentence overlaps somewhat with the schema's own enum description, and the guidance-plus-warning content runs slightly long, but there is no filler.

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?

There is no output schema, so the description must explain returns, and it does: what to install if anything, the files to write, and which key belongs on the server versus in the browser. Combined with the workflow sequencing, an agent has everything needed to call this correctly.

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 coverage is 100%, so the baseline is 3, but the description adds a language-level mapping not present in the schema (JS/TS use the cmskite package; PHP, WordPress, Laravel, Python and plain HTML use raw HTTP with no dependency), which helps an agent reason about the enum's intent rather than just its allowed values.

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?

States a specific verb and resource ('the official way to connect a project to CMSKite') and enumerates the concrete deliverables (what to install, files to write, which key goes server-side vs browser). It is clearly distinguishable from the sibling check_integration, which it explicitly frames as the verification step rather than the guidance step.

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?

Explicit sequencing: 'Call this BEFORE writing any integration code by hand' and 'Finish by calling check_integration'. It also names the failure mode that motivates using it (hand-rolled fetch wrappers miss view tracking) and names the alternative tool that detects that failure, leaving nothing to inference.

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