/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 854c62dc6213
 */

import * as z from "zod/v3";

/**
 * Request body for calling an MCP tool.
 */
export type MCPToolCallRequest = {
  arguments?: { [k: string]: any } | undefined;
};

/** @internal */
export type MCPToolCallRequest$Outbound = {
  arguments?: { [k: string]: any } | undefined;
};

/** @internal */
export const MCPToolCallRequest$outboundSchema: z.ZodType<
  MCPToolCallRequest$Outbound,
  z.ZodTypeDef,
  MCPToolCallRequest
> = z.object({
  arguments: z.record(z.any()).optional(),
});

export function mcpToolCallRequestToJSON(
  mcpToolCallRequest: MCPToolCallRequest,
): string {
  return JSON.stringify(
    MCPToolCallRequest$outboundSchema.parse(mcpToolCallRequest),
  );
}
