Skip to main content

LLM Integration

CTP provides specialized documents that enable AI models to generate compliant tools.

Available Documents

Tool Generator

Complete prompt for generating CTP tools

Schema Reference

Compact schema for quick AI lookups

How It Works

  1. Copy the prompt from the Tool Generator page
  2. Paste into your AI conversation (Claude, GPT-4, etc.)
  3. Describe the tool you want to create
  4. Receive compliant code that follows CTP standards

Example Workflow

Step 1: Provide the Prompt

Copy the entire Tool Generator document and paste it into your AI conversation.

Step 2: Request a Tool

Step 3: Receive Complete Implementation

The AI will generate:
  • TypeScript type definitions
  • Complete tool definition
  • Tool function implementation
  • Export statement

Quick Reference

For quick AI lookups during development, the Schema Reference provides:
  • Field types and descriptions
  • Parameter type options
  • Error codes
  • Category list
  • Common patterns

Supported AI Models

These documents are designed to work with:

Best Practices

Be Specific

Include Features

Mention Edge Cases

Integration Options

Manual Copy-Paste

  1. Copy the Tool Generator prompt
  2. Paste into AI chat
  3. Request your tool
  4. Copy generated code to your project

API Integration

MCP Integration

CTP tools can be exposed as MCP tools for direct AI access: