Overview
The MCP Server exposes static resources that provide reference documentation and specifications to LLM agents. These resources follow the MCP Resources feature specification and are accessible via theresources/read operation.
Resources are read-only and do not require parameters beyond the resource URI.
Available Resources
Pricing2Yaml Specification
The primary resource exposed by the MCP server is the Pricing2Yaml specification excerpt.resource://pricing/specificationtext/markdownDescription
Provides comprehensive documentation of the Pricing2Yaml syntax (version 2.1), including:- Syntax overview - Template structure and basic examples
- Field reference - Complete documentation of all YAML fields
- Feature types - AUTOMATION, DOMAIN, GUARANTEE, INFORMATION, INTEGRATION, MANAGEMENT, PAYMENT, SUPPORT
- Usage limit types - NON_RENEWABLE, RENEWABLE, RESPONSE_DRIVEN, TIME_DRIVEN
- Value types - BOOLEAN, NUMERIC, TEXT
- Integration types - API, EXTENSION, IDENTITY_PROVIDER, WEB_SAAS, MARKETPLACE, EXTERNAL_DEVICE
- Best practices - Defensive pricing techniques, tagging, naming conventions
- Examples - Real-world pricing models
Implementation
The resource content is loaded from the embedded specification file at server startup:Use Cases
LLM agents use this resource to:- Understand Pricing2Yaml syntax when interpreting extracted pricing data
- Validate field names before constructing filters for analysis tools
- Ground responses by referencing the canonical specification
- Explain pricing concepts to users using official documentation
Reading Resources
Resources are accessed via the MCPresources/read operation:
Response Format
The response contains the full specification markdown:Specification Content Structure
The specification resource is organized into the following sections:1. Overview
- Introduction to Pricing2Yaml
- Relationship to Pricing4SaaS model
- Template example
2. Version 2.1 Fields
Top-Level Fields
Top-Level Fields
syntaxVersion- Specification version (required)saasName- Product name (required)version- Pricing version (optional)createdAt- Model creation date (required)url- Pricing page URL (optional)variables- Price expression variables (optional)tags- Feature groupings (optional)currency- Currency code (required)billing- Billing period discounts (optional)
Features Section
Features Section
features.<name>.description- Feature descriptionfeatures.<name>.tag- Feature groupfeatures.<name>.type- Feature type (AUTOMATION, DOMAIN, etc.)features.<name>.valueType- BOOLEAN, NUMERIC, or TEXTfeatures.<name>.defaultValue- Default feature valuefeatures.<name>.automationType- For AUTOMATION featuresfeatures.<name>.docUrl- For GUARANTEE featuresfeatures.<name>.integrationType- For INTEGRATION featuresfeatures.<name>.pricingUrls- For WEB_SAAS integrationsfeatures.<name>.render- Display behavior
Usage Limits Section
Usage Limits Section
usageLimits.<name>.description- Limit descriptionusageLimits.<name>.type- NON_RENEWABLE, RENEWABLE, RESPONSE_DRIVEN, TIME_DRIVENusageLimits.<name>.valueType- BOOLEAN, NUMERIC, or TEXTusageLimits.<name>.defaultValue- Default limit valueusageLimits.<name>.unit- Unit of measurementusageLimits.<name>.linkedFeatures- Associated featuresusageLimits.<name>.render- Display behavior
Plans Section
Plans Section
plans.<name>.description- Plan overviewplans.<name>.private- Visibility flagplans.<name>.price- Monthly price or expressionplans.<name>.unit- Pricing unit (e.g., “user/month”)plans.<name>.features- Feature overridesplans.<name>.usageLimits- Limit overrides
Add-Ons Section
Add-Ons Section
addOns.<name>.description- Add-on overviewaddOns.<name>.availableFor- Compatible plansaddOns.<name>.private- Visibility flagaddOns.<name>.dependsOn- Required add-onsaddOns.<name>.excludes- Incompatible add-onsaddOns.<name>.price- Monthly price or expressionaddOns.<name>.unit- Pricing unitaddOns.<name>.features- Feature overridesaddOns.<name>.usageLimits- Limit overridesaddOns.<name>.usageLimitsExtensions- Limit extensions
3. Modeling Best Practices
- Defensive pricing techniques - Aligning feature/limit states
- Feature tagging - Using chunking for better UX
- Naming conventions - Consistent limit naming
- Descriptions - When to provide context
- Avoiding TEXT valueType - Preferring BOOLEAN features
Specification Excerpt Example
Here’s a condensed excerpt showing key sections:Resource Observability
The MCP server logs resource access for observability:Future Resource Additions
Potential resources that may be added in future versions:Pricing Examples
resource://pricing/examples/* - Real-world Pricing2Yaml examplesFeature Taxonomy
resource://pricing/feature-types - Detailed feature type taxonomySolver Documentation
resource://pricing/solvers - CSP solver comparison and usageMigration Guides
resource://pricing/migrations/* - Version migration documentationResource Subscriptions
According to the MCP specification, resource subscriptions are optional. They may be added in future versions if dynamic specification updates are needed.Related Resources
MCP Tools
Explore tools that use the specification resource
Pricing2Yaml Guide
Learn about the Pricing2Yaml modeling language
Harvey Agent
See how Harvey leverages MCP resources
MCP Protocol
Understand the Model Context Protocol