/** * @fileoverview GDELT TV search tool. Searches US television news closed captions * for spoken mentions and returns normalized per-station coverage time series. * @module mcp-server/tools/definitions/search-tv.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const gdeltSearchTv: import("@cyanheads/mcp-ts-core").ToolDefinition>; timespan: z.ZodOptional; startDatetime: z.ZodOptional; endDatetime: z.ZodOptional; smoothing: z.ZodOptional; normalize: z.ZodDefault; dateres: z.ZodOptional>; offset: z.ZodDefault; limit: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ dateResolution: z.ZodOptional>; timeRange: z.ZodOptional>; series: z.ZodArray>; }, z.core.$strip>>; normalized: z.ZodBoolean; totalPoints: z.ZodNumber; offset: z.ZodNumber; limit: z.ZodNumber; nextOffset: z.ZodOptional; }, z.core.$strip>, readonly [{ readonly reason: "invalid_date_range"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "Only one of startDatetime / endDatetime was supplied, one of them is not a real UTC calendar timestamp, or startDatetime is not earlier than endDatetime."; readonly recovery: "Supply both startDatetime and endDatetime as real UTC calendar timestamps, with startDatetime earlier than endDatetime, or omit both and use timespan instead."; }, { readonly reason: "offset_out_of_range"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "The requested point offset is at or beyond the end of a non-empty timeline."; readonly recovery: "Retry with an offset between 0 and totalPoints - 1 from the preceding response."; }, { readonly reason: "invalid_query"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "GDELT rejected the query — no station was selected, or the query string is malformed."; readonly recovery: "Read the recovery hint for the specific rule GDELT rejected; when no station was selected, list valid IDs with gdelt_list_tv_stations."; readonly thrownBy: "service"; }, { readonly reason: "gdelt_rate_limited"; readonly code: JsonRpcErrorCode.RateLimited; readonly when: "GDELT rejected the request for its one-request-per-five-seconds limit, or too many requests were already queued for this one to start in time."; readonly retryable: false; readonly recovery: "Wait at least 5 seconds before retrying; GDELT accepts at most one request every 5 seconds."; readonly thrownBy: "service"; }, { readonly reason: "gdelt_unavailable"; readonly code: JsonRpcErrorCode.ServiceUnavailable; readonly when: "GDELT TV API is unreachable or temporarily returned no usable data."; readonly retryable: true; readonly recovery: "Retry after a short delay; GDELT may be temporarily unavailable."; readonly thrownBy: "service"; }], { readonly effectiveQuery: z.ZodString; readonly totalCount: z.ZodNumber; readonly notice: z.ZodOptional; }>; //# sourceMappingURL=search-tv.tool.d.ts.map