Quick Context for LLMs
When working with AI assistants like Claude, ChatGPT, or Cursor, you can provide comprehensive API context by sharing our full documentation:MCP Server
The Paragraph MCP server (@paragraph-com/mcp) connects AI agents directly to the Paragraph API. Manage posts, search content, work with coins, and more from any MCP-compatible client.
CLI for Agents
The Paragraph CLI (@paragraph-com/cli) is designed for agent and programmatic usage. All commands support --json for structured output:
Agent Skill
Install the Paragraph Agent Skill to teach AI agents (Claude Code, Cursor, etc.) how to use the CLI:Best Practices for AI-Assisted Development
1. Provide Clear Context
When prompting AI tools, include:- Specific API endpoints you’re working with
- Example responses or data structures
- Your programming language and framework
- Any authentication requirements
2. Validate Generated Code
Always review AI-generated code for:- Error Handling: Add proper error handling for API responses
- Rate Limiting: Implement appropriate rate limiting and retry logic
- Type Safety: Verify types match the API’s expected request/response formats
3. Iterative Development
- Start with simple API calls and gradually add complexity
- Test each integration point before moving to the next
- Use the AI to explain error messages and suggest fixes
4. Common Prompting Patterns
For API Integration
For Debugging
For Data Modeling
Example Workflow
- Initial Setup: Share the llms-full.txt context with your AI assistant
- Describe Your Goal: Explain what you want to build with Paragraph’s API
- Generate Boilerplate: Have the AI create initial client setup and authentication
- Implement Features: Work through each API endpoint you need
- Add Error Handling: Ask the AI to add comprehensive error handling
- Create Tests: Generate test cases for your integration
- Optimize: Request performance improvements and best practices
Troubleshooting
If AI-generated code isn’t working:- Verify you’re using the latest API version
- Check that all required headers are included
- Ensure proper JSON formatting in request bodies
- Review rate limits and implement appropriate delays
Additional Resources
- API Reference - Complete endpoint documentation
- Authentication Guide - API key setup and usage
- Rate Limits - Understanding and handling rate limits
- SDKs - Official client libraries for various languages

