import { z } from 'zod';

/**
 * Schema for inspect_url tool
 * Inspects a single URL's indexing status
 */
export const InspectUrlSchema = z.object({
  siteUrl: z.string().url().describe('The Google Search Console property URL (e.g., https://example.com)'),
  inspectionUrl: z.string().url().describe('The specific URL to inspect'),
  languageCode: z.string().length(2).default('en').describe('Language code for the inspection result (default: en)')
});

/**
 * Schema for batch_inspect_urls tool
 * Inspects multiple URLs in parallel
 */
export const BatchInspectUrlsSchema = z.object({
  siteUrl: z.string().url().describe('The Google Search Console property URL'),
  urls: z.array(z.string().url())
    .min(1)
    .max(50)
    .describe('Array of URLs to inspect (max 50)')
});

/**
 * Schema for request_indexing tool
 * Requests Google to index or re-index a URL
 */
export const RequestIndexingSchema = z.object({
  url: z.string().url().describe('The URL to request indexing for')
});
