get_pricing
Retrieve current pricing tiers for image metadata extraction services, including pay-per-use rates and x402 payment support.
Instructions
Get current pricing for image metadata extraction tiers
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:160-176 (handler)The main handler logic for the 'get_pricing' tool in the stdio server. It checks freemium status and returns the PRICING object along with freemium info.
case 'get_pricing': { const freemium = checkFreemium(payer); return { content: [ { type: 'text', text: JSON.stringify({ pricing: PRICING, freemium: { limit: 50, remaining: freemium.remaining, } }, null, 2), }, ], }; } - src/http-server.ts:106-111 (handler)The handler logic for the 'get_pricing' tool in the HTTP server. Same behavior: returns PRICING and freemium info.
case 'get_pricing': { const freemium = checkFreemium(payer); return { content: [{ type: 'text', text: JSON.stringify({ pricing: PRICING, freemium: { limit: 50, remaining: freemium.remaining } }, null, 2) }], }; } - src/index.ts:120-127 (schema)Registration of 'get_pricing' tool with its input schema (empty object, no parameters) and description in the stdio server.
{ name: 'get_pricing', description: 'Get current pricing for image metadata extraction tiers', inputSchema: { type: 'object', properties: {}, }, }, - src/http-server.ts:69-73 (schema)Registration of 'get_pricing' tool with its input schema (empty object) and description in the HTTP server.
{ name: 'get_pricing', description: 'Get pricing info', inputSchema: { type: 'object', properties: {} }, }, - src/pricing.ts:1-24 (helper)The PRICING constant defining all pricing tiers (basic, standard, premium, forensic) with prices and included features. This is the core data returned by the get_pricing tool.
import type { PricingTier, PricingInfo } from './types.js'; export const PRICING: Record<PricingTier, PricingInfo> = { basic: { tier: 'basic', price: 0.001, includes: ['EXIF', 'file info', 'dimensions', 'color profile'], }, standard: { tier: 'standard', price: 0.002, includes: ['Basic + GPS', 'IPTC', 'XMP', 'keywords'], }, premium: { tier: 'premium', price: 0.005, includes: ['Standard + OCR', 'thumbnail', 'deep hash'], }, forensic: { tier: 'forensic', price: 0.015, includes: ['Premium + manipulation analysis', 'full EXIF history'], }, };